1 / 14

Introduction to Combinatorics

Introduction to Combinatorics. CSC 333 Discrete Mathematics. Counting Mechanisms. We in computer science often need to count things . . . Some Techniques: Multiplication Principle Addition Principle Using them together. Multiplication Principle.

Download Presentation

Introduction to Combinatorics

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. Introduction to Combinatorics CSC 333 Discrete Mathematics

  2. Counting Mechanisms • We in computer science often need to count things . . . • Some Techniques: • Multiplication Principle • Addition Principle • Using them together. CSC 333

  3. Multiplication Principle • If there are n1 possible outcomes for a first event and n2 possible outcomes for a second event, there are n1 x n2 possible outcomes for the sequence of the two events. • Example: How many unique 4-digit numbers are possible? CSC 333

  4. Multiplication Principle • Practice 22? • See Example 28. • Note: |S| denotes the number of elements in the finite set S. CSC 333

  5. Addition Principle • If A and B are disjoint events with n1 and n2 possible outcomes, respectively, then the total number of possible outcomes for event “A or B” is n1 + n2. • See Example 30. • Suppose the customer wants to buy a truck AND a car. CSC 333

  6. Addition Principle • If A and B are disjoint finite sets, then |A U B| = |A| + |B| • Also see Example 32. CSC 333

  7. Using the Addition and Multiplication Principles together • See Example 34. • Practice 23? • Multiple approaches are possible. • See Example 35. • At least 3 approaches to Example 36. CSC 333

  8. A comment on decision trees . . . CSC 333

  9. Inclusion and Exclusion And The Pigeonhole Principle

  10. Operating Principles: • A and B are subsets of universal set S. • It is true that A - B, B - A, and A ∩ B are disjoint sets (with no common elements). • It is shown that |A U B| = |A| + |B| - |A ∩ B|(common sense) and |A ∩ B| = |A| + |B| - |A U B| CSC 333

  11. Extension to Three Sets • See Equation 3, p. 226, and Figure 3.7 CSC 333

  12. THE Principle of Inclusion and Exclusion: • See p. 228. • Note the mathematical description at bottom of page preceded by an explanatory narrative. CSC 333

  13. The Pigeonhole Principle • If more than k items are placed into k bins, then at least one bin contains more than one item. • See Example 43. • Practice 29? CSC 333

  14. Summary of Counting Mechanisms • Multiplication Principle • Addition Principle • Combination of above • Principle of Inclusion and Exclusion • Pigeonhole Principle CSC 333

More Related