Combinatorics Flashcards
the mathematics of counting and
arranging
Combinatorics
applies mathematical operations to count quantities that are much too large to be counted the conventional way.
Combinatorics
Two main rules in Combinatorics
Sum rule and Product rule
the number of ways that “either
task 1 or task 2 can be done, but not both”
Sum rule
Sum rule formula
m + n
Set Theoretic Version of Sum Rule
A union B|=|A|+|B|
the number of ways that “both
tasks 1 and 2 can be done”
Product rule
Product rule formula
m x n
Set Theoretic Version of Sum Rule
|A x B|=|A|·|B|
How many different bit strings are there of length seven?
128 bit strings
128 bit stringsThere are 2^7 =
Suppose that either a member of the CS faculty or a student who is a CS major can be on a university committee. How many different choices are there if there are 37 CS faculty and 83 CS majors ?
120 different choices
How many different license plates are available if
each plate contains a sequence of three letters
followed by three digits numbers?
17,576,000 possible plates
26 x 26 x 26 x 10 x 10 x 10 = 17,576 x 1000 = 17,576,000
Suppose statement labels in a programming
language can be either a single uppercase letter, or
a lowercase letter followed by a digit. Find the
number of possible labels.
286
(26 x 10) + 26 = 260 + 26 = 286
Suppose statement labels in a programming language can be either a single uppercase letter followed by a digit or a lowercase letter then followed by a digit. Find the number of possible labels.
520
(26 x 10) + (26 x 10) = 260 + 260 = 520
Suppose we have a set of passwords that can either start with an uppercase letter followed by a digit, or with a three lowercase letter followed by two digits. How many possible passwords are there?
1,757,860
26×10 + (26×26×26)×(10×10) = 1,757,860