Practice Quiz 3 Recursive Definitions Relations Basic Counting Pigeonhole Principle Permutations & Combinations Discrete Probability.

Slides:



Advertisements
Similar presentations
Partial Orderings Section 8.6.
Advertisements

Review for CS1050. Review Questions Without using truth tables, prove that  (p  q)   q is a tautology. Prove that the sum of an even integer and an.
Relations Relations on a Set. Properties of Relations.
COUNTING AND PROBABILITY
Recursively Defined Functions
April 9, 2015Applied Discrete Mathematics Week 9: Relations 1 Solving Recurrence Relations Another Example: Give an explicit formula for the Fibonacci.
Basic Properties of Relations
Representing Relations Using Matrices
Discrete Mathematics Lecture # 16 Inverse of Relations.
Applied Discrete Mathematics Week 11: Graphs
Recursive Definitions and Induction Proofs Rosen 3.4.
Discrete Structures Chapter 5 Relations Nurul Amelina Nasharuddin Multimedia Department.
Recursive Definitions Rosen, 3.4. Recursive (or inductive) Definitions Sometimes easier to define an object in terms of itself. This process is called.
Recursive Definitions Rosen, 3.4 Recursive (or inductive) Definitions Sometimes easier to define an object in terms of itself. This process is called.
Recursive Definitions Rosen, 3.4 Recursive (or inductive) Definitions Sometimes easier to define an object in terms of itself. This process is called.
Discrete Mathematics Lecture#11.
Chapter 10 Sequences, Induction, and Probability Copyright © 2014, 2010, 2007 Pearson Education, Inc Mathematical Induction.
Fall 2004COMP 3351 Regular Expressions. Fall 2004COMP 3352 Regular Expressions Regular expressions describe regular languages Example: describes the language.
Copyright © 2007 Pearson Education, Inc. Slide 8-1.
Relations Chapter 9.
Chapter 9 1. Chapter Summary Relations and Their Properties n-ary Relations and Their Applications (not currently included in overheads) Representing.
Applied Discrete Mathematics Week 9: Relations
Counting. Product Rule Example Sum Rule Pigeonhole principle If there are more pigeons than pigeonholes, then there must be at least one pigeonhole.
Advanced Counting Techniques CSC-2259 Discrete Structures Konstantin Busch - LSU1.
Chapter 9. Chapter Summary Relations and Their Properties Representing Relations Equivalence Relations Partial Orderings.
Binomial Coefficients, Inclusion-exclusion principle
Week 15 - Wednesday.  What did we talk about last time?  Review first third of course.
Notes 9.2 – The Binomial Theorem. I. Alternate Notation A.) Permutations – None B.) Combinations -
Chapter 9. Chapter Summary Relations and Their Properties n-ary Relations and Their Applications (not currently included in overheads) Representing Relations.
Unit Unit 04 Relations IT DisiciplineITD1111 Discrete Mathematics & Statistics STDTLP1 Unit 4 Relations.
Chapter 2 Mathematical preliminaries 2.1 Set, Relation and Functions 2.2 Proof Methods 2.3 Logarithms 2.4 Floor and Ceiling Functions 2.5 Factorial and.
Copyright © Cengage Learning. All rights reserved. CHAPTER 9 COUNTING AND PROBABILITY.
April 14, 2015Applied Discrete Mathematics Week 10: Equivalence Relations 1 Properties of Relations Definition: A relation R on a set A is called transitive.
Advanced Counting Techniques CSC-2259 Discrete Structures Konstantin Busch - LSU1.
The Pigeonhole Principle. The pigeonhole principle Suppose a flock of pigeons fly into a set of pigeonholes to roost If there are more pigeons than pigeonholes,
1 RELATIONS Learning outcomes Students are able to: a. determine the properties of relations – reflexive, symmetric, transitive, and antisymmetric b. determine.
Discrete Mathematics Lecture # 15 Types of Relations (contd.)
Chapter 9. Chapter Summary Relations and Their Properties n-ary Relations and Their Applications (not currently included in overheads) Representing Relations.
Unit II Discrete Structures Relations and Functions SE (Comp.Engg.)
Representing Relations Using Matrices A relation between finite sets can be represented using a zero-one matrix Suppose R is a relation from A = {a 1,
1 RELATIONS Learning outcomes Students are able to: a. determine the properties of relations – reflexive, symmetric, transitive, and antisymmetric b. determine.
8.4 Closures of Relations Definition: The closure of a relation R with respect to property P is the relation obtained by adding the minimum number of.
Binary Relations Definition: A binary relation R from a set A to a set B is a subset R ⊆ A × B. Example: Let A = { 0, 1,2 } and B = {a,b} {( 0, a), (
L14: Permutations, Combinations and Some Review EECS 203: Discrete Mathematics.
Discrete Mathematics. Exercises Exercise 1:  There are 18 Computer Science (CS) majors and 325 Business Administration (BA) majors at a college.
Section The Pigeonhole Principle If a flock of 20 pigeons roosts in a set of 19 pigeonholes, one of the pigeonholes must have more than 1 pigeon.
Section 9.3. Section Summary Representing Relations using Matrices Representing Relations using Digraphs.
Section 9.1. Section Summary Relations and Functions Properties of Relations Reflexive Relations Symmetric and Antisymmetric Relations Transitive Relations.
Mathematical Induction. The Principle of Mathematical Induction Let S n be a statement involving the positive integer n. If 1.S 1 is true, and 2.the truth.
L14: Permutations, Combinations and Some Review
The Pigeonhole Principle
Relations Chapter 9.
Today’s topics Counting Reading: Sections , 4.4 Upcoming
Standard Representations of Regular Languages
CSE322 PUMPING LEMMA FOR REGULAR SETS AND ITS APPLICATIONS
Reflexivity, Symmetry, and Transitivity
The Pigeonhole Principle
Recursively Defined Functions
Applied Discrete Mathematics Week 9: Equivalence Relations
A Brief Summary for Exam 2
8.5 Equivalence Relations
CSE15 Discrete Mathematics 04/26/17
8.5 Equivalence Relations and 8.6 Partial Ordering
Elementary Questions about Regular Languages
Applied Discrete Mathematics Week 9: Integer Properties
The Pigeonhole Principle
Properties of Relations
9.5 Equivalence Relations
Chapter 11: Further Topics in Algebra
Mathematical Induction
Presentation transcript:

Practice Quiz 3 Recursive Definitions Relations Basic Counting Pigeonhole Principle Permutations & Combinations Discrete Probability

Problems The Fibonacci numbers f 0, f 1, f 2, … are defined as f 0 = 0, f 1 = 1, and f n = f n-1 + f n-2, for n > 1. Prove that the function f(n) = f 1 + f 3 + … + f 2n-1 is equal to f 2n whenever n is a positive integer.

Consider the relation R = {x, y | x + y > 10} on the set of positive integers. –Is R reflexive? Justify your answer. –Is R symmetric? Justify your answer. –Is R antisymmetric? Justify your answer. –Is R transitive? Justify your answer. Suppose that R1 and R2 are symmetric relations on a set A. Prove or disprove that R1 – R2 (set difference) is also symmetric. Problems

Given the relation on the set {0, 1, 2, 3} defined by the ordered pairs (0,0), (1,1), (1,3), (2,2), (2,3), (3,1), (3,3) –What is the 0-1 matrix representation of this relation? –Is the relation reflexive, symmetric and/or transitive? –Is the relation an equivalence relation?

How many students must be in a class to guarantee that at least 5 were born on the same day of the week? What is the coefficient of x 7 y 12 in the expansion of (x+y) 19 ? What is the probability that a randomly selected day of the year (365 days) is in May? Suppose that you pick two cards one at a time at random from an ordianary deck of 52 cards. Find p(both cards are diamonds). Problems

The Fibonacci numbers, f 0, f 1, f 2, … are defined as f 0 = 0, f 1 = 1, and f n = f n-1 + f n-2, for n > 1. Prove that the function  (n) = f 1 + f 3 + … + f 2n-1 is equal to f 2n whenever n is a positive integer. Basis Step If n = 1, then  (1) = f 2*1 - 1 = f 1 = 1 = f 2.

Inductive Step Assume  (k) = f 1 + f 3 + … + f 2k-1 = f 2k for k  n. We must show that this implies that  (n+1) = f 2(n+1)  (n+1) = f 1 + f 3 + … + f 2n-1 + f 2n+1  (n+1) =  (n) + f 2n+1  (n+1) = f 2n + f 2n+1 = f 2n+2 = f 2(n+1) The Fibonacci numbers, f 0, f 1, f 2, … are defined as f 0 = 0, f 1 = 1, and f n = f n-1 + f n-2, for n > 1. Prove that the function  (n) = f 1 + f 3 + … + f 2n-1 is equal to f 2n whenever n is a positive integer.

Given the relation on the set {0,1,2,3} defined by the ordered pairs: (0,0), (0,2), (1,1), (1,2), (2,0), (2,2), (3,3). Is the relation: – Reflexive? Yes –Symmetric? No –Transitive? No –An equivalence relation? No What is the 0-1 matrix?

Suppose that R1 and R2 are symmetric relations on a set A. Prove or disprove that R1 – R2 (set difference) is also symmetric. Proof: Assume that R1 and R2 are symmetric relations on a set A. We must show that if (a,b)  R1 - R2, then (b,a)  R1 – R2. If (a,b)  R1 – R2, then (a,b)  R1 and (a,b)  R2. Since R1 is symmetric, (b,a)  R1. Since R2 is symmetric, it follows that (b,a)  R2, for if (b,a) was in R2, then (a,b) would have been in R2. Hence, since (b,a) is in R1 and not in R2, (b,a)  R1 – R2. Therefore R1 – R2 is symmetric.

Consider the relation R = {x, y | x + y > 10} on the set of positive integers. Is R reflexive? Justify your answer. Is R symmetric? Justify your answer. Is R antisymmetric? Justify your answer. Is R transitive? Justify your answer. R is not reflexive, since < 10, so (1,1) is not in R. R is symmetric, since x + y > 10 means that y + x > 10, so (x, y)  R implies (y, x)  R. R is not antisymmetric, since (2, 10) and (10, 2)  R, but 2  10. R is not transitive since (2, 9)  R and (9, 3)  R, but (2, 3)  R because < 10.

How many students must be in a class to guarantee that at least 5 were born on the same day of the week? By the pigeonhole principle: 7*4+1 = 29

What is the coefficient of x 12 y 7 in the expansion of (x+y) 19 ? Solution: Use the binomial expansion formula So the 8th coefficient is C(19,7) = 19!/7!12! = 50,388.