Review of Basic Counting - PowerPoint PPT Presentation

1 / 21
About This Presentation
Title:

Review of Basic Counting

Description:

2 cards from the box such that the. sum of 2 numbers (on the cards) is ... Gold, silver and bronze medals are awarded: in how many ways can the awards be made? ... – PowerPoint PPT presentation

Number of Views:15
Avg rating:3.0/5.0
Slides: 22
Provided by: SUW4
Category:

less

Transcript and Presenter's Notes

Title: Review of Basic Counting


1
Review of Basic Counting
  • Suppose there are 10 cards in a box,
  • the number 0, 1, 2, , 9 was written
  • on each card. How many ways to pick
  • 2 cards from the box such that the
  • sum of 2 numbers (on the cards) is
  • odd if you
  • 1) pick 2 cards at the same time.
  • 2) pick 2 cards one by one.

5x525 ways
252550 ways
2
???????????????????????????
  • ???????? ?????? 10 ?? ???????????
    ????????????????????? 0 1 2 3 9
    ????????????????????? 2 ?????????????????????????
    ?????????? ???
  • 1) ???????????? 2 ?? (?????? ??)
  • 2) ?????????? (???????)

3
Review of Basic Counting
  • 100! ???????????????????

4
agenda
  • Permutations
  • Combinations
  • Some derivation of Permutations and Combinations
  • Eliminating Duplicates
  • r-Combinations with Repetitions

5
Permutations
  • Sample problems
  • Five athletes (Amazon, Bobby, Corn, Dick and
    Ebay) compete in an Olympic event. Gold, silver
    and bronze medals are awarded in how many ways
    can the awards be made?

6
Permutation Example
  • A terrorist has planted an armed nuclear bomb in
    your city, and it is your job to disable it by
    cutting wires to the trigger device. There are
    10 wires to the device. If you cut exactly the
    right three wires, in exactly the right order,
    you will disable the bomb, otherwise it will
    explode! If the wires all look the same, what
    are your chances of survival?

1098 720, so there is a 1 in 720 chance that
youll survive!
????????????
7
Permutation (cont.)
  • Order matters !!!
  • The case that Amazon wins gold and Ebay wins
    silver is different from the case Ebay wins gold
    and Amazon wins silver.
  • If the order is of significance, the
    multiplication rules are often used when several
    choices are made from one and the same set of
    objects.

8
Permutations-Definition
  • In general, if r objects are selected from a set
    of n objects, any particular arrangement of these
    r objects(say, in a list) is called a
    permutation.
  • the total number of permutations of r objects
    selected from a set of n objects is nPr or P(n,
    r)
  • In other words, a permutation is an ordered
    arrangement of objects.

9
Permutations-formal
  • A permutation of a set S of objects is a sequence
    containing each object once.
  • An ordered arrangement of r distinct elements of
    S is called an r-permutation.

10
Permutations More examples
  • Examples
  • How many permutations of 3 of the first 5
    positive integers are there?
  • How many permutations of the characters in
    COMPUTER are there? How many of these end in a
    vowel?

11
Ex1 Let Sa, b, c, d, find all permutations of
3 elements selected from set S
  • 24 permutations

12
??????????????????
  • ??????????????????????????
  • ????????????????????????
  • ???????????????????????
  • ???????????????????????????

13
  • By multiple principle, the total number of
    permutations of r objects selected from a set of
    n objects is
  • n(n-1)(n-2)(n-r1)
  • Using factorial
  • P(n, r)

14
Permutations -- Special Cases
  • Using CAT
  • P(n,0)
  • Theres only one ordered arrangement of zero
    objects, the empty set.
  • P(n,1)
  • There are n ordered arrangements of one object.
  • P(n,n)
  • There are n! ordered arrangements of n distinct
    objects (multiplication principle)

15
(No Transcript)
16
  • Note We just only focus on finding the numbers
    of arrange r distinct things from n distinct
    things linearly.

17
Think!!!
  • ??????? ??? S ????????????????? ???????????????
    f S ? S ??????????????????? S (permutation on S)
    ??? f ???????????????????????????? S ????????? S
  • ??? Sym(S) ???????????????????????????????? S
    ??? Sn ????????????????????????????????????? S
    ??????????? n ??? ??? f,g ???????????????????? S
    ???????? f ??? g ???????????????? fg
    ????????????????? gof

18
Exercise
  • ?????????(???????????????????)???
    ??????????????????????? SECOND ??????????
    (permutations of SECOND?)
  • ??????????????????? 3 ???? ???????????? 1, 3, 5
    ??? 7 ??????????? ???????????????????????????
  • ??????????????????????? 8 ???? ????????? 4 ????
    ??????????????????????? 8 ?????????? ???
  • 4 ???????????????????????
  • ??????????????????????????
  • ??????????????????????????????
  • ??????????????????????????????????????????
  • ??????????????????????????????????????????????????
    ?

19
???????
  • ????? 5 ?? ????????????? ????????????
    ?????????????????????????????????? ??????????
  • ????????? 10 ????????????????? ?????????????? 4
    ?? ?????????? ??????????
  • ????????? 2 ??? ????????????????????? 1 ????
    ?????????????? (inclusion-exclusion principle)

20
??????? 10 ??????????? ??????? 4
?????????????????????????? 1 ???? ??????????????
(inclusion-exclusion principle)
  • ??????????????????????????????????????????? ????
    ?????????? 7 ??????????? 3 ?? ????????????
  • ??? Ai ??????????????????????? i ?????? ???????
    ????? ???????

21
More Exercises
  • ??????????? ??? ?????? 3 ?? ????????? 2 ?? (???
    7 ??) ??????????????????? ?????????? ???
    ????????????????? ??????????????????????????
    ?????????????????????????????????
  • ??????????????????? 7 ?? ?????????????????????????
    ???????? ??? ??? A ?????? B (?????????? 7 ?????)
    ?????????????
  • ??????????????????? 3 ???? ???? 3 ???? ?????? 3
    ???? ????????????????? ???????????????????????????
    ????????????????? ?????????????
    ?????????????????????????????????
    ??????????????????????????????????????????????????
    ????????
Write a Comment
User Comments (0)
About PowerShow.com