Concept: In a distributive lattice (L, \subseteq), if an element has a complement, that complement is unique.
Explanation:
A distributive lattice is one where the distributive laws hold:
If an element a in a lattice has a complement a', then a \land a' = 0 and a \lor a' = 1, where 0 and 1 are the least and greatest elements of the lattice, respectively. To prove uniqueness, assume a has two complements, b and c. Then,
a \land b = 0, a \lor b = 1
a \land c = 0, a \lor c = 1
Using the distributive property, one can show that b = c, thus proving the complement is unique.
Concept: Logic gates are basic building blocks of digital circuits that perform logical operations on one or more inputs to produce a single output.
Types of Logic Gates:
Theorem: The maximum number of edges in a simple graph with n vertices is \frac{n(n-1)}{2}.
Proof:
In a simple graph, each vertex can be connected to every other vertex. Therefore, each of the n vertices can be connected to a maximum of n-1 other vertices. This gives a total of n(n-1) potential connections. However, since each edge connects two vertices, we have counted each edge twice. Therefore, the maximum number of edges is \frac{n(n-1)}{2}.
Concept: A tree is a connected graph with no cycles.
Types of Trees:
Concept: A recurrence relation is an equation that defines a sequence recursively. Each term of the sequence is defined as a function of the preceding terms.
Example:
Fibonacci sequence: F(n) = F(n-1) + F(n-2), with initial conditions F(0) = 0 and F(1) = 1. The sequence starts as 0, 1, 1, 2, 3, 5, 8, …
Another example: an = 2a{n-1} + 1, with a_0 = 1. This generates the sequence 1, 3, 7, 15, …
Function: f(x, y, z) = (x + y) \cdot (x' + yz')
Switching Circuit:
This function can be represented by a switching circuit with switches x, y, and z. The term (x + y) represents a parallel connection of switches x and y. The term (x' + yz') represents a parallel connection of the complement of switch x and a series connection of switches y and the complement of switch z.
Recurrence Relation:
an + 6a{n-1} + 9a{n-2} = 3, with initial conditions a0 = 0 and a_1 = 1.
Solution:
Homogeneous Solution:
The characteristic equation for the homogeneous part an + 6a{n-1} + 9a{n-2} = 0 is r^2 + 6r + 9 = 0. This factors to (r+3)^2 = 0, so r = -3 is a repeated root. The homogeneous solution is an^{(h)} = (A + Bn)(-3)^n.
Particular Solution:
Since the right-hand side is a constant, we guess a constant particular solution a_n^{(p)} = C. Substituting into the original equation, we get C + 6C + 9C = 3, which simplifies to 16C = 3, so C = \frac{3}{16}.
General Solution:
The general solution is a_n = (A + Bn)(-3)^n + \frac{3}{16}.
Apply Initial Conditions:
Final Solution:
a_n = (-\frac{3}{16} - \frac{1}{12}n)(-3)^n + \frac{3}{16}
Graph: A graph with vertices V = {v1, v2, v3, v4} and edges E = {e1, e2, e3, e4, e_5}.
Incidence Matrix:
The incidence matrix I is a 4 \times 5 matrix where I{ij} = 1 if vertex vi is incident to edge e_j, and 0 otherwise.
I = \begin{bmatrix}
1 & 1 & 0 & 0 & 0 \
1 & 0 & 1 & 1 & 0 \
0 & 1 & 1 & 0 & 1 \
0 & 0 & 0 & 1 & 1
\end{bmatrix}
Adjacency Matrix:
The adjacency matrix A is a 4 \times 4 matrix where A{ij} = 1 if there is an edge between vertices vi and v_j, and 0 otherwise. Since the graph is undirected, the adjacency matrix is symmetric.
A = \begin{bmatrix}
0 & 1 & 1 & 0 \
1 & 0 & 1 & 1 \
1 & 1 & 0 & 1 \
0 & 1 & 1 & 0
\end{bmatrix}
Concept: A relation R on a set A is an equivalence relation if it is reflexive, symmetric, and transitive.
Relation: "is equal to" (=) on the set of all real numbers \mathbb{R}.
Proof:
Since the relation "is equal to" is reflexive, symmetric, and transitive, it is an equivalence relation.
Theorem: The number of minimal Boolean functions in n variables is 2^{2^{n-1}}.
Explanation:
A minimal Boolean function is a Boolean function that cannot be simplified further. A Boolean function in n variables can be represented by a truth table with 2^n rows. However, each minimal Boolean function is defined by minterms. There are 2^n minterms, and each minimal boolean function takes one of these minterms as input. This means the number of minimal boolean functions will be 2 to the power of the number of combinations of minterms, so the result is 2^{2^{n-1}}.
Given: A = {2, 3, 4, 6} and the divisibility relation \,|\, on A.
Poset:
To show that (A, \,|\,) is a poset, we need to show that the divisibility relation is reflexive, antisymmetric, and transitive.
Since the divisibility relation is reflexive, antisymmetric, and transitive, (A, \,|\,) is a poset.
Not a Lattice:
To be a lattice, every pair of elements must have a least upper bound (LUB) and a greatest lower bound (GLB).
Consider the elements 3 and 4 in A. The divisors of 3 are {3} and the divisors of 4 are {2, 4}, while the multiples of 3 from the set A are {3, 6} and the multiples of 4 from the set A is {4}. The only divisors that it has in common is {}, meaning, the GLB (or meet) from 3 and 4 doesn't exist given the set A. Therefore, (A, \,|\,) is not a lattice.
Theorem: If a graph G has exactly two odd vertices, there must be a path joining these two vertices.
Explanation:
Let G = (V, E) be a graph with exactly two odd vertices, say u and v. Assume, for the sake of contradiction, that there is no path between u and v. Then, u and v must belong to different connected components, say G1 and G2, respectively. Consider the connected component G1 containing vertex u. Since u is an odd vertex, the sum of the degrees of the vertices in G1 is odd. However, the Handshaking Lemma states that the sum of the degrees of the vertices in any graph is equal to twice the number of edges, which must be even. This is a contradiction. Therefore, our assumption that there is no path between u and v must be false. Hence, there must be a path joining these two vertices.
Hamiltonian Circuit: A cycle that visits each vertex exactly once.
Eulerian Circuit: A cycle that visits each edge exactly once.
Graph with Hamiltonian Circuit but not Eulerian Circuit:
A complete graph with five vertices (K_5) has a Hamiltonian circuit (any cycle that visits all 5 vertices). However, each vertex has degree 4, so if we add one more vertex and connect it to 2 vertices, we will have an Eulerian circuit.
Graph with Eulerian Circuit but not Hamiltonian Circuit:
Consider a graph with two cycles connected by a single vertex; both cycles use different edges but connect on a center vertex v. For example, two triangles that share a vertex. If we added another triangle and connected it to vertex v, we will still have an Eulerian circuit at vertex v, but not visit all vertices.
Theorem: A tree with n vertices has (n-1) edges.
Proof:
We can use induction on the number of vertices n.
Base Case: For n = 1, a tree with one vertex has 0 edges. Thus, the theorem holds.
Inductive Step: Assume the theorem holds for a tree with k vertices, i.e., it has (k-1) edges. Now, consider a tree with (k+1) vertices. A tree is a connected graph with no cycles. If we remove a leaf (a vertex with degree 1) from the tree, we are left with a tree with k vertices, which, by the inductive hypothesis, has (k-1) edges. The removed leaf was connected to the rest of the tree by exactly one edge. Therefore, the original tree with (k+1) vertices had (k-1) + 1 = k edges.
Thus, the theorem holds for (k+1) vertices. By the principle of mathematical induction, a tree with n vertices has (n-1) edges.
Recurrence Relation: y{n+2} - 7y{n+1} + 10yn = 0, with y0 = 0 and y_1 = 3.
Solution:
Define Generating Function: Let Y(x) = \sum{n=0}^{\infty} yn x^n be the generating function for the sequence {y_n}.
Apply Generating Function to Recurrence Relation:
\sum{n=0}^{\infty} y{n+2} x^n - 7 \sum{n=0}^{\infty} y{n+1} x^n + 10 \sum{n=0}^{\infty} yn x^n = 0
Rewrite Summations:
\frac{Y(x) - y0 - y1 x}{x^2} - 7 \frac{Y(x) - y_0}{x} + 10Y(x) = 0
Substitute Initial Conditions:
\frac{Y(x) - 0 - 3x}{x^2} - 7 \frac{Y(x) - 0}{x} + 10Y(x) = 0
Solve for Y(x):
Y(x) - 3x - 7xY(x) + 10x^2 Y(x) = 0
Y(x)(1 - 7x + 10x^2) = 3x
Y(x) = \frac{3x}{1 - 7x + 10x^2} = \frac{3x}{(1-2x)(1-5x)}
Partial Fraction Decomposition:
\frac{3x}{(1-2x)(1-5x)} = \frac{A}{1-2x} + \frac{B}{1-5x}
3x = A(1-5x) + B(1-2x)
Thus, Y(x) = \frac{-1}{1-2x} + \frac{1}{1-5x}
Expand as Power Series:
Y(x) = - \sum{n=0}^{\infty} (2x)^n + \sum{n=0}^{\infty} (5x)^n = \sum_{n=0}^{\infty} (5^n - 2^n) x^n
Find yn:
yn = 5^n - 2^n
Function: f(x, y, z) = (xy' + xz)' + x
Conjunctive Normal Form (CNF):
Apply De Morgan's Law:
f(x, y, z) = (xy')'(xz)' + x = (x' + y)(x' + z') + x
Distribute:
f(x, y, z) = x'x' + x'z' + yx' + yz' + x = x' + x'z' + yx' + yz' + x
Apply X + X' = 1
f(x, y, z) = 1 + x'z' + yx' + yz'
Simplify:
f(x, y, z) = 1
Since the solution is the function 1, the CNF (or DNF) is simply 1.
Disjunctive Normal Form (DNF):
Following the same steps as above, the simplified DNF is also be 1.
Graph: A weighted graph with vertices a, b, c, d, e, and z.
Dijkstra's Algorithm:
Initialization:
Iteration:
Shortest Path: a -> b -> d -> z. Total distance: 3 + 8 + 10 = 21.
Answer:
The shortest path from a to z is a -> b -> d -> z with a total distance of 21.
Graph: A weighted graph with vertices v1, v2, v3, v4, v5, and v6.
Kruskal's Algorithm:
Sort Edges: Sort all edges in increasing order of weight.
Iterate: Add edges to the spanning tree in order, unless adding an edge creates a cycle.
Edges (Weight): (v1, v2, 1), (v4, v6, 2), (v1, v5, 3), (v3, v4, 3), (v2, v4, 5), (v2, v3, 6), (v5, v6, 6), (v3, v5, 10)
Minimal Spanning Tree:
The minimal spanning tree consists of the edges (v1, v2), (v4, v6), (v1, v5), (v3, v4). The total weight is 1+2+3+3+5.
Prim's Algorithm:
Start Vertex: Choose any vertex as the starting vertex (e.g., v1).
Iterate: Grow the tree by adding the minimum weight edge that connects a vertex in the tree to a vertex not yet in the tree.