Combinatorics Flashcards

1
Q

the mathematics of counting and
arranging

A

Combinatorics

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

applies mathematical operations to count quantities that are much too large to be counted the conventional way.

A

Combinatorics

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

Two main rules in Combinatorics

A

Sum rule and Product rule

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

the number of ways that “either
task 1 or task 2 can be done, but not both”

A

Sum rule

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

Sum rule formula

A

m + n

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

Set Theoretic Version of Sum Rule

A

A union B|=|A|+|B|

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

the number of ways that “both
tasks 1 and 2 can be done”

A

Product rule

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

Product rule formula

A

m x n

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

Set Theoretic Version of Sum Rule

A

|A x B|=|A|·|B|

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

How many different bit strings are there of length seven?

A

128 bit strings

128 bit stringsThere are 2^7 =

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

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 ?

A

120 different choices

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

How many different license plates are available if
each plate contains a sequence of three letters
followed by three digits numbers?

A

17,576,000 possible plates

26 x 26 x 26 x 10 x 10 x 10 = 17,576 x 1000 = 17,576,000

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
13
Q

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.

A

286

(26 x 10) + 26 = 260 + 26 = 286

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
14
Q

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.

A

520

(26 x 10) + (26 x 10) = 260 + 260 = 520

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
15
Q

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?

A

1,757,860

26×10 + (26×26×26)×(10×10) = 1,757,860

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
16
Q

Inclusion-Exclusion Principle
(relates to the “sum rule”)
formula

A

m + n - k

17
Q

Inclusion-Exclusion Principle (relates to the “sum rule”) Formula - Set theory

A

|A u B|=|A|+|B|−|A intersection B|.

18
Q

Suppose we have 95 students enrolled in NDDU. Of
these students, 50 are taking Circuits, 45 are taking
Programming, and 30 are taking both Circuits and
Programming. How many students are taking at least one of these subjects?

A

65

50 + 45 − 30 = 65

19
Q

How many strings of length eight either start with a 1 bit or end with the two bit string 00?

A

128 + 64 - 32 = 160

1 bit: 2^7 = 128 | bits 00: 2^6 = 64 |1 bit with bits 00 : 2^5 = 32

20
Q

can be used determine the number of possible outcomes when there are two or more characteristics .

A

Fundamental Counting Principle

21
Q

states that if an event has m possible outcomes and another independent event has n possible outcomes, then there are m* n possible outcomes for the two
events together.

A

Fundamental Counting Principle

22
Q

A student is to roll a die and flip a coin. How
many possible outcomes will there be?

A

12

(D)6 x (C)2 = 12

23
Q

For a college interview, Robert has to choose what
to wear from the following: 4 slacks, 3 shirts, 2
shoes and 5 ties. How many possible outfits does he
have to choose from?

A

120 outfits

4 * 3 * 2 * 5 = 120 outfits

24
Q

we make use of the word “(blank)” without thinking if the order is important.

A

Combination

25
Q

is an arrangement of
items in a particular order.

A

Permutation

26
Q

To find the number of Permutations of n items, we can use the

A

Fundamental Counting
Principle or factorial notation.

27
Q

Suppose you have 5 different books on a shelf, and
you want to arrange them in a specific order on the
shelf. How many different ways can you arrange these books on the shelf?

A

120

5 × 4 × 3 × 2 × 1 = 120

28
Q

To find the number of Permutations of n items
chosen r at a time, you can use the formula

A

nPr = (n!) / (n-r)!
where 0 <= r <= n

29
Q

The number of ways to arrange the letters
How many permutations are there of 2 letters
from ABCD? (note: the arrangement AB is not the
same as BA.)

A

12

4P2 = (4!) / (4-2)! = (4x3x2x1) / (2x1) = 4 x 3 = 12

30
Q

is an arrangement of
items in which order does not matter.

A

Combination

31
Q

ORDER DOES NOT MATTER!

A

Combination

32
Q

ORDER DOES MATTER!

A

Permutation

33
Q

are a “subset”
of the permutations

A

Combination

34
Q

To find the number of Combinations of n items
chosen r at a time, you can use the formula

A

nCr = (n!) / r!(n-r)!
where 0 <= r <= n

35
Q

There are 10 children in your class but you can invite only 5 to your birthday party. How many different
combinations of friends could you invite?

A

252

10C5 = (10!)/5!(10-5)! = (10x9x8x7x6)/(5x4x3x2x1) = 30240/120 = 252

36
Q

can be used to develop estimates about how many operations a computer algorithm will require.

A

Combinatorics methods