<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:content="http://purl.org/rss/1.0/modules/content/"><channel><title>Discrete Math on Teddy Rook Book</title><link>https://teddyrookbook.com/math/discrete-math/</link><description>Recent content in Discrete Math on Teddy Rook Book</description><image><title>Teddy Rook Book</title><url>https://teddyrookbook.com/img/share.jpg</url><link>https://teddyrookbook.com/img/share.jpg</link></image><generator>Hugo</generator><language>en</language><atom:link href="https://teddyrookbook.com/math/discrete-math/index.xml" rel="self" type="application/rss+xml"/><item><title>Statements and Connectives</title><link>https://teddyrookbook.com/math/discrete-math/propositions/</link><pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate><guid>https://teddyrookbook.com/math/discrete-math/propositions/</guid><description>A statement is either true or false; &amp;#34;and,&amp;#34; &amp;#34;or&amp;#34; and &amp;#34;not&amp;#34; build new statements from old ones. Discrete Math · Math Ladder</description></item><item><title>Truth Tables</title><link>https://teddyrookbook.com/math/discrete-math/truth-tables/</link><pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate><guid>https://teddyrookbook.com/math/discrete-math/truth-tables/</guid><description>List every combination of truth values, 2ⁿ rows for n statements, and work out the compound statement one column at a time. Discrete Math · Math Ladder</description></item><item><title>The Conditional and the Biconditional</title><link>https://teddyrookbook.com/math/discrete-math/conditional/</link><pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate><guid>https://teddyrookbook.com/math/discrete-math/conditional/</guid><description>P → Q is false only when P is true and Q is false; P ↔ Q is true when P and Q have the same truth value. Discrete Math · Math Ladder</description></item><item><title>Logical Equivalence and De Morgan's Laws</title><link>https://teddyrookbook.com/math/discrete-math/logical-equivalence/</link><pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate><guid>https://teddyrookbook.com/math/discrete-math/logical-equivalence/</guid><description>Two statements are equivalent when their truth tables match: ¬(P ∧ Q) ≡ ¬P ∨ ¬Q, and P → Q ≡ ¬P ∨ Q. Discrete Math · Math Ladder</description></item><item><title>Quantifiers</title><link>https://teddyrookbook.com/math/discrete-math/quantifiers/</link><pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate><guid>https://teddyrookbook.com/math/discrete-math/quantifiers/</guid><description>&amp;#34;For all&amp;#34; (∀) and &amp;#34;there exists&amp;#34; (∃) make claims about every element of a domain, or about at least one. Discrete Math · Math Ladder</description></item><item><title>Negating Quantified Statements</title><link>https://teddyrookbook.com/math/discrete-math/negating-quantifiers/</link><pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate><guid>https://teddyrookbook.com/math/discrete-math/negating-quantifiers/</guid><description>¬∀x P(x) ≡ ∃x ¬P(x) and ¬∃x P(x) ≡ ∀x ¬P(x). Discrete Math · Math Ladder</description></item><item><title>Nested Quantifiers</title><link>https://teddyrookbook.com/math/discrete-math/nested-quantifiers/</link><pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate><guid>https://teddyrookbook.com/math/discrete-math/nested-quantifiers/</guid><description>The order of ∀ and ∃ matters: ∀x ∃y (y &amp;gt; x) is true for real numbers, but ∃y ∀x (y &amp;gt; x) is false. Discrete Math · Math Ladder</description></item><item><title>Valid Arguments and Rules of Inference</title><link>https://teddyrookbook.com/math/discrete-math/valid-arguments/</link><pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate><guid>https://teddyrookbook.com/math/discrete-math/valid-arguments/</guid><description>Modus ponens and modus tollens are valid forms of argument; affirming the consequent and denying the antecedent are not. Discrete Math · Math Ladder</description></item><item><title>Disproving with a Counterexample</title><link>https://teddyrookbook.com/math/discrete-math/counterexamples/</link><pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate><guid>https://teddyrookbook.com/math/discrete-math/counterexamples/</guid><description>One case where the hypothesis holds and the conclusion fails disproves a &amp;#34;for all&amp;#34; claim. Discrete Math · Math Ladder</description></item><item><title>Direct Proof</title><link>https://teddyrookbook.com/math/discrete-math/direct-proof/</link><pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate><guid>https://teddyrookbook.com/math/discrete-math/direct-proof/</guid><description>Assume the hypothesis, rewrite it with definitions (an even number is 2k), and reason step by step to the conclusion. Discrete Math · Math Ladder</description></item><item><title>Proof by Contrapositive</title><link>https://teddyrookbook.com/math/discrete-math/contrapositive-proof/</link><pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate><guid>https://teddyrookbook.com/math/discrete-math/contrapositive-proof/</guid><description>To prove P → Q, prove ¬Q → ¬P instead: to show &amp;#34;if n² is even, then n is even,&amp;#34; show that odd n gives odd n². Discrete Math · Math Ladder</description></item><item><title>Proof by Cases</title><link>https://teddyrookbook.com/math/discrete-math/proof-by-cases/</link><pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate><guid>https://teddyrookbook.com/math/discrete-math/proof-by-cases/</guid><description>Split into cases that cover every possibility (n even or odd; n = 3k, 3k + 1 or 3k + 2) and prove each one. Discrete Math · Math Ladder</description></item><item><title>Proof by Contradiction</title><link>https://teddyrookbook.com/math/discrete-math/contradiction-proof/</link><pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate><guid>https://teddyrookbook.com/math/discrete-math/contradiction-proof/</guid><description>Assume the statement is false and reason to something impossible, as in the proof that √2 is irrational. Discrete Math · Math Ladder</description></item><item><title>Sets and Set-Builder Notation</title><link>https://teddyrookbook.com/math/discrete-math/sets/</link><pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate><guid>https://teddyrookbook.com/math/discrete-math/sets/</guid><description>Describe a set by listing its elements or by a rule, and use ∈, ⊆ and |A|. Discrete Math · Math Ladder</description></item><item><title>Set Operations</title><link>https://teddyrookbook.com/math/discrete-math/set-operations/</link><pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate><guid>https://teddyrookbook.com/math/discrete-math/set-operations/</guid><description>Union, intersection, difference and complement, pictured with Venn diagrams, with De Morgan&amp;#39;s laws for sets. Discrete Math · Math Ladder</description></item><item><title>Power Sets and Cartesian Products</title><link>https://teddyrookbook.com/math/discrete-math/power-sets-products/</link><pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate><guid>https://teddyrookbook.com/math/discrete-math/power-sets-products/</guid><description>A set with n elements has 2ⁿ subsets, and A × B has |A| · |B| ordered pairs. Discrete Math · Math Ladder</description></item><item><title>Functions Between Sets</title><link>https://teddyrookbook.com/math/discrete-math/functions/</link><pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate><guid>https://teddyrookbook.com/math/discrete-math/functions/</guid><description>A function assigns each element of its domain exactly one element of its codomain; the range is the set of outputs actually reached. Discrete Math · Math Ladder</description></item><item><title>One-to-One and Onto Functions</title><link>https://teddyrookbook.com/math/discrete-math/injective-surjective/</link><pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate><guid>https://teddyrookbook.com/math/discrete-math/injective-surjective/</guid><description>One-to-one: different inputs give different outputs. Onto: every element of the codomain is reached. Discrete Math · Math Ladder</description></item><item><title>Bijections and Inverse Functions</title><link>https://teddyrookbook.com/math/discrete-math/bijections-inverses/</link><pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate><guid>https://teddyrookbook.com/math/discrete-math/bijections-inverses/</guid><description>A function has an inverse exactly when it is one-to-one and onto, and (g ∘ f)⁻¹ = f⁻¹ ∘ g⁻¹. Discrete Math · Math Ladder</description></item><item><title>Relations and Their Properties</title><link>https://teddyrookbook.com/math/discrete-math/relations/</link><pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate><guid>https://teddyrookbook.com/math/discrete-math/relations/</guid><description>A relation on A is a set of ordered pairs; check whether it is reflexive, symmetric, antisymmetric and transitive. Discrete Math · Math Ladder</description></item><item><title>Equivalence Relations and Partitions</title><link>https://teddyrookbook.com/math/discrete-math/equivalence-relations/</link><pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate><guid>https://teddyrookbook.com/math/discrete-math/equivalence-relations/</guid><description>A reflexive, symmetric and transitive relation splits its set into classes that do not overlap. Discrete Math · Math Ladder</description></item><item><title>Partial Orders and Hasse Diagrams</title><link>https://teddyrookbook.com/math/discrete-math/partial-orders/</link><pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate><guid>https://teddyrookbook.com/math/discrete-math/partial-orders/</guid><description>Draw a partial order such as &amp;#34;divides&amp;#34; as a Hasse diagram, and list the elements in an order that respects it. Discrete Math · Math Ladder</description></item><item><title>The Sum and Product Rules</title><link>https://teddyrookbook.com/math/discrete-math/sum-product-rules/</link><pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate><guid>https://teddyrookbook.com/math/discrete-math/sum-product-rules/</guid><description>Add the counts of cases that cannot happen together; multiply the counts of choices made one after another. Discrete Math · Math Ladder</description></item><item><title>Counting the Complement</title><link>https://teddyrookbook.com/math/discrete-math/complement-counting/</link><pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate><guid>https://teddyrookbook.com/math/discrete-math/complement-counting/</guid><description>Count &amp;#34;at least one&amp;#34; as all the possibilities minus the ones with none. Discrete Math · Math Ladder</description></item><item><title>Inclusion–Exclusion</title><link>https://teddyrookbook.com/math/discrete-math/inclusion-exclusion/</link><pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate><guid>https://teddyrookbook.com/math/discrete-math/inclusion-exclusion/</guid><description>|A ∪ B ∪ C| = |A| + |B| + |C| − |A ∩ B| − |A ∩ C| − |B ∩ C| + |A ∩ B ∩ C|. Discrete Math · Math Ladder</description></item><item><title>The Division Rule: Repeated Letters and Round Tables</title><link>https://teddyrookbook.com/math/discrete-math/division-rule/</link><pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate><guid>https://teddyrookbook.com/math/discrete-math/division-rule/</guid><description>Divide out the orderings that look the same: MISSISSIPPI has 11!/(4! · 4! · 2!) arrangements, and n people around a round table have (n − 1)!. Discrete Math · Math Ladder</description></item><item><title>Pascal's Identity and Counting Arguments</title><link>https://teddyrookbook.com/math/discrete-math/binomial-identities/</link><pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate><guid>https://teddyrookbook.com/math/discrete-math/binomial-identities/</guid><description>Prove an identity by counting one set in two ways: C(n, k) = C(n − 1, k − 1) + C(n − 1, k), and each row of Pascal&amp;#39;s triangle adds to 2ⁿ. Discrete Math · Math Ladder</description></item><item><title>Lattice Paths and Binary Strings</title><link>https://teddyrookbook.com/math/discrete-math/lattice-paths/</link><pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate><guid>https://teddyrookbook.com/math/discrete-math/lattice-paths/</guid><description>A path of right and up steps is a string of R&amp;#39;s and U&amp;#39;s, so a grid m steps wide and n steps tall has C(m + n, n) shortest paths. Discrete Math · Math Ladder</description></item><item><title>Stars and Bars</title><link>https://teddyrookbook.com/math/discrete-math/stars-and-bars/</link><pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate><guid>https://teddyrookbook.com/math/discrete-math/stars-and-bars/</guid><description>There are C(n + k − 1, k − 1) ways to put n identical items into k boxes, and C(n − 1, k − 1) when every box gets at least one. Discrete Math · Math Ladder</description></item><item><title>The Pigeonhole Principle</title><link>https://teddyrookbook.com/math/discrete-math/pigeonhole/</link><pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate><guid>https://teddyrookbook.com/math/discrete-math/pigeonhole/</guid><description>If more than k · n items go into n boxes, some box gets at least k + 1; to guarantee something, plan for the worst case. Discrete Math · Math Ladder</description></item><item><title>Derangements</title><link>https://teddyrookbook.com/math/discrete-math/derangements/</link><pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate><guid>https://teddyrookbook.com/math/discrete-math/derangements/</guid><description>Count the arrangements where nothing stays in its own place with inclusion–exclusion: D₄ = 9, and Dₙ/n! approaches 1/e. Discrete Math · Math Ladder</description></item><item><title>Induction for Divisibility and Inequalities</title><link>https://teddyrookbook.com/math/discrete-math/induction-beyond-sums/</link><pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate><guid>https://teddyrookbook.com/math/discrete-math/induction-beyond-sums/</guid><description>Use the case n = k to rewrite the case n = k + 1: 3 ∣ (4ⁿ − 1) for n ≥ 1, and 2ⁿ &amp;gt; n² for n ≥ 5. Discrete Math · Math Ladder</description></item><item><title>Strong Induction</title><link>https://teddyrookbook.com/math/discrete-math/strong-induction/</link><pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate><guid>https://teddyrookbook.com/math/discrete-math/strong-induction/</guid><description>Assume every case up to k to prove case k + 1, with as many base cases as the step reaches back. Discrete Math · Math Ladder</description></item><item><title>Setting Up Recurrence Relations</title><link>https://teddyrookbook.com/math/discrete-math/recurrence-models/</link><pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate><guid>https://teddyrookbook.com/math/discrete-math/recurrence-models/</guid><description>Describe a count by how it depends on smaller cases: tilings, binary strings with no two 1s in a row, and the Tower of Hanoi. Discrete Math · Math Ladder</description></item><item><title>Solving Recurrences by Unrolling</title><link>https://teddyrookbook.com/math/discrete-math/unrolling-recurrences/</link><pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate><guid>https://teddyrookbook.com/math/discrete-math/unrolling-recurrences/</guid><description>Substitute the rule into itself until a pattern appears, then check the closed form: aₙ = 2aₙ₋₁ + 1 with a₁ = 1 gives aₙ = 2ⁿ − 1. Discrete Math · Math Ladder</description></item><item><title>Linear Recurrences with Distinct Roots</title><link>https://teddyrookbook.com/math/discrete-math/linear-recurrences/</link><pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate><guid>https://teddyrookbook.com/math/discrete-math/linear-recurrences/</guid><description>For aₙ = c₁aₙ₋₁ + c₂aₙ₋₂, solve r² = c₁r + c₂ and fit aₙ = A·r₁ⁿ + B·r₂ⁿ to the first two terms. Discrete Math · Math Ladder</description></item><item><title>Linear Recurrences with a Repeated Root</title><link>https://teddyrookbook.com/math/discrete-math/repeated-root-recurrences/</link><pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate><guid>https://teddyrookbook.com/math/discrete-math/repeated-root-recurrences/</guid><description>When r² = c₁r + c₂ has a double root r, the solutions are aₙ = (A + Bn)rⁿ. Discrete Math · Math Ladder</description></item><item><title>Growth Rates and Big-O</title><link>https://teddyrookbook.com/math/discrete-math/big-o/</link><pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate><guid>https://teddyrookbook.com/math/discrete-math/big-o/</guid><description>Rank functions by how fast they grow, log n ≪ n ≪ n log n ≪ n² ≪ 2ⁿ ≪ n!; f is O(g) when f(n) ≤ C · g(n) for all large n. Discrete Math · Math Ladder</description></item><item><title>Graphs, Degrees and the Handshake Lemma</title><link>https://teddyrookbook.com/math/discrete-math/graph-basics/</link><pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate><guid>https://teddyrookbook.com/math/discrete-math/graph-basics/</guid><description>A graph is a set of vertices joined by edges; the degrees add up to twice the number of edges. Discrete Math · Math Ladder</description></item><item><title>Complete, Bipartite and Cycle Graphs</title><link>https://teddyrookbook.com/math/discrete-math/special-graphs/</link><pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate><guid>https://teddyrookbook.com/math/discrete-math/special-graphs/</guid><description>Kₙ has n(n − 1)/2 edges, K(m, n) has mn, and the cycle Cₙ has n. Discrete Math · Math Ladder</description></item><item><title>Walks, Paths, Cycles and Connectivity</title><link>https://teddyrookbook.com/math/discrete-math/connectivity/</link><pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate><guid>https://teddyrookbook.com/math/discrete-math/connectivity/</guid><description>A path never repeats a vertex; a graph is connected when every two vertices are joined by a path. Discrete Math · Math Ladder</description></item><item><title>Adjacency Matrices and Counting Walks</title><link>https://teddyrookbook.com/math/discrete-math/adjacency-matrices/</link><pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate><guid>https://teddyrookbook.com/math/discrete-math/adjacency-matrices/</guid><description>Store a graph as a matrix A; the (i, j) entry of Aᵏ counts the walks of length k from i to j. Discrete Math · Math Ladder</description></item><item><title>Graph Isomorphism</title><link>https://teddyrookbook.com/math/discrete-math/isomorphism/</link><pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate><guid>https://teddyrookbook.com/math/discrete-math/isomorphism/</guid><description>Two graphs have the same structure when a relabeling of the vertices matches their edges; different degree sequences prove they do not. Discrete Math · Math Ladder</description></item><item><title>Euler Paths and Circuits</title><link>https://teddyrookbook.com/math/discrete-math/euler-circuits/</link><pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate><guid>https://teddyrookbook.com/math/discrete-math/euler-circuits/</guid><description>A connected graph has an Euler circuit when every degree is even, and an Euler path when exactly two degrees are odd. Discrete Math · Math Ladder</description></item><item><title>Hamilton Paths and Cycles</title><link>https://teddyrookbook.com/math/discrete-math/hamilton-paths/</link><pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate><guid>https://teddyrookbook.com/math/discrete-math/hamilton-paths/</guid><description>Visit every vertex exactly once; there is no quick test, but Dirac&amp;#39;s theorem guarantees a cycle when every degree is at least n/2. Discrete Math · Math Ladder</description></item><item><title>Trees</title><link>https://teddyrookbook.com/math/discrete-math/trees/</link><pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate><guid>https://teddyrookbook.com/math/discrete-math/trees/</guid><description>A tree is connected with no cycles; a tree with n vertices has n − 1 edges, and adding any edge creates a cycle. Discrete Math · Math Ladder</description></item><item><title>Minimum Spanning Trees</title><link>https://teddyrookbook.com/math/discrete-math/spanning-trees/</link><pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate><guid>https://teddyrookbook.com/math/discrete-math/spanning-trees/</guid><description>Kruskal&amp;#39;s algorithm adds the cheapest remaining edge that does not close a cycle, until n − 1 edges are chosen. Discrete Math · Math Ladder</description></item><item><title>Shortest Paths with Dijkstra's Algorithm</title><link>https://teddyrookbook.com/math/discrete-math/shortest-paths/</link><pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate><guid>https://teddyrookbook.com/math/discrete-math/shortest-paths/</guid><description>Each round, settle the closest unsettled vertex and update the distances of its neighbors. Discrete Math · Math Ladder</description></item><item><title>Graph Coloring</title><link>https://teddyrookbook.com/math/discrete-math/graph-coloring/</link><pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate><guid>https://teddyrookbook.com/math/discrete-math/graph-coloring/</guid><description>Color the vertices so that neighbors differ; a graph can be colored with two colors exactly when it has no odd cycle. Discrete Math · Math Ladder</description></item><item><title>Planar Graphs and Euler's Formula</title><link>https://teddyrookbook.com/math/discrete-math/planar-graphs/</link><pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate><guid>https://teddyrookbook.com/math/discrete-math/planar-graphs/</guid><description>A connected planar drawing has v − e + f = 2; since a simple planar graph has e ≤ 3v − 6, K₅ is not planar. Discrete Math · Math Ladder</description></item></channel></rss>