11/18/2015MATH 106, Section 131 Section 13 Non-adjacent Objects Questions about homework? Submit homework!

Slides:



Advertisements
Similar presentations
9.5 Counting Subsets of a Set: Combinations
Advertisements

Counting Chapter 6 With Question/Answer Animations.
If you have not yet registered and received a name tag, please make your way to the front of the Activity Center. Schedule 8:30-9:00 Check In 9:00-9:15.
Math 106 – Exam #2 - Review Problems 1. (a) (b) (c) (d) (e) (f) (g) Fourteen different candy bars (Snicker’s, Milky Way, etc.) are available for a mother.
Warm-up Finding Terms of a Sequence
CHAPTER 4 Decidability Contents Decidable Languages
More Counting Lecture 16: Nov 9 A B …… f. Counting Rule: Bijection If f is a bijection from A to B, then |A| = |B| A B …… f.
Recursive Definitions Rosen, 3.4 Recursive (or inductive) Definitions Sometimes easier to define an object in terms of itself. This process is called.
Math Olympiad Strategies
Investigation 2.2 Missing Factors
Cardinality of Sets Section 2.5.
Elementary Algebra Exam 1 Material.
5.5 Counting Techniques. More Challenging Stuff  The classical method, when all outcomes are equally likely, involves counting the number of ways something.
Chapter 2: Sampling and Surveys Section 2.1: Samples, Good and Bad.
Section 9.2 Arithmetic Sequences. OBJECTIVE 1 Arithmetic Sequence.
Rev.S08 MAC 1140 Module 12 Introduction to Sequences, Counting, The Binomial Theorem, and Mathematical Induction.
Warm-Up: December 5, 2014 Input Output
More Counting Lecture 16: Nov 9 A B …… f. This Lecture We will study how to define mappings to count. There will be many examples shown. Bijection rule.
9/12/2015MATH 106, Section 11 MATH 106 Combinatorics “In how many ways is it possible to …?”
9/15/2015MATH 106, Section 31 Section 3 Recipes Questions about homework? Submit homework!
 Men are better at mathematics than women. False!  There is always a best way to do a mathematics problem. False!  It’s always important to get the.
Copyright © Cengage Learning. All rights reserved. CHAPTER 9 COUNTING AND PROBABILITY.
Section 2.4. Section Summary Sequences. Examples: Geometric Progression, Arithmetic Progression Recurrence Relations Example: Fibonacci Sequence Summations.
10/12/2015MATH 106, Section 141 Section 14 Linear Equations with Unit Coefficients Questions about homework? Submit homework!
Chapter 6 With Question/Answer Animations 1. Chapter Summary The Basics of Counting The Pigeonhole Principle Permutations and Combinations Binomial Coefficients.
What are two types of Sequences?
More Combinations © Christine Crisp “Teach A Level Maths” Statistics 1.
2 Permutations and Combinations Lesson 8 HAND OUT REFERENCE SHEET AND GO OVER IT.
10/24/2015MATH 106, Section 81 Section 8 Pascal’s Triangle Questions about homework? Submit homework!
8.6 Geometric Sequences.
Lesson #8.6: Geometric Sequence Objective: SWBAT form geometric sequences and use formulas when describing sequences.
Sullivan Algebra and Trigonometry: Section 14.2 Objectives of this Section Solve Counting Problems Using the Multiplication Principle Solve Counting Problems.
Counting Techniques and Some Other Math Team Strategies Susan Schwartz Wildstrom Walt Whitman High School Bethesda, MD NCTM National Meeting April 6, 2001.
Recursion Review: A recursive function calls itself, but with a smaller problem – at least one of the parameters must decrease. The function uses the results.
11/30/2015MATH 106, Section 61 Section 6 More Ordered Arrangements Questions about homework? Submit homework!
Arithmetic Sequences as Linear Functions
Sequences and Series (Section 9.4 in Textbook).
12/13/2015MATH 106, Section 41 Section 4 Permutations Questions about homework? Submit homework!
Discrete Mathematics Lecture # 25 Permutation & Combination.
12/14/2015MATH 106, Section 101 Subsets, Strings, Equations Handout 1. A vending machine advertises Reese’s Cups, Hershey Bars, Snicker’s Bars, Milky Way.
Introduction to Discrete Probability Epp, section 6.x CS 202.
The Standard Normal Distribution Section Starter Weights of adult male Norwegian Elkhounds are N(42, 2) pounds. What weight would represent the.
1/23/2016MATH 106, Section 171 Section 17 More Equations with Restricted Solutions Questions about homework? Submit homework!
Group 5 Algorithms Presentation. Agenda Items and Presenters Bell Numbers All Pairs Shortest Path Shell Sort and Radix Sort Psuedocode.
More Permutations © Christine Crisp “Teach A Level Maths” Statistics 1.
SECTION 2-2 Finding the nth Term. You have been looking at different sequences Each time you were asked to describe the next one or two terms. 3, 5, 7,
Math II UNIT QUESTION: How is a geometric sequence like an exponential function? Standard: MM2A2, MM2A3 Today’s Question: How do you recognize and write.
Objective: 1. After completing activity 1, mod With 90% accuracy 3. -Identify sequences as arithmetic, geometric, or neither -Write recursive formulas.
Section 1.3 Each arrangement (ordering) of n distinguishable objects is called a permutation, and the number of permutations of n distinguishable objects.
Pre-Algebra 12-3 Other Sequences Check 12-2 HOMEWORK.
CompSci 102 Discrete Math for Computer Science March 13, 2012 Prof. Rodger Slides modified from Rosen.
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.
Lesson Concept: Using Rectangles to Multiply 1 Product – The result of multiplying. (For example, the product of 4 and 5 is 20). Today you will explore.
6/9/2016MATH 106, Section 51 Section 5 Combinations Questions about homework? Submit homework!
8.1 – Sequences and Series. Sequences Infinite sequence = a function whose domain is the set of positive integers a 1, a 2, …, a n are the terms of the.
COUNTING Discrete Math Team KS MATEMATIKA DISKRIT (DISCRETE MATHEMATICS ) 1.
Section 5.3 “Solving Eq. And Ineq. w/ Absolute Value”
Section 16 Inclusion/Exclusion
Lesson Concept: Using Rectangles to Multiply
8.3 Counting Apply the fundamental counting principle
Creating a Multiplication Square
Sequences and Series 4.7 & 8 Standard: MM2A3d Students will explore arithmetic sequences and various ways of computing their sums. Standard: MM2A3e Students.
Recursively Defined Sequences
Probability Section 19 NOTE: We are skipping Section 18. 2/21/2019
AP Statistics Warm-up: Problem 5.26.
Unit 1 – Section 4 “Recursive and Explicit Formula” Part 2
SECTIONS 9-2 and 9-3 : ARITHMETIC &
Presentation transcript:

11/18/2015MATH 106, Section 131 Section 13 Non-adjacent Objects Questions about homework? Submit homework!

11/18/2015MATH 106, Section 132 Jana attends a college which has 10 class periods, one right after another, for Monday-Wednesday-Friday classes. She is scheduling 3 Monday-Wednesday-Friday classes, and she wants to avoid having two or more classes in a row, that is, she does not want classes to be in adjacent class periods. For instance, the schedule format would be acceptable to Jana, but the schedule format would not be acceptable to Jana. class free free class free class free free free free class free free free class class free free free free What is the total number of schedule formats possible regardless of whether or not they are acceptable to Jana? 10! ——– = 120 7! 3! #1

11/18/2015MATH 106, Section 133 What is the total number of schedule formats acceptable to Jana? What is the total number of schedule formats with at least two classes in a row? What is the total number of schedule formats with no adjacent free periods? Let’s tackle this problem by first lining up the seven free periods: free free free free free free free There are “gaps” where we may insert exactly one class. 8 The total number of schedule formats acceptable to Jana is equal to the number of ways we may choose 3 gaps to insert the 3 classes, and this is equal to C(8,3) = – 56 = 64 0 (zero) - this is not possible!

11/18/2015MATH 106, Section 134 Ten symbols consisting of seven Xs and three Ts are to be placed in a row. What is the total number of arrangements possible? What is the number of arrangements where no Ts may be adjacent? What is the number of arrangements where no Xs may be adjacent? 10! ——– = 120 7! 3! C(8,3) = 56 0 (zero) - this is not possible! #2

11/18/2015MATH 106, Section 135 Ten symbols consisting of Xs and Ts are to be placed in a row. What is the total number of arrangements possible? What is the number of arrangements where no Ts may be adjacent? 2 10 = 1024 C(11,0) = 1 With 10 Xs and 0 Ts, the number arrangements with no adjacent Ts is C(10,1) = 10 With 9 Xs and 1 T, the number arrangements with no adjacent Ts is C(9,2) = 36 With 8 Xs and 2 Ts, the number arrangements with no adjacent Ts is C(8,3) = 56 With 7 Xs and 3 Ts, the number arrangements with no adjacent Ts is #3

11/18/2015MATH 106, Section 136 What is the number of arrangements where no Ts may be adjacent? C(11,0) = 1 With 10 Xs and 0 Ts, the number arrangements with no adjacent Ts is C(10,1) = 10 With 9 Xs and 1 T, the number arrangements with no adjacent Ts is C(9,2) = 36 With 8 Xs and 2 Ts, the number arrangements with no adjacent Ts is C(8,3) = 56 With 7 Xs and 3 Ts, the number arrangements with no adjacent Ts is With 6 Xs and 4 Ts, the number arrangements with no adjacent Ts is With 5 Xs and 5 Ts, the number arrangements with no adjacent Ts is C(7,4) = 35 C(6,5) = 6 With 4 Xs and 6 Ts, the number arrangements with no adjacent Ts is This is not possible! There is no C(5,6). C(11,0) + C(10,1) + C(9,2) + C(8,3) + C(7,4) + C(6,5) = 144

11/18/2015MATH 106, Section 137 Eleven symbols consisting of Xs and Ts are to be placed in a row. What is the total number of arrangements possible? What is the number of arrangements where no Ts may be adjacent? 2 11 = 2048 C(12,0) = 1 With 11 Xs and 0 Ts, the number arrangements with no adjacent Ts is C(11,1) = 11 With 10 Xs and 1 T, the number arrangements with no adjacent Ts is C(10,2) = 45 With 9 Xs and 2 Ts, the number arrangements with no adjacent Ts is C(9,3) = 84 With 8 Xs and 3 Ts, the number arrangements with no adjacent Ts is #4

11/18/2015MATH 106, Section 138 What is the number of arrangements where no Ts may be adjacent? C(12,0) = 1 With 11 Xs and 0 Ts, the number arrangements with no adjacent Ts is C(11,1) = 11 With 10 Xs and 1 T, the number arrangements with no adjacent Ts is C(10,2) = 45 With 9 Xs and 2 Ts, the number arrangements with no adjacent Ts is C(9,3) = 84 With 8 Xs and 3 Ts, the number arrangements with no adjacent Ts is C(8,4) = 70 With 7 Xs and 4 Ts, the number arrangements with no adjacent Ts is C(7,5) = 21 With 6 Xs and 5 Ts, the number arrangements with no adjacent Ts is C(6,6) = 1 With 5 Xs and 6 Ts, the number arrangements with no adjacent Ts is With 4 Xs and 7 Ts, the number arrangements with no adjacent Ts is This is not possible! There is no C(5,7).

11/18/2015MATH 106, Section 139 What is the number of arrangements where no Ts may be adjacent? C(12,0) + C(11,1) + C(10,2) + C(9,3) + C(8,4) + C(7,5) + C(6,6) = 233 Each seat in a row is to be designated either to be for a man or to be for a woman, but seats for women are not allowed to be adjacent. Find the number of seating arrangements if the row contains 5 seats. 6 seats 13 seats 14 seats Do the four parts of this problem for next class on a separate sheet of paper, so that you can submit it for homework. DO NOT attempt to do the problems on the rest of this handout, since we will do these in class next time. #5

11/18/2015MATH 106, Section 1310 Each seat in a row is to be designated either to be for a man or to be for a woman, but seats for women are not allowed to be adjacent. Find the number of seating arrangements if the row contains 5 seats. 6 seats 13 seats 14 seats #5 You were supposed to do the four parts of this problem for today’s class on a separate sheet of paper to be submitted for homework. Copy your work and answers onto the handout (if you have not already done so), and then submit the separate sheet of paper.

11/18/2015MATH 106, Section 1311 Each seat in a row is to be designated either to be for a man or to be for a woman, but seats for women are not allowed to be adjacent. Find the number of seating arrangements if the row contains 5 seats. 6 seats 13 seats 14 seats C(6,0) + C(5,1) + C(4,2) + C(3,3) = 13 C(7,0) + C(6,1) + C(5,2) + C(4,3) = 21 C(15,0) + C(14,1) + C(13,2) + C(12,3) + C(11,4) + C(10,5) + C(9,6) + C(8,7) = 987 C(14,0) + C(13,1) + C(12,2) + C(11,3) + C(10,4) + C(9,5) + C(8,6) + C(7,7) = 610 #5

11/18/2015MATH 106, Section 1312 If n symbols consisting of Xs and Ts are to be placed in a row, what is the total number of possible arrangements the number of arrangements where no Ts may be adjacent? 2n2n Let us designate F(n) to be the number of strings (arrangements) of n symbols of two types (say Xs and Ts) where one of the symbols (say the Ts) are never adjacent. From previous problems, we have seen F(5) =F(6) =F(10) = F(11) =F(13) =F(14) = Let’s write a recipe to get a string of the n symbols with no adjacent Ts: #6

11/18/2015MATH 106, Section 1313 Let’s write a recipe to get a string of the n symbols with no adjacent Ts: X __ __ __ … __ Start with X. Write any string of the n – 1 symbols with no adjacent Ts. OR T X __ __ __ … __ Write any string of the n – 2 symbols with no adjacent Ts. Start with TX. number of strings of n symbols with no adjacent Ts We find thatF(n) = F(n – 1) + F(n – 2). number of strings of n – 1 symbols with no adjacent Ts number of strings of n – 2 symbols with no adjacent Ts

11/18/2015MATH 106, Section 1314 F(0) = F(1) = F(2) = 1 There is only 1 “empty” string (where no Ts are adjacent). 2 The strings are as follows:X andT 3 The strings are as follows:TXXTXX Put a TX in front of each string of length 0. Put a X in front of each string of length 1. number of strings of n symbols with no adjacent Ts We find thatF(n) = F(n – 1) + F(n – 2). number of strings of n – 1 symbols with no adjacent Ts number of strings of n – 2 symbols with no adjacent Ts

11/18/2015MATH 106, Section 1315 Let’s see if we can find a pattern. F(0) = F(1) = F(2) = F(3) = 1 There is only 1 “empty” string (where no Ts are adjacent). 2 The strings are as follows:X andT 3 The strings are as follows:TXXTXX The strings are as follows:TXXTXT XTXXXTXXX Put a TX in front of each string of length 1. Put a X in front of each string of length 2. 5

11/18/2015MATH 106, Section 1316 Let’s see if we can find a pattern. F(0) =F(10) = F(1) =F(11) = F(2) =F(12) = F(3) = F(4) = F(5) = F(6) = F(7) = F(8) = F(9) = 1 2 F(0) + F(1) = 3 F(1) + F(2) = 5 F(2) + F(3) = 8 F(3) + F(4) = 13 F(4) + F(5) = 21 F(5) + F(6) = 34 F(6) + F(7) = 55 F(7) + F(8) = 89 F(8) + F(9) = 144 F(9) + F(10) = 233 F(10) + F(11) = 377 This sequence of numbers is called the Fibonacci sequence. An amazing but very non-intuitive formula for getting the nth Fibonacci number is F(n) = 1 —–   5 ——— 2 n + 2 – 1 –  5 ——— 2 n + 2 Note: This formula appears on page 101 of the textbook.

11/18/2015MATH 106, Section 1317 Let’s try the formula to calculate F(12). 1 —–   5 ——— 2 14 – 1 –  5 ——— 2 14 =377 It works!!!!

11/18/2015MATH 106, Section 1318 Brian is attending a college which has 7 class periods, one right after another, for Monday-Wednesday-Friday classes. 3 What is the smallest number of classes he can take to avoid having two or more free periods in a row? What is the number of schedule formats possible where he can avoid having two or more free periods in a row, that is, he can avoid adjacent free periods? F(7) = 34 #7

11/18/2015MATH 106, Section 1319 What is the number of schedule formats possible where he can avoid having two or more free periods in a row, if he takes no more than 5 classes? C(6,2) + C(5,3) + C(4,4) = 26

11/18/2015MATH 106, Section 1320 Homework Hints: In Section 13 Homework Problem #8, In Section 13 Homework Problem #9, use the GOOD = ALL  BAD principle with the answers in the two previous homework problems. keeping in mind that if there are no adjacent Bs, then all Bs are adjacent, consider the following possibilities: a string of 15 Bs a string of 14 Bs and 1 A a string of 13 Bs and 2 As. a string of 2 Bs and 13 As a string of 1 B and 14 As a string of 15 As