Mathematics for Computer Science - MIT CS 6.042

Math
This is a re-share of my old deck which got broken somehow. I checked all my cards to ensure they had rendered and synced them back here before sharing. This covered the content in the open source textbook for the MIT course on computer science mathematics, but it is not based on the most recent iteration of that class or the textbook. I think the chapters have been re-numbered and there is some content in the newer version of the textbook that was not in it when I made this deck.

Sample Data

Question What is the truth table for a biconditional?\[ P \iff Q\]
Answer \[\begin{array}{c|c|cr}{\textit{$P$}} & {\textit{$Q$}} & {\textit{$P$}}\iff {\textit{$Q$}} \\ \hline{\textbf{T}} & {\textbf{T}} & {\textbf{T}} \\{\textbf{T}} & {\textbf{F}} & {\textbf{F}} \\{\textbf{F}} & {\textbf{T}} & {\textbf{F}} \\{\textbf{F}} & {\textbf{F}} & {\textbf{T}} \\\end{array}\]
Subject DISCRETE MATH
Tags chapter_1 logic
Term Expectation
Definition The \textit{expectation} is the average value of the random variable where each value is weighted according to its probability. Formally, the expected value (also known as the average or mean) of a random variable is defined as follows: \newlineIf $R$ is a random variable defined on a sample space $\mathcal{S}$, then the expectation of $R$ is\[Ex[R] ::= \sum_{\omega \in \mathcal{S}}R(\omega) Pr[\omega]\]
Subject DISCRETE MATH
Tags chapter_18 expectations probability
Requirement Prove the following theorem: \newline
Proposition Every regular bipartite graph has a perfect matching
Supporting content header Useful Information
Supporting content {\textbf {Definition 1.1}} A graph is said to be \textit{regular} if every node has the same degree \newline{\textbf {Definition 1.2}} A {\textit {bipartite}} graph is a graph together with a partition of its vertices into two sets, $L$ and $R$, such that every edge is incident to a vertex in $L$ and to a vertex in $R$. \newline{\textbf {Definition 1.3}} A bipartite graph $G$ with vertex partition $L$, $R$ where $\left| L \right| \leq \left| R \right|$ is \textit{degree-constrained} if $deg(l) \geq deg(r)$ for every $l \in L$ and $r \in R$ \newline{\textbf {Definition 1.4}} A matching is \textit{perfect} if every vertix in the graph is incident to an edge in the matching \newline{\textbf {Definition 1.5}} A matching \textit{covers} a set $L$ if and only if each vertex in $L$ has an edge of the matching incident to it.\newline{\textbf {Theorem.}} Let $G$ be a bipartite graph with vertex partition $L$, $R$ where $\left|L\right| \leq \left|R\right|$. If $G$ is degree-constrained, then there is a matching that covers $L$.
Proof Let $G$ be a regular bipartite graph with vertex partition $L$, $R$ where $\left|L\right| \leq \left|R\right|$. \begin{enumerate}\item Since regular graphs are degree-constrained, we know by the supporting theorem that there must be a matching in $G$ that covers $L$. \item Since $G$ is regular, we also know that $\left|L\right| = \left|R\right|$ and thus the matching must also cover $R$. \item This means that every node in $G$ is incident to an edge in the matching and thus $G$ has a perfect matching.\end{enumerate}
Subject DISCRETE MATH
Tags bipartite_graphs chapter_5 graph_theory matchings proof
0 Cards
0 Likes
1 Ratings
0 Downloads