CSNB143 – Discrete Structure

Slides:



Advertisements
Similar presentations
4-1 Chapter 4 Counting Techniques.
Advertisements

9.5 Counting Subsets of a Set: Combinations
Permutations and Combinations
Combinations We should use permutation where order matters
COUNTING PRINCIPALS, PERMUTATIONS, AND COMBINATIONS.
Permutation and Combination
40S Applied Math Mr. Knight – Killarney School Slide 1 Unit: Probability Lesson: PR-4 Fundamental Counting Principle Fundamental Counting Principle Learning.
4. Counting 4.1 The Basic of Counting Basic Counting Principles Example 1 suppose that either a member of the faculty or a student in the department is.
Combinatorics 3/15 and 3/ Counting A restaurant offers the following menu: Main CourseVegetablesBeverage BeefPotatoesMilk HamGreen BeansCoffee.
Chapter The Basics of Counting 5.2 The Pigeonhole Principle
Copyright © Cengage Learning. All rights reserved. CHAPTER 9 COUNTING AND PROBABILITY.
MAT 2720 Discrete Mathematics Section 6.1 Basic Counting Principles
Counting. Product Rule Example Sum Rule Pigeonhole principle If there are more pigeons than pigeonholes, then there must be at least one pigeonhole.
Aim: Combinations Course: Math Lit. Do Now: Aim: How do we determine the number of outcomes when order is not an issue? Ann, Barbara, Carol, and Dave.
Methods of Counting Outcomes BUSA 2100, Section 4.1.
Advanced Precalculus Advanced Precalculus Notes 12.2 Permutations and Combinations.
Counting Techniques. Multiplication Rule of Counting If a task consists of a sequence of choices in which there are p selections for the first choice,
Dr. Eng. Farag Elnagahy Office Phone: King ABDUL AZIZ University Faculty Of Computing and Information Technology CPCS 222.
3. Counting Permutations Combinations Pigeonhole principle Elements of Probability Recurrence Relations.
© The McGraw-Hill Companies, Inc., Chapter 4 Counting Techniques.
ICS 253: Discrete Structures I Counting and Applications King Fahd University of Petroleum & Minerals Information & Computer Science Department.
Lesson Counting Techniques. Objectives Solve counting problems using the Multiplication Rule Solve counting problems using permutations Solve counting.
Elements of Combinatorics (Continuation) 1. Pigeonhole Principle Theorem. If pigeons are placed into pigeonholes and there are more pigeons than pigeonholes,
Part 2 – Factorial and other Counting Rules
Objectives Solve counting problems using the Multiplication Rule Solve counting problems using permutations Solve counting problems using combinations.
Counting Methods Review General Guidelines. Fundamental Counting Principle Each category outcome is independent of any other category outcome OR Items.
Simple Arrangements & Selections. Combinations & Permutations A permutation of n distinct objects is an arrangement, or ordering, of the n objects. An.
1 Fundamental Principles of Counting OBJECTIVES: At the end of this chapter, students should be able to: 1. describe the concepts of permutation (arrangement)
Sullivan Algebra and Trigonometry: Section 14.2 Objectives of this Section Solve Counting Problems Using the Multiplication Principle Solve Counting Problems.
The Basics of Counting Section 6.1.
CSNB143 – Discrete Structure Topic 6 – Counting Techniques.
Section 11.2 Combinations Math in Our World Learning Objectives  Distinguish between combinations and permutations.  Find the number of combinations.
Copyright 2013, 2010, 2007, Pearson, Education, Inc. Section 12.8 The Counting Principle and Permutations.
Discrete Structures Counting (Ch. 6)
Menu Traditional Menu Other Menu Nasi LemakBeef Burger Roti Canai Potatoes Chip Capati French Bread Mee Goreng Drink : Coffee, Tea, Coke and Pepsi.
Counting Principles Multiplication rule Permutations Combinations.
3.2 Combinations.
HAWKES LEARNING Students Count. Success Matters. Copyright © 2015 by Hawkes Learning/Quant Systems, Inc. All rights reserved. Section 7.2 Counting Our.
Permutations Counting where order matters If you have two tasks T 1 and T 2 that are performed in sequence. T 1 can be performed in n ways. T 2 can be.
Spring 2016 COMP 2300 Discrete Structures for Computation Donghyun (David) Kim Department of Mathematics and Physics North Carolina Central University.
Chapter 7 – Counting Techniques CSNB 143 Discrete Mathematical Structures.
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.
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
Introduction to probability (2) Combinations التوافيق Definition of combination: It is a way of selecting items from a collection, such that the order.
Operations on Sets Union of Sets Intersection of Sets
Discrete Mathematics and Its Applications Sixth Edition By Kenneth Rosen Chapter 5 Counting 歐亞書局.
Section The Product Rule  Example: How many different license plates can be made if each plate contains a sequence of three uppercase English letters.
LEARNING OUTCOMES : a. understand combinations of a set of objects. b. determine the number of ways to form combinations of r objects from n objects Click.
MAT 2720 Discrete Mathematics
Discrete Mathematics Counting.
Chapter 10 Counting Methods.
4-1 Chapter 4 Counting Techniques.
Permutations and Combinations
Sequences, Series, and Probability
CSNB 143 Discrete Mathematical Structures
12.2 Permutations and Combinations
Chapter 5 Probability 5.5 Counting Techniques.
4-1 Chapter 4 Counting Techniques.
4-1 Chapter 4 Counting Techniques.
CS100: Discrete structures
8.3 Counting Apply the fundamental counting principle
Section 12.8 The Counting Principle and Permutations
Discrete Structures Counting.
Counting Methods and Probability Theory
Chapter 10 Counting Methods.
4-1 Chapter 4 Counting Techniques.
Counting Methods and Probability Theory
Chapter 10 Counting Methods 2012 Pearson Education, Inc.
9.1 Basic Combinatorics.
Presentation transcript:

CSNB143 – Discrete Structure Topic 6 – Counting Techniques Part II

Topic 6 – Counting Techniques Learning Outcomes Student should be able to explain all types of counting techniques. Students should be able to distinguish the techniques learned. Students should be able to use each of the counting techniques based on different questions and situations.

Topic 6 – Counting Techniques Multiplication Principle of Counting If there are two tasks T1 and T2 are to be done in sequence. If T1 can be done in n1 ways, and for each of these ways T2 can be done in n2 ways, the sequence T1T2 can be done in n1n2 ways.

Topic 6 – Counting Techniques Example of implementation of multiplication principle of counting A label identifier for computer system, consists of one letter followed by three digits. If repetitions are allowed, use permutation to see how many label identifiers are possible. Task 1 - Find possible selection of letters, n= 26, r = 1, repetition allowed using nr Task 2 – Find possible selection of digits, n= 10, r =3, repetition allowed Using nr Task 1 : 261 Task 2 : 103 Using multiplication principle Task 1 x Task 2 26 x 10 x 10 x 10 = 26000

Topic 6 – Counting Techniques Distinguishable Permutations The number of distinguishable permutations can be formed from a collection of n objects where the first object appears k1 times, the second appears k2 times, and so on ____n!____ k1! k2! … kt! Where k1 + k2 + K3 … kt = n Try CANADA

Topic 6 – Counting Techniques Example of implementation In how many ways can we select a committee of two women and three men from a group of five distinct women and six distinct men? Task 1 - Find possible selection of women, n= 5, r = 2, repetition not allowed (distinct) using Task 2 – Find possible selection of digits, n= 6, r =3, repetition not allowed

Topic 6 – Counting Techniques Example of implementation Find the number of distinguishable permutation of the letters in PASCAL Find the number of distinguishable permutation of the letters in REQUIREMENTS

Topic 6 – Counting Techniques Example of implementation How many different seven-person committees can be formed each containing three women from an available set of 20 women and four men from an available set of 30 men? Permutation or Combination? Repeated or not repeated? Formula to be used?

Topic 6 – Counting Techniques Example of implementation Supposed a valid computer password consists of seven characters, the first of which is a letter chosen from the set {A, B, C, D, E, F, G}, the remaining six characters are letters chosen from the English alphabet or a digit and may be repeated. Permutation or Combination? Repeated or not repeated? Formula to be used?

Topic 6 – Counting Techniques Example of implementation How many permutations of the letters ABCDEF contain the substring DEF? How many permutations of the letters ABCDEF contain the letters DEF together in any order?

Topic 6 – Counting Techniques Example of implementation How many arrangement of the letters in the word BOUGHT can be formed if the vowels must be kept next to each other?

Topic 6 – Counting Techniques Pigeonhole Principle Pigeonhole Principle is a principle that ensures that the data exists, but there is no information to identify which data or what data. Example: If there are n pigeons assigned to m pigeonholes, where the number of pigeons are more than the number of pigeonholes, then at least one pigeonhole will contain more than one pigeons.

Topic 6 – Counting Techniques Pigeonhole Principle Show that any five numbers from 1 to 8 are chosen, two of them will add to 9. Solution: 1, 2, 3, 4, 5, 6,7, 8, 9 2 numbers that add up to 9, placed in sets: A={1,8} B={2,7} C={3,6} D={4,5} Each of the 5 numbers chosen must belong to one of these sets. Since there are only 4 sets, the pigeonhole principle tells us that two of the chosen numbers belong to the same set

Topic 6 – Counting Techniques Pigeonhole Principle Example: In a group of 8 people show that at least two have their birthday on the same day of the week. Solution: The people (8 of them) are the pigeons and the weekdays (7 of them) are the pigeon-holes. By the PHP, there is a weekday such that at least 2 people have that day as their birthday (proven)