Homework 9 –Average: 81Median: 88 –http://www.cs.virginia.edu/~cmt5n/cs202/hw9/http://www.cs.virginia.edu/~cmt5n/cs202/hw9/ –Section 7.3, #9 Note that.

Slides:



Advertisements
Similar presentations
22C:19 Discrete Math Counting Fall 2011 Sukumar Ghosh.
Advertisements

COUNTING AND PROBABILITY
Counting Chapter 6 With Question/Answer Animations.
Recursively Defined Functions
Equivalence, Order, and Inductive Proof
Homework 7 –Average: 70Median: 75 – Homework 8 –Average: 74Median:
Section 7.4: Closures of Relations Let R be a relation on a set A. We have talked about 6 properties that a relation on a set may or may not possess: reflexive,
Applied Discrete Mathematics Week 11: Graphs
Chapter 7 Relations : the second time around
Copyright © Zeph Grunschlag, Counting Techniques Zeph Grunschlag.
Recursive Definitions Rosen, 3.4 Recursive (or inductive) Definitions Sometimes easier to define an object in terms of itself. This process is called.
Section 7.6: Partial Orderings Def: A relation R on a set S is called a partial ordering (or partial order) if it is reflexive, antisymmetric, and transitive.
Relations Chapter 9.
Chapter 9 1. Chapter Summary Relations and Their Properties n-ary Relations and Their Applications (not currently included in overheads) Representing.
1 Permutations and Combinations CS/APMA 202 Epp section 6.4 Aaron Bloomfield.
Permutations and Combinations
Section 4.3: Permutations and Combinations Def: A permutation of a set of distinct objects is an ordered arrangement of these objects. Ex: {a, b, c, d}
Lecture 4.5: POSets and Hasse Diagrams CS 250, Discrete Structures, Fall 2011 Nitesh Saxena *Adopted from previous lectures by Cinda Heeren.
CS100 : Discrete Structures
Chapter The Basics of Counting 5.2 The Pigeonhole Principle
Exam 2 Review 8.2, 8.5, 8.6, Thm. 1 for 2 roots, Thm. 2 for 1 root Theorem 1: Let c 1, c 2 be elements of the real numbers. Suppose r 2 -c 1.
Exam 2 Review 7.5, 7.6, |A1  A2  A3| =∑|Ai| - ∑|Ai ∩ Aj| + |A1∩ A2 ∩ A3| |A1  A2  A3  A4| =∑|Ai| - ∑|Ai ∩ Aj| + ∑ |Ai∩ Aj ∩ Ak| - |A1∩
Copyright © Cengage Learning. All rights reserved. CHAPTER 9 COUNTING AND PROBABILITY.
1 Permutations and Combinations CS/APMA 202 Rosen section 4.3 Aaron Bloomfield.
MAT 2720 Discrete Mathematics Section 6.1 Basic Counting Principles
Counting. Why counting  Determine the complexity of algorithms To sort n numbers, how many instructions are executed ?  Count the number of objects.
Chapter The Basics of Counting 5.2 The Pigeonhole Principle
Generalized Permutations and Combinations
Chapter 6 With Question/Answer Animations 1. Chapter Summary The Basics of Counting The Pigeonhole Principle Permutations and Combinations Binomial Coefficients.
Chapter 9. Chapter Summary Relations and Their Properties n-ary Relations and Their Applications (not currently included in overheads) Representing Relations.
Fall 2002CMSC Discrete Structures1 One, two, three, we’re… Counting.
2 Permutations and Combinations Lesson 8 HAND OUT REFERENCE SHEET AND GO OVER IT.
Dr. Eng. Farag Elnagahy Office Phone: King ABDUL AZIZ University Faculty Of Computing and Information Technology CPCS 222.
Chapter 9. Section 9.1 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.
ICS 253: Discrete Structures I Counting and Applications King Fahd University of Petroleum & Minerals Information & Computer Science Department.
8.3 Representing Relations Directed Graphs –Vertex –Arc (directed edge) –Initial vertex –Terminal vertex.
 期中测验时间:  10 月 31 日上午 9 : 40—11 : 30  第一到第四章  即,集合,关系,函数,组合数学.
Discrete Mathematics and Its Applications Sixth Edition By Kenneth Rosen Chapter 8 Relations 歐亞書局.
Lecture 4.4: Equivalence Classes and Partially Ordered Sets CS 250, Discrete Structures, Fall 2011 Nitesh Saxena *Adopted from previous lectures by Cinda.
Relations and their Properties
Counting nCr = n!/r!(n-r)!=nC(n-r) This equation reflects the fact that selecting r items is same as selecting n-r items in forming a combination from.
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,
Counting Techniques. L172 Agenda Section 4.1: Counting Basics Sum Rule Product Rule Inclusion-Exclusion.
1 Partial Orderings Aaron Bloomfield CS 202 Epp, section ???
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.)
1 Section 4.3 Order Relations A binary relation is an partial order if it transitive and antisymmetric. If R is a partial order over the set S, we also.
Chapter 8: Relations. 8.1 Relations and Their Properties Binary relations: Let A and B be any two sets. A binary relation R from A to B, written R : A.
SECTION 9 Orbits, Cycles, and the Alternating Groups Given a set A, a relation in A is defined by : For a, b  A, let a  b if and only if b =  n (a)
1 Finding a decomposition of a graph T into isomorphic copies of a graph G is a classical problem in Combinatorics. The G-decomposition of T is balanced.
2/24/20161 One, two, three, we’re… Counting. 2/24/20162 Basic Counting Principles Counting problems are of the following kind: “How many different 8-letter.
Introduction Suppose that a password on a computer system consists of 6, 7, or 8 characters. Each of these characters must be a digit or a letter of the.
Lecture 4.4: Equivalence Classes and Partially Ordered Sets CS 250, Discrete Structures, Fall 2012 Nitesh Saxena Adopted from previous lectures by Cinda.
Section Basic Counting Principles: The Product Rule The Product Rule: A procedure can be broken down into a sequence of two tasks. There are n 1.
CS 104: Discrete Mathematics
ICS 253: Discrete Structures I Counting and Applications King Fahd University of Petroleum & Minerals Information & Computer Science Department.
Section The Product Rule  Example: How many different license plates can be made if each plate contains a sequence of three uppercase English letters.
COUNTING Discrete Math Team KS MATEMATIKA DISKRIT (DISCRETE MATHEMATICS ) 1.
Week 9 - Friday.  What did we talk about last time?  Permutations  Counting elements in sets  Brief introduction to combinations.
Theorem What’s that? Any two consecutive integers have opposite parity. Jon Campbell – Introduction James Kendall – Proof Rob Chalhoub – Example,
Review: Discrete Mathematics and Its Applications
MAT 2720 Discrete Mathematics
Equivalence Relations
The Pigeonhole Principle
Discrete Structures for Computer Science
COCS DISCRETE STRUCTURES
CS 2210 Discrete Structures Counting
CS100: Discrete structures
Basic Counting.
Review: Discrete Mathematics and Its Applications
Presentation transcript:

Homework 9 –Average: 81Median: 88 – –Section 7.3, #9 Note that the answers given in the back of the text were incorrect for parts (d) and (e). I gave and graded this problem because I was interested to see how many of you were just copying the solutions from the text for odd numbered problems instead of working the problems yourselves and using the answers given to verify yours. A large portion of the class got (d) and (e) incorrect. Homework 10 (Due Today) –You will receive a participation grade (4pts per problem) –

Review for Final Exam (Part 2) [This also serves as review for Test3] The Basics of Counting Know the product rule, sum rule, and principle of inclusion- exclusion and how to apply them and when they can be applied. Ex: (Section 4.1, #42) How many bit strings of length 10 contain either five consecutive 0s or five consecutive 1s? First count the number of bit strings that contain 5 consecutive 0s: 00000xxxxx = xxxx = 2 4 x100000xxx = 2 4 xx100000xx = 2 4 xxx100000x = 2 4 xxxx = 2 4 So the number of bit strings of length 10 that contain five consecutive 0s is *2 4 = 112. Similarly the number of bit strings of length 10 that contain five consecutive 1s is 112. But and are d.c.ed. So – 2 = 222.

The Pigeonhole Principle Know how to apply the pigeonhole principle and the GPP. Permutations and Combinations Know the definition of permutation, combination, r-permutation, and r-combination and how they are used in counting. Ex: (Section 4.3, #36) How many bit strings contain exactly five 0s and 14 1s if every 0 must be immediately followed by two 1s? Here we’ll use a more clever technique to solve this problem. Consider just as before that we are looking for strings of the form: x011x011x011x011x011x with 4 1’s left to place among the x’s. Instead of considering cases, let’s consider that we have 5 copies of 011 to place and 4 copies of 1 to place. So we can think of this as having 9 blanks where we have to put 011 into 5 of them and 1 into 4. C(9, 5) or C(9, 4) = 9!/[5!4!] = [9*8*7*6]/[4*3*2*1] = 3*7*6 = 126.

Relations and Their Properties Know the definition of relation (especially relation on a set) Know the definitions of the six properties we studied and how to determine whether a relation has each of the properties. Review theorems regarding relations and their properties Representing Relations Be comfortable with the 3 different ways we have to represent relations. They are each very useful for determining whether a relation has certain properties, computing closures, etc. Be able to translate between different representations of a relation. Closures of Relations Know the definition of closure and how to find closures KNOW HOW TO FIND THE TRANSITIVE CLOSURE (paths)

Equivalence Relation Know the definition of Equivalence Relation, how to prove it Know the definition of Equivalence Classes of an Equivalence Relation, how to find them, and theorems about them Know the definition of a partition and relationship to equiv. rels. Theorem 2 of 7.5 details the relationship between equivalence classes and partitions. There is a 1-1 correspondence. This means if you are given a partition over a set A then there is a corresponding equivalence relation over A such that the equivalence classes of this relation are the sets of the partition. Conversely, given an equivalence relation over a set A, if you put its equivalence classes into a set, you get a partition of A. If I give you an equivalence relation over a set A, you need to be able to find the partition it gives rise to. If I give you a partition over A, you need to find the eq. rel.

Partial Orderings Know all definitions from this section: partial ordering, poset, comparable, incomparable, total order, chain, well-ordering, etc. Be able to construct a Hasse diagram for a given poset. Know all definitions related to Hasse diagrams: maximal/minimal element, greatest/least elements, upper/lower bound, lub/glb, etc. Determine whether a poset is a lattice. For TEST3, review things that gave you trouble in the HW’s (8, 9, 10) For the Final, review things that give you trouble on TEST3 Chapter 4 is very problem solving oriented. Counting is a form of problem solving and you need to develop these techniques through practice. Always ask: “What am I supposed to count?”, “Am I counting everything I need to?”, “Am I double-counting things?” Chapter 7 is extremely definition oriented. You must know them!