38
The Problem How many ways are there to pick a committee of three from persons A, B, C, D, and E? A Simpler Problem How many ways to line up three of those people in order?

How many ways are there to pick a committee of three from …faculty.cord.edu/ahendric/203/CombinationsIntro.pdf · 2014. 3. 6. · ced dab dac dae dba dbc dbe dca dcb dce dea deb

  • Upload
    others

  • View
    0

  • Download
    0

Embed Size (px)

Citation preview

Page 1: How many ways are there to pick a committee of three from …faculty.cord.edu/ahendric/203/CombinationsIntro.pdf · 2014. 3. 6. · ced dab dac dae dba dbc dbe dca dcb dce dea deb

The ProblemHow many ways are there to pick a committee of three frompersons A, B, C, D, and E?

A Simpler ProblemHow many ways to line up three of those people in order?

We start by counting the ways to choose three elements:

5

·

4

·

3 = 60

Page 2: How many ways are there to pick a committee of three from …faculty.cord.edu/ahendric/203/CombinationsIntro.pdf · 2014. 3. 6. · ced dab dac dae dba dbc dbe dca dcb dce dea deb

The ProblemHow many ways are there to pick a committee of three frompersons A, B, C, D, and E?

A Simpler ProblemHow many ways to line up three of those people in order?

We start by counting the ways to choose three elements:

5

·

4

·

3 = 60

Page 3: How many ways are there to pick a committee of three from …faculty.cord.edu/ahendric/203/CombinationsIntro.pdf · 2014. 3. 6. · ced dab dac dae dba dbc dbe dca dcb dce dea deb

The ProblemHow many ways are there to pick a committee of three frompersons A, B, C, D, and E?

A Simpler ProblemHow many ways to line up three of those people in order?We start by counting the ways to choose three elements:

5

·

4

·

3 = 60

Page 4: How many ways are there to pick a committee of three from …faculty.cord.edu/ahendric/203/CombinationsIntro.pdf · 2014. 3. 6. · ced dab dac dae dba dbc dbe dca dcb dce dea deb

The ProblemHow many ways are there to pick a committee of three frompersons A, B, C, D, and E?

A Simpler ProblemHow many ways to line up three of those people in order?We start by counting the ways to choose three elements:

5 ·

4

·

3 = 60

Page 5: How many ways are there to pick a committee of three from …faculty.cord.edu/ahendric/203/CombinationsIntro.pdf · 2014. 3. 6. · ced dab dac dae dba dbc dbe dca dcb dce dea deb

The ProblemHow many ways are there to pick a committee of three frompersons A, B, C, D, and E?

A Simpler ProblemHow many ways to line up three of those people in order?We start by counting the ways to choose three elements:

5 · 4 ·

3 = 60

Page 6: How many ways are there to pick a committee of three from …faculty.cord.edu/ahendric/203/CombinationsIntro.pdf · 2014. 3. 6. · ced dab dac dae dba dbc dbe dca dcb dce dea deb

The ProblemHow many ways are there to pick a committee of three frompersons A, B, C, D, and E?

A Simpler ProblemHow many ways to line up three of those people in order?We start by counting the ways to choose three elements:

5 · 4 · 3

= 60

Page 7: How many ways are there to pick a committee of three from …faculty.cord.edu/ahendric/203/CombinationsIntro.pdf · 2014. 3. 6. · ced dab dac dae dba dbc dbe dca dcb dce dea deb

The ProblemHow many ways are there to pick a committee of three frompersons A, B, C, D, and E?

A Simpler ProblemHow many ways to line up three of those people in order?We start by counting the ways to choose three elements:

5 · 4 · 3 = 60

Page 8: How many ways are there to pick a committee of three from …faculty.cord.edu/ahendric/203/CombinationsIntro.pdf · 2014. 3. 6. · ced dab dac dae dba dbc dbe dca dcb dce dea deb

Sixty committees?

ABCABDABEACBACDACEADBADCADEAEBAECAED

BACBADBAEBCABCDBCEBDABDCBDEBEABECBED

CABCADCAECBACBDCBECDACDBCDECEACEBCED

DABDACDAEDBADBCDBEDCADCBDCEDEADEBDEC

EABEACEADEBAEBCEBDECAECBECDEDAEDBEDC

Page 9: How many ways are there to pick a committee of three from …faculty.cord.edu/ahendric/203/CombinationsIntro.pdf · 2014. 3. 6. · ced dab dac dae dba dbc dbe dca dcb dce dea deb

Sixty committees?

ABCABDABEACBACDACEADBADCADEAEBAECAED

BACBADBAEBCABCDBCEBDABDCBDEBEABECBED

CABCADCAECBACBDCBECDACDBCDECEACEBCED

DABDACDAEDBADBCDBEDCADCBDCEDEADEBDEC

EABEACEADEBAEBCEBDECAECBECDEDAEDBEDC

Page 10: How many ways are there to pick a committee of three from …faculty.cord.edu/ahendric/203/CombinationsIntro.pdf · 2014. 3. 6. · ced dab dac dae dba dbc dbe dca dcb dce dea deb

Sixty committees?

ABCABDABEACBACDACEADBADCADEAEBAECAED

BACBADBAEBCABCDBCEBDABDCBDEBEABECBED

CABCADCAECBACBDCBECDACDBCDECEACEBCED

DABDACDAEDBADBCDBEDCADCBDCEDEADEBDEC

EABEACEADEBAEBCEBDECAECBECDEDAEDBEDC

No! These six are the same!

Page 11: How many ways are there to pick a committee of three from …faculty.cord.edu/ahendric/203/CombinationsIntro.pdf · 2014. 3. 6. · ced dab dac dae dba dbc dbe dca dcb dce dea deb

Why 6?The single committee {A,B,C} shows up once for eachway it can be listed:ABC ACB BAC BCA CAB CBA

How many ways can those three people be listed?

3 · 2 · 1 = 3! = 6

Page 12: How many ways are there to pick a committee of three from …faculty.cord.edu/ahendric/203/CombinationsIntro.pdf · 2014. 3. 6. · ced dab dac dae dba dbc dbe dca dcb dce dea deb

Why 6?The single committee {A,B,C} shows up once for eachway it can be listed:ABC ACB BAC BCA CAB CBA

How many ways can those three people be listed?

3 · 2 · 1 = 3! = 6

Page 13: How many ways are there to pick a committee of three from …faculty.cord.edu/ahendric/203/CombinationsIntro.pdf · 2014. 3. 6. · ced dab dac dae dba dbc dbe dca dcb dce dea deb

Why 6?The single committee {A,B,C} shows up once for eachway it can be listed:ABC ACB BAC BCA CAB CBA

How many ways can those three people be listed?

3 · 2 · 1 = 3! = 6

Page 14: How many ways are there to pick a committee of three from …faculty.cord.edu/ahendric/203/CombinationsIntro.pdf · 2014. 3. 6. · ced dab dac dae dba dbc dbe dca dcb dce dea deb

Why 6?The single committee {A,B,C} shows up once for eachway it can be listed:ABC ACB BAC BCA CAB CBA

How many ways can those three people be listed?

3 · 2 · 1 = 3! = 6

Page 15: How many ways are there to pick a committee of three from …faculty.cord.edu/ahendric/203/CombinationsIntro.pdf · 2014. 3. 6. · ced dab dac dae dba dbc dbe dca dcb dce dea deb

Why 6?The single committee {A,B,C} shows up once for eachway it can be listed:ABC ACB BAC BCA CAB CBA

How many ways can those three people be listed?

3

· 2 · 1 = 3! = 6

Page 16: How many ways are there to pick a committee of three from …faculty.cord.edu/ahendric/203/CombinationsIntro.pdf · 2014. 3. 6. · ced dab dac dae dba dbc dbe dca dcb dce dea deb

Why 6?The single committee {A,B,C} shows up once for eachway it can be listed:ABC ACB BAC BCA CAB CBA

How many ways can those three people be listed?

3 · 2

· 1 = 3! = 6

Page 17: How many ways are there to pick a committee of three from …faculty.cord.edu/ahendric/203/CombinationsIntro.pdf · 2014. 3. 6. · ced dab dac dae dba dbc dbe dca dcb dce dea deb

Why 6?The single committee {A,B,C} shows up once for eachway it can be listed:ABC ACB BAC BCA CAB CBA

How many ways can those three people be listed?

3 · 2 · 1

= 3! = 6

Page 18: How many ways are there to pick a committee of three from …faculty.cord.edu/ahendric/203/CombinationsIntro.pdf · 2014. 3. 6. · ced dab dac dae dba dbc dbe dca dcb dce dea deb

Why 6?The single committee {A,B,C} shows up once for eachway it can be listed:ABC ACB BAC BCA CAB CBA

How many ways can those three people be listed?

3 · 2 · 1 = 3! = 6

Page 19: How many ways are there to pick a committee of three from …faculty.cord.edu/ahendric/203/CombinationsIntro.pdf · 2014. 3. 6. · ced dab dac dae dba dbc dbe dca dcb dce dea deb

So how many?

ABCABDABEACBACDACEADBADCADEAEBAECAED

BACBADBAEBCABCDBCEBDABDCBDEBEABECBED

CABCADCAECBACBDCBECDACDBCDECEACEBCED

DABDACDAEDBADBCDBEDCADCBDCEDEADEBDEC

EABEACEADEBAEBCEBDECAECBECDEDAEDBEDC

Page 20: How many ways are there to pick a committee of three from …faculty.cord.edu/ahendric/203/CombinationsIntro.pdf · 2014. 3. 6. · ced dab dac dae dba dbc dbe dca dcb dce dea deb

So how many?

ABCABDABEACBACDACEADBADCADEAEBAECAED

BACBADBAEBCABCDBCEBDABDCBDEBEABECBED

CABCADCAECBACBDCBECDACDBCDECEACEBCED

DABDACDAEDBADBCDBEDCADCBDCEDEADEBDEC

EABEACEADEBAEBCEBDECAECBECDEDAEDBEDC

Page 21: How many ways are there to pick a committee of three from …faculty.cord.edu/ahendric/203/CombinationsIntro.pdf · 2014. 3. 6. · ced dab dac dae dba dbc dbe dca dcb dce dea deb

So how many?

ABCABDABEACBACDACEADBADCADEAEBAECAED

BACBADBAEBCABCDBCEBDABDCBDEBEABECBED

CABCADCAECBACBDCBECDACDBCDECEACEBCED

DABDACDAEDBADBCDBEDCADCBDCEDEADEBDEC

EABEACEADEBAEBCEBDECAECBECDEDAEDBEDC

Page 22: How many ways are there to pick a committee of three from …faculty.cord.edu/ahendric/203/CombinationsIntro.pdf · 2014. 3. 6. · ced dab dac dae dba dbc dbe dca dcb dce dea deb

So how many?

Page 23: How many ways are there to pick a committee of three from …faculty.cord.edu/ahendric/203/CombinationsIntro.pdf · 2014. 3. 6. · ced dab dac dae dba dbc dbe dca dcb dce dea deb

Ten!

ABC

ABD

ABE

ACB

ACD

ACE

ADB

ADC

ADE

AEB

AEC

AED

BAC

BAD

BAE

BCA

BCD

BCE

BDA

BDC

BDE

BEA

BEC

BED

CAB

CAD

CAE

CBA

CBD

CBE

CDA

CDB

CDE

CEA

CEB

CED

DAB

DAC

DAE

DBA

DBC

DBE

DCA

DCB

DCE

DEA

DEB

DEC

EAB

EAC

EAD

EBA

EBC

EBD

ECA

ECB

ECD

EDA

EDB

EDC

{A,B,C}{A,B,D}{A,B,E}{A,C,D}{A,C,E}{A,D,E}{B,C,D}{B,C,E}{B,D,E}{C,D,E}

Page 24: How many ways are there to pick a committee of three from …faculty.cord.edu/ahendric/203/CombinationsIntro.pdf · 2014. 3. 6. · ced dab dac dae dba dbc dbe dca dcb dce dea deb

Ten!

ABC

ABD

ABE

ACB

ACD

ACE

ADB

ADC

ADE

AEB

AEC

AED

BAC

BAD

BAE

BCA

BCD

BCE

BDA

BDC

BDE

BEA

BEC

BED

CAB

CAD

CAE

CBA

CBD

CBE

CDA

CDB

CDE

CEA

CEB

CED

DAB

DAC

DAE

DBA

DBC

DBE

DCA

DCB

DCE

DEA

DEB

DEC

EAB

EAC

EAD

EBA

EBC

EBD

ECA

ECB

ECD

EDA

EDB

EDC

{A,B,C}{A,B,D}{A,B,E}{A,C,D}{A,C,E}{A,D,E}{B,C,D}{B,C,E}{B,D,E}{C,D,E}

603!

= 10

Page 25: How many ways are there to pick a committee of three from …faculty.cord.edu/ahendric/203/CombinationsIntro.pdf · 2014. 3. 6. · ced dab dac dae dba dbc dbe dca dcb dce dea deb

What Happened?P(5,3) = 5 · 4 · 3 = 60 lists of three peopleEach committee of three shows up in the listP(3,3) = 3! = 6 timesTherefore the number of committees is

P(5,3)P(3,3)

=606

= 10.

Page 26: How many ways are there to pick a committee of three from …faculty.cord.edu/ahendric/203/CombinationsIntro.pdf · 2014. 3. 6. · ced dab dac dae dba dbc dbe dca dcb dce dea deb

What Happened?P(5,3) = 5 · 4 · 3 = 60 lists of three peopleEach committee of three shows up in the listP(3,3) = 3! = 6 timesTherefore the number of committees is

P(5,3)P(3,3)

=606

= 10.

Page 27: How many ways are there to pick a committee of three from …faculty.cord.edu/ahendric/203/CombinationsIntro.pdf · 2014. 3. 6. · ced dab dac dae dba dbc dbe dca dcb dce dea deb

What Happened?P(5,3) = 5 · 4 · 3 = 60 lists of three peopleEach committee of three shows up in the listP(3,3) = 3! = 6 timesTherefore the number of committees is

P(5,3)P(3,3)

=606

= 10.

Page 28: How many ways are there to pick a committee of three from …faculty.cord.edu/ahendric/203/CombinationsIntro.pdf · 2014. 3. 6. · ced dab dac dae dba dbc dbe dca dcb dce dea deb

ConclusionsIn general, suppose you have n people and you want tochoose r of them for a committee.Then there are P(n, r) ways to choose them in order.Each committee shows up in that list P(r , r) = r ! times.Therefore the number of committees is

C(n, r) =

P(n, r)r !

This is called the number of combinations of n objectstaken r at a time.It is written as C(n, r) and is pronounced “n choose r .”

Page 29: How many ways are there to pick a committee of three from …faculty.cord.edu/ahendric/203/CombinationsIntro.pdf · 2014. 3. 6. · ced dab dac dae dba dbc dbe dca dcb dce dea deb

ConclusionsIn general, suppose you have n people and you want tochoose r of them for a committee.Then there are P(n, r) ways to choose them in order.Each committee shows up in that list P(r , r) = r ! times.Therefore the number of committees is

C(n, r) =

P(n, r)r !

This is called the number of combinations of n objectstaken r at a time.It is written as C(n, r) and is pronounced “n choose r .”

Page 30: How many ways are there to pick a committee of three from …faculty.cord.edu/ahendric/203/CombinationsIntro.pdf · 2014. 3. 6. · ced dab dac dae dba dbc dbe dca dcb dce dea deb

ConclusionsIn general, suppose you have n people and you want tochoose r of them for a committee.Then there are P(n, r) ways to choose them in order.Each committee shows up in that list P(r , r) = r ! times.Therefore the number of committees is

C(n, r) =

P(n, r)r !

This is called the number of combinations of n objectstaken r at a time.It is written as C(n, r) and is pronounced “n choose r .”

Page 31: How many ways are there to pick a committee of three from …faculty.cord.edu/ahendric/203/CombinationsIntro.pdf · 2014. 3. 6. · ced dab dac dae dba dbc dbe dca dcb dce dea deb

ConclusionsIn general, suppose you have n people and you want tochoose r of them for a committee.Then there are P(n, r) ways to choose them in order.Each committee shows up in that list P(r , r) = r ! times.Therefore the number of committees is

C(n, r) =

P(n, r)r !

This is called the number of combinations of n objectstaken r at a time.It is written as C(n, r) and is pronounced “n choose r .”

Page 32: How many ways are there to pick a committee of three from …faculty.cord.edu/ahendric/203/CombinationsIntro.pdf · 2014. 3. 6. · ced dab dac dae dba dbc dbe dca dcb dce dea deb

ConclusionsIn general, suppose you have n people and you want tochoose r of them for a committee.Then there are P(n, r) ways to choose them in order.Each committee shows up in that list P(r , r) = r ! times.Therefore the number of committees is

C(n, r) =

P(n, r)r !

This is called the number of combinations of n objectstaken r at a time.It is written as C(n, r) and is pronounced “n choose r .”

Page 33: How many ways are there to pick a committee of three from …faculty.cord.edu/ahendric/203/CombinationsIntro.pdf · 2014. 3. 6. · ced dab dac dae dba dbc dbe dca dcb dce dea deb

ConclusionsIn general, suppose you have n people and you want tochoose r of them for a committee.Then there are P(n, r) ways to choose them in order.Each committee shows up in that list P(r , r) = r ! times.Therefore the number of committees is

C(n, r) =P(n, r)

r !

This is called the number of combinations of n objectstaken r at a time.It is written as C(n, r) and is pronounced “n choose r .”

Page 34: How many ways are there to pick a committee of three from …faculty.cord.edu/ahendric/203/CombinationsIntro.pdf · 2014. 3. 6. · ced dab dac dae dba dbc dbe dca dcb dce dea deb

Permutations vs. Combinations

Important FactThe difference between permutations and combinations is theidea of order.

Key QuestionsWhen selecting objects, ask yourself:

Would it count as a different result if I rearranged theobjects I chose?Am I selecting these objects to play different roles in theproblem?

If the answer to either question is yes, use Permutations; if theanswer to both questions is no, use Combinations.

Page 35: How many ways are there to pick a committee of three from …faculty.cord.edu/ahendric/203/CombinationsIntro.pdf · 2014. 3. 6. · ced dab dac dae dba dbc dbe dca dcb dce dea deb

Permutations vs. Combinations

Important FactThe difference between permutations and combinations is theidea of order.

Key QuestionsWhen selecting objects, ask yourself:

Would it count as a different result if I rearranged theobjects I chose?Am I selecting these objects to play different roles in theproblem?

If the answer to either question is yes, use Permutations; if theanswer to both questions is no, use Combinations.

Page 36: How many ways are there to pick a committee of three from …faculty.cord.edu/ahendric/203/CombinationsIntro.pdf · 2014. 3. 6. · ced dab dac dae dba dbc dbe dca dcb dce dea deb
Page 37: How many ways are there to pick a committee of three from …faculty.cord.edu/ahendric/203/CombinationsIntro.pdf · 2014. 3. 6. · ced dab dac dae dba dbc dbe dca dcb dce dea deb

Practice Problems(cf. 5.5 #39–43)

1 Suppose that you have 35 songs on your MP3 player. Howmany ways can you make a playlist of 5 songs?

2 Of the 20 applicants for a job, 4 will be selected forintensive interviews. In how many ways can the selectionbe made?

3 In a batch of 100 USB drives, 7 are defective. A sample ofthree drives is to be selected from the batch. How manysamples are possible? How many of the samples consistof all defective drives?

4 A student must choose five courses out of seven that hewould like to take. How many possibilities are there?

5 How many different three-letter “words” are there having norepetition of letters?

Page 38: How many ways are there to pick a committee of three from …faculty.cord.edu/ahendric/203/CombinationsIntro.pdf · 2014. 3. 6. · ced dab dac dae dba dbc dbe dca dcb dce dea deb

A More Advanced Problem

6 A club has six people: Alice, Bob, Charlie, Danielle, Edgar,and Frederika. Alice and Danielle are twins, and so areBob and Charlie. How many ways are there to line up thesix people in a row for a picture, if we insist that each pairof twins is standing together?