Exam 1 Review 5.1, 6.1-7.4, 8.1, 8.2.

Slides:



Advertisements
Similar presentations
Counting. Counting = Determining the number of elements of a finite set.
Advertisements

Exam 1 Review
Counting Chapter 6 With Question/Answer Animations.
Recursively Defined Functions
College of Information Technology & Design
Combinations, Permutations, and the Fundamental Counting Principle.
Counting and Probability The outcome of a random process is sure to occur, but impossible to predict. Examples: fair coin tossing, rolling a pair of dice,
Multiplication Rule. A tree structure is a useful tool for keeping systematic track of all possibilities in situations in which events happen in order.
Counting Tools ● Enumeration ● Multiplication ● Addition ● Negation.
CSE115/ENGR160 Discrete Mathematics 04/17/12
Counting II: Recurring Problems And Correspondences Great Theoretical Ideas In Computer Science Steven RudichCS Spring 2004 Lecture 10Feb 12, 2004Carnegie.
CSE 321 Discrete Structures Winter 2008 Lecture 16 Counting.
Discrete Mathematics Lecture 6 Alexander Bukharovich New York University.
Counting Elements in a List How many integers in the list from 1 to 10? How many integers in the list from m to n? (assuming m
Recursive Definitions Rosen, 3.4 Recursive (or inductive) Definitions Sometimes easier to define an object in terms of itself. This process is called.
Applied Discrete Mathematics Week 9: Relations
7.2 Solving Recurrence Relations. Definition 1 (p. 460)- LHRR-K Def: A linear homogeneous recurrence relations of degree k with constant coefficients.
Advanced Counting Techniques
CS100 : Discrete Structures
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.
Counting Principles (Permutations and Combinations )
Copyright © The McGraw-Hill Companies, Inc. Permission required for reproduction or display. Combinatorics.
Combinatorics 3/15 and 3/ Counting A restaurant offers the following menu: Main CourseVegetablesBeverage BeefPotatoesMilk HamGreen BeansCoffee.
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.
Review of 5.1, 5.3 and new Section 5.5: Generalized Permutations and Combinations.
Jessie Zhao Course page: 1.
Sequences and Series. Quick Review.
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 8. Section 8. 1 Section Summary Introduction Modeling with Recurrence Relations Fibonacci Numbers The Tower of Hanoi Counting Problems Algorithms.
Basic Counting. This Lecture We will study some basic rules for counting. Sum rule, product rule, generalized product rule Permutations, combinations.
Chapter The Basics of Counting 5.2 The Pigeonhole Principle
Advanced Counting Techniques CSC-2259 Discrete Structures Konstantin Busch - LSU1.
Fall 2002CMSC Discrete Structures1 One, two, three, we’re… Counting.
Methods of Counting Outcomes BUSA 2100, Section 4.1.
Dr. Eng. Farag Elnagahy Office Phone: King ABDUL AZIZ University Faculty Of Computing and Information Technology CPCS 222.
Ch. 5: Counting. 5.1: The Basics of Counting Intro Example #1: If we have a class of 6 math majors and 7 CS majors (with no double majors) – A) In how.
Chapter 7 Advance Counting Techniques. Content Recurrence relations Generating function The principle of inclusion-exclusion.
ICS 253: Discrete Structures I Counting and Applications King Fahd University of Petroleum & Minerals Information & Computer Science Department.
Chapter 6, Counting and Probability
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.
Advanced Counting Techniques CSC-2259 Discrete Structures Konstantin Busch - LSU1.
Spatial Statistics and Spatial Knowledge Discovery First law of geography [Tobler]: Everything is related to everything, but nearby things are more related.
Counting Discrete Mathematics. Basic Counting Principles Counting problems are of the following kind: “How many different 8-letter passwords are there?”
7.2 Solving Linear Recurrence Relations Some of these recurrence relations can be solved using iteration or some other ad hoc technique. However, one important.
Discrete Mathematics, 1st Edition Kevin Ferland Chapter 6 Basic Counting 1.
Counting II: Recurring Problems And Correspondences Great Theoretical Ideas In Computer Science John LaffertyCS Fall 2005 Lecture 7Sept 20, 2005Carnegie.
Unit VI Discrete Structures Permutations and Combinations SE (Comp.Engg.)
Counting II: Recurring Problems And Correspondences Great Theoretical Ideas In Computer Science V. AdamchikCS Spring 2006 Lecture 6Feb 2, 2005Carnegie.
CS Lecture 8 Developing Your Counting Muscles.
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.
Copyright © Peter Cappello 2011 Simple Arrangements & Selections.
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
L14: Permutations, Combinations and Some Review EECS 203: Discrete Mathematics.
Quiz: Draw the unit circle: Include: (1)All “nice” angles in degrees (2) All “nice” angles in radians (3) The (x, y) pairs for each point on the unit circle.
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.
COUNTING Discrete Math Team KS MATEMATIKA DISKRIT (DISCRETE MATHEMATICS ) 1.
Discrete Mathematics Counting.
L14: Permutations, Combinations and Some Review
The Pigeonhole Principle
CSE15 Discrete Mathematics 04/19/17
COCS DISCRETE STRUCTURES
Recursively Defined Functions
CS100: Discrete structures
Counting Discrete Mathematics.
Basic Counting Lecture 9: Nov 5, 6.
Counting II: Recurring Problems And Correspondences
Presentation transcript:

Exam 1 Review 5.1, 6.1-7.4, 8.1, 8.2

5.1 Proof by Mathematical Induction Claim: 2 divides n2+n whenever n is a positive integer. Proof: BASIS INDUCTIVE STEP Assume: Show:

Basic Counting Rules- Ch. 6 SUM rule (for +) PRODUCT rule (for *) INCLUSION/EXCLUSION COMPLEMENT rule number= total – opposite Ex: password with at least 2 vowels = total – (password with 0 or 1 vowels)

Counting cases- from sec 6.1, 6.3, 6.5 Order matters, repetition allowed Multiplication Rule Ex: Social Security numbers Order matters, repetition NOT allowed Permutations: P(n,r)= n!/(n-r)! Ex: number of ways to pick 1st, 2nd, 3rd from 30 Order DOESN’T matter, repetition allowed section 6.5 (stars and bars; objects and dividers) n categories, n-1 dividers, r objects C(n-1+r, r) = C(n-1+r, n-1) Order DOESN’T matter, repetition NOT allowed Combinations: C(n,r)= n!/ [(n-r)!*r!] Ex: number of ways to pick a committee of 3 from 30 Permutations with DUPLICATE items n! / (n1 ! * n2 ! * n3 ! *…) Ex: how many ways to rearrange the letters in MISSISSIPPI Ex: how many ways to put 3 identical Finite books, 4 identical Bio books, and 5 identical Calc books on a shelf

Basic probability rules Know these: P(E)=|E|/|S| 0<= P(E) <= 1 P(E ‘ ) = 1 – P(E) Know how to set up Bayes Thm tree diagrams These will be given: Bayes Theorem P(X=k)= nCk * p k q n-k Mean or Expected value μ = E(x)= Special case: Binomial μ = E(x)=np; Standard deviation σ = √(npq)

Sample Ch. 6 and 7 problems Sample problems: 1. Passwords can be comprised of letters or digits. (uses sum, multiplication, complement rules) How many of them are: a) 4-6 characters b) 4-5 characters, with exactly 1 digit c) 4-5 characters, with exactly 2 digits d) 4-5 characters, with at least 2 digits

…Probability 2. Which "type" of counting problems are these? (case 1,2,3,4, or 5?) a)An ice cream parlor has 28 different flavors, 8 different kinds of sauce, and 12 toppings. i)In how many different ways can a dish of three scoops of ice cream be made where each flavor can be used more than once and the order of the scoops does not matter? ii)How many different kinds of small sundaes are there if a small sundae contains one scoop of ice cream, a sauce, and a topping?

…Probability b) How many ways are there to choose a dozen donuts from 20 varieties: i) if there are no two donuts of the same variety? ii) if all donuts are of the same variety? iii) if there are no restrictions? iv) if there are at least two varieties? v) if there must be at least six blueberry-filled donuts? vi) if there can be no more than six blueberry-filled donuts?

…Probability c) A professor writes 20 multiple choice questions, each with possible answer a,b,c, or d, for a test. If the number of questions with a,b,c, and d as their answer is 8,3,4, and 5, respectively, how many different answer keys are possible, if the questions can be placed in any order? d) How many ways are there to assign 24 students to five faculty advisors? e) A witness to a hit and run accident tells the police that the license plate of the car in the accident, which contains three letters followed by three digits, starts with the letters AS and contains both the digits 1 and 2. How many different license plates can fit this description?

… f) There are 7 types of bagels at the store. i) How many different ways could you pick 12 of them and bring them to a meeting? ii) How many different ways could you choose to select bagels to each on 12 consecutive days? g)How many ways could we rearrange 13 books on a bookshelf: i)if all are different? ii)if 4 are identical chemistry books, 6 physics, and 3 math?

… h)How many ways could I there be to select 6 students out of 20 to receive A's? i)How many ways could I guess who in this class will get the best, second, and third score on the exam? j) How many ways can I select 3 women and 3 men from a Math Team (of 20 females and 25 males) to go to the National Math Tournament?

… Number of solutions: How many nonnegative solutions are there to x1 + x2 + x3 = 30, where x1>1, x2>4, x3>2?

… 4. how many bit strings of length 8: i) have at least 6 zero‘s? ii) start with 10 and end with 010?

Ch. 7: Probability Basic Def Know def of P(E) Basic examples: dice, coins, cards,… Ex: when tossing 2 dice, find P(sum is 11)= Know P(E’)= ______ Bayes will be given- be able to write out tree

8.1- Types of Recur relation examples Examples: Given a recurrence relation, calculate a term, say a6 Prove: an=n! is a solution to an=n*an-1, a0=1 Find a solution to an=n*an-1, a0=1 Applications: number of bit strings, number of ways to walk up the steps, Tower of Hanoi

8.2– Thm. 1 Thm. 1: Let c1, c2 be elements of the real numbers. Suppose r2-c1r –c2=0 has two distinct roots r1 and r2, Then the sequence {a n} is a solution of the recurrence relation an = ____________ iff an= __________ for n=0, 1, 2… where______

Thm. 1 for two roots Theorem 1: Let c1, c2 be elements of the real numbers. Suppose r2-c1r –c2=0 has two distinct roots r1 and r2, Then the sequence {a n} is a solution of the recurrence relation an = c1an-1 + c2 an-2 iff an=α1r1n+ α2r2n for n=0, 1, 2… where α1 and α2 are constants.

Steps for Solving 2nd degree LHRR-K For degree 2: the characteristic equation is r2-c1r –c2=0 (roots are used to find explicit formula) Find characteristic equation Find roots Basic Solution: an=α1r1n+ α2r2n where r1 and r2 are roots of the characteristic equation Solve for α1,α2 to find solution Prove this is the solution

Thm. 2 for one root Theorem 2: Let c1, c2 be elements of the real numbers. Suppose r2-c1r –c2=0 has only one root r0 , Then the sequence {a n} is a solution of the recurrence relation an = c1an-1 + c2 an-2 iff an=α1r0n+ α2 n r0n for n=0, 1, 2… where α1 and α2 are constants.

Ex: 6. an =8an-1 -16an-2 for n≥2; a0=2 and a1=20. Find characteristic equation Find solution

Ex: 6. an =8an-1 -16an-2 for n≥2; a0=2 and a1=20. Prove the solution you just found is a solution

Formulas that will be GIVEN on Exams Binomial P(X=k)= nCk * p k q n-k Mean or Expected value μ = np Standard deviation σ = √(npq) Bayes’ Theorem Summation = 8.2: outline for Thm. 1: Let c1, c2 be elements of the real numbers. Suppose r2-c1r –c2=0 has two distinct roots r1 and r2, Then the sequence {a n} is a solution of the recurrence relation an = ____________ iff an= __________ for n=0, 1, 2… where______ (you fill in the gaps on Thm 1) ----------------------------------- Know all other other relevant formulas