Massachusetts Institute of Technology 6.042J/18.062J, Fall 02: Mathematics for Computer Science Professor Albert Meyer and Dr.

Similar documents
Quiz 1-a (Math 13): Negations and Quantifiers. 1. (2 pts.) Compute the negation of: a Z n, p(a) (q 1 (a) q 2 (a)).

Section Summary. Relations and Functions Properties of Relations. Combining Relations

Solutions to Quiz 1. Problem 1 (20 points). Suppose S(n) is a predicate on natural numbers, n, and suppose. k N S(k) S(k + 2). (1)

COMP 182 Algorithmic Thinking. Relations. Luay Nakhleh Computer Science Rice University

CSC Discrete Math I, Spring Relations

Automata and Languages

Solutions to In Class Problems Week 4, Mon.

a + b = b + a and a b = b a. (a + b) + c = a + (b + c) and (a b) c = a (b c). a (b + c) = a b + a c and (a + b) c = a c + b c.

Properties of the Integers

Definition: A binary relation R from a set A to a set B is a subset R A B. Example:

Quiz 1. Adrian Georgi Josh Karen Lee Min Nikos Tina. There are five (5) problems totaling 100 points. Total time is 110 minutes.

Final Examination. Adrian Georgi Josh Karen Lee Min Nikos Tina. There are 12 problems totaling 150 points. Total time is 170 minutes.

Preliminaries. Graphs. E : set of edges (arcs) (Undirected) Graph : (i, j) = (j, i) (edges) V = {1, 2, 3, 4, 5}, E = {(1, 3), (3, 2), (2, 4)}

Relations. Definition 1 Let A and B be sets. A binary relation R from A to B is any subset of A B.

QUASI-PREFERENCE: CHOICE ON PARTIALLY ORDERED SETS. Contents

Coloring. Basics. A k-coloring of a loopless graph G is a function f : V (G) S where S = k (often S = [k]).

1.4 Equivalence Relations and Partitions

Relations Graphical View

Chapter 9: Relations Relations

Ranking Score Vectors of Tournaments

Relations, Functions, and Sequences

Connection MATH Connection. Benjamin V.C. Collins, James A. Swenson MATH 2730

Reading 11 : Relations and Functions

Equivalence relations

3. R = = on Z. R, S, A, T.

Relations. Relations of Sets N-ary Relations Relational Databases Binary Relation Properties Equivalence Relations. Reading (Epp s textbook)

Strange Combinatorial Connections. Tom Trotter

and e 2 ~ e 2 iff e 1

MATH1240 Definitions and Theorems

Practice Final Solutions. 1. Consider the following algorithm. Assume that n 1. line code 1 alg(n) { 2 j = 0 3 if (n = 0) { 4 return j

Notes. Relations. Introduction. Notes. Relations. Notes. Definition. Example. Slides by Christopher M. Bourke Instructor: Berthe Y.

Cardinal invariants of closed graphs

What are relations? f: A B

Multiple Choice Questions for Review

Notation Index. gcd(a, b) (greatest common divisor) NT-16

Planar Graphs (1) Planar Graphs (3) Planar Graphs (2) Planar Graphs (4)

8.5 Sequencing Problems

{a, b, c} {a, b} {a, c} {b, c} {a}

Tree sets. Reinhard Diestel

Kruskal s Theorem Rebecca Robinson May 29, 2007

(a) How many pairs (A, B) are there with A, B [n] and A B? (The inclusion is required to be strict.)

Sets and Motivation for Boolean algebra

Math 3012 Applied Combinatorics Lecture 14

CSCE 750 Final Exam Answer Key Wednesday December 7, 2005

14 Equivalence Relations

Algorithms and Theory of Computation. Lecture 22: NP-Completeness (2)

Complexity Theory VU , SS The Polynomial Hierarchy. Reinhard Pichler

Outline. Complexity Theory EXACT TSP. The Class DP. Definition. Problem EXACT TSP. Complexity of EXACT TSP. Proposition VU 181.

Discrete Mathematics. Benny George K. September 22, 2011

Automata Theory for Presburger Arithmetic Logic

cse303 ELEMENTS OF THE THEORY OF COMPUTATION Professor Anita Wasilewska

Exam Practice Problems

arxiv: v1 [math.co] 16 Mar 2015

Generating Permutations and Combinations

21-301, Spring 2019 Homework 4 Solutions

Relations, Functions, Binary Relations (Chapter 1, Sections 1.2, 1.3)

15.1 Matching, Components, and Edge cover (Collaborate with Xin Yu)

Definable Graphs and Dominating Reals

MIT 6.042J: Mathematics For Computer Science

1.2 Posets and Zorn s Lemma

Section 7.1 Relations and Their Properties. Definition: A binary relation R from a set A to a set B is a subset R A B.

Tutorial Obtain the principal disjunctive normal form and principal conjunction form of the statement

REVIEW QUESTIONS. Chapter 1: Foundations: Sets, Logic, and Algorithms

Relations, Functions & Binary Operations

Advanced Topics in Discrete Math: Graph Theory Fall 2010

(c) Give a proof of or a counterexample to the following statement: (3n 2)= n(3n 1) 2

Worksheet on Relations

arxiv:math/ v1 [math.gm] 21 Jan 2005

EQUIVALENCE RELATIONS (NOTES FOR STUDENTS) 1. RELATIONS

Week 4-5: Generating Permutations and Combinations

ASSIGNMENT 1 SOLUTIONS

Hamiltonian paths in tournaments A generalization of sorting DM19 notes fall 2006

Relations --- Binary Relations. Debdeep Mukhopadhyay IIT Madras

7 Mathematical Induction. For the natural numbers N a the following are equivalent:

Relations. P. Danziger. We may represent a relation by a diagram in which a line is drawn between two elements if they are related.

Some results on the reduced power graph of a group

Axiomatic Decision Theory

Discrete Mathematics. Chapter 4. Relations and Digraphs Sanguk Noh

MAD 3105 PRACTICE TEST 2 SOLUTIONS

Applications of the Lopsided Lovász Local Lemma Regarding Hypergraphs

Graph coloring, perfect graphs

Duality in the Combinatorics of Posets

Discrete Mathematics. 2. Relations

Math.3336: Discrete Mathematics. Chapter 9 Relations

Simplification by Truth Table and without Truth Table

(1) Which of the following are propositions? If it is a proposition, determine its truth value: A propositional function, but not a proposition.

CHAPTER 1. Relations. 1. Relations and Their Properties. Discussion

Diskrete Mathematik Solution 6

F 99 Final Quiz Solutions

MODERN APPLIED ALGEBRA

Discrete mathematics , Fall Instructor: prof. János Pach

On Antichains in Product Posets

A taste of perfect graphs

1 More finite deterministic automata

Lecture 4.3: Closures and Equivalence Relations

Utility Representation of Lower Separable Preferences

Maximal Antichain Lattice Algorithms for Distributed Computatio

Topics in Graph Theory

DISTRIBUTIVE LATTICES ON GRAPH ORIENTATIONS

UC Berkeley CS 170: Efficient Algorithms and Intractable Problems Handout 22 Lecturer: David Wagner April 24, Notes 22 for CS 170

Transcription:

Massachusetts Institute of Technology 6.042J/18.062J, Fall 02: Mathematics for Computer Science Professor Albert Meyer and Dr. Radhika Nagpal Quiz 1 Appendix Appendix Contents 1 Induction 2 2 Relations 2 2.1 Equivalence..................................... 2 2.2 Partial Order..................................... 2 2.3 Operations...................................... 3 2.4 Closure........................................ 4 3 Graphs 4 3.1 Common graphs.................................. 5 3.2 Graph coloring................................... 5 3.3 Trees......................................... 5 4 State Machines 5 4.1 Well-founded Partial Orders............................ 6 Copyright 2002, Prof. Albert R. Meyer and Dr. Radhika Nagpal.

Quiz 1 Appendix: Appendix 2 1 Induction Axiom (Induction). Axiom (Strong Induction). P (0), m N P (m) P (m + 1) n N P (n). P (0), n N m n P (m) P (m + 1) n N P (n) Axiom (Least Number Principle). Every nonempty subset, S N, has a smallest element. 2 Relations 2.1 Equivalence A binary relation, R, on a set A is reflexive if for every a A, ara. symmetric if for every a, b A, arb implies bra. transitive if for every a, b, c A, arb and brc implies arc. R is an equivalence relation iff it is reflexive, symmetric and transitive. 2.2 Partial Order A binary relation, R, on a set A is areflexive if for every a A, (ara). asymmetric if for every a, b A, arb implies (bra). anti-symmetric if for every a, b A arb and bra implies a = b. a partial order if it is reflexive, transitive and anti-symmetric. a strict partial order if it is areflexive and transitive. a total order if it is a partial order and for every a b A either arb or bra.

Quiz 1 Appendix: Appendix If R is a partial order, then the set A is called a partially ordered set. with the partial order, R, is called a poset, (A, R). In this case, 3 The set, A, together a is a minimal element of A if b A[bRa b a] a is a maximal element of A if b A[aRb b a] a subset of A is a chain iff it is totally ordered by R. elements a 1, a 2 A are incomparable iff neither a 1 Ra 2 nor a 2 Ra 1 holds. a subset of A is an anti-chain iff its elements are pairwise incomparable. A topological sort of a finite poset (A, R) is a total ordering of all the elements of A, a 1, a 2,, a n in such a way that for all i < j, either a i Ra j or a i and a j are incomparable. Theorem. Given any finite poset (A, R) for which the longest chain has length t, A can be partitioned into t antichains. Theorem (Dilworth). For all t, every poset with n elements must have either a chain of size greater than t or an antichain of size at least n/t. 2.3 Operations If R is a relation on A B, then the inverse of R is the relation on B A given by R 1 = {(b, a) (a, b) R}. The composition of relations R 1 A B and R 2 B C is the relation R 2 R 1 = {(a, c) ( b)((a, b) R 1 ) ((b, c) R 2 )}. A path in a relation R is a sequence a 0,..., a k with k 0 such that (a i, a i+1 ) R for every i < k. We call k the length of the path. Let R be a relation on the set A and n N. Then { R if n = 1 R n = R n 1 R if n > 1 Lemma. R n = {(a, b) there is a length n path from a to b in R}.

Quiz 1 Appendix: Appendix 4 2.4 Closure The closure of relation R with respect to property P is the relation S that 1. contains R, 2. has property P, and 3. is contained in any relation satisfying (1) and (2). That is, S is the smallest relation satisfying (1) and (2). Lemma. Let R be a relation on the set A. The reflexive closure of R is S = R {(a, a), a A}. The symmetric closure of R is S = R R 1. The transitive closure of a relation R is the set S = {(a, b) A A given there is a path from a to b in R}. The reflexive and transitive closure (also called the connectivity relation) of R is R = {(a, b) A A there exists a path from a to b in R}. or, equivalently, R = n=1 Rn. Lemma. If R is a reflexive relation on A then R = R A. 3 Graphs A simple graph is a pair of sets (V, E) called vertices and edges, respectively. An edge {a, b} E is a set where a, b V and a b. A directed graph or digraph is a pair of sets of (V, E) where E V V. In other words, an edge (a, b) E is an ordered pair of vertices. Theorem. The sum of the degrees of the vertices in a simple graph equals twice the number of edges. Theorem (Handshake). In every graph, there are an even number of vertices of odd degree. An Euler tour of an undirected graph G is a circuit that traverses every edge of G exactly once. Theorem. If undirected graph G has Euler tour, then G is connected and every vertex has even degree. A Hamiltonian path of an undirected graph G is simple path that traverses every vertex exactly once.

Quiz 1 Appendix: Appendix 5 3.1 Common graphs The empty graph or anticlique on n vertices, is the graph A n = ({v 1, v 2,..., v n }, ). The line graph on n vertices is the graph L n = ({v 1, v 2,..., v n }, {{v 1, v 2 }, {v 2, v 3 },..., {v n 1, v n }}). The cycle on n vertices C n is the L n plus the edge {v n, v 1 }. The wheel on n 4 vertices W n is the graph consisting of C n 1 plus an additional vertex connected to every other vertex. The complete graph or clique on n vertices, K n has an edge between every pair of vertices. 3.2 Graph coloring The minimum number of colors needed to color the vertices of a graph G so that no two adjacent vertices are the same is called the chromatic number and is written χ(g). Lemma. A graph with maximum degree d max can be colored with d max + 1 colors. 3.3 Trees A tree is any simple graph G = (V, E), such that any of these (equivalent) conditions hold: G is connected and E = V 1. G is connected, but removing any edge from G leaves a disconnected graph. G is connected and acyclic. There is a unique simple path between any two distinct vertices of G. A rooted tree is called finite-path iff it has no infinite paths away from the root. 4 State Machines A state machine has three parts: 1. a nonempty set, Q, whose elements are called states, 2. a nonempty subset Q 0 Q, called the set of start states, 3. a binary relation, δ, on Q, called the transition relation. An invariant for a state machine is a predicate, P, on states, such that whenever P (q) is true of a state, q, and q r for some state, r, then P (r) holds.

Quiz 1 Appendix: Appendix 6 Theorem (Invariant Theorem). Let P be an invariant predicate for a state machine. If P holds for all start states, then P holds for all reachable states. A derived variable f : Q R is strictly decreasing iff q q implies f (q ) < f (q). Theorem. If f : Q N is a strictly decreasing derived variable of a state machine, then the length of any execution starting at a start state q is at most f (q). 4.1 Well-founded Partial Orders If (P 1, 1 ) and (P 2, 2 ) are posets, then the lexicographic partial order, lex, on P 1 P 2 is defined by the condition that (p 1, p 2 ) lex (q 1, q 2 ) ::= p 1 1 q 1 or (p 1 = q 1 p 2 2 q 2 ). The coordinatewise partial order, c, on P 1 P 2 is defined by the condition that (p 1, p 2 ) c (q 1, q 2 ) ::= (p 1 1 q 1 p 2 2 q 2 ). A poset (P, ) is well-founded iff every nonempty subset S P has a minimal element. Lemma. Suppose (P 1, 1 ) and (P 2, 2 ) are posets. Then 1. so are (P 1 P 2, lex ) and (P 1 P 2, c ). Moreover, 2. if (P 1, 1 ) and (P 2, 2 ) are both well-founded, then so are (P 1 P 2, lex ) and (P 1 P 2, c ). 3. if (P 1, 1 ) and (P 2, 2 ) are both totally ordered, then so is (P 1 P 2, lex ). Lemma. A poset is well-founded iff it has no infinite decreasing chain. Theorem. Fundamental Theorem for two-person games of perfect information: For games in which every play is finite and ends in win or lose, there is a winning strategy for one of the players.