Docsity

Practice Problems for Discrete Mathematical Structures | CSCI 2427, Study notes of Computer Science

Toggle sidebar
bg1
Practice Problems :
1. Complete the tree diagram. Use it to make a systematic listing of all possible arrangements of the
four letters A, B, C, and D. Confirm the number of arrangements using the multiplication rule for
counting.
2. Six different colored blocks are lined up in a row. How many color arrangements are possible?
3. A teacher who loves discrete math gives a workshop which causes 17 other teachers to love
discrete math. Then each of those teachers teaches discrete math to 22 students, who gain such an
appreciation of discrete math that they each go home and tell both of their parents an interesting
discrete math fact. How many parents has the original teacher thereby influenced with her single
workshop?
4. How many different colorings are possible if each small square in each of
these arrangements is either shaded or left blank? Support your answers
by listing systematically all of the possibilities.
5. When Alice sends Bob a card, she always adds a string of 5 X’s and/or O’s after her signature,
with one restriction: she never puts two O’s next to each other, because Bob turns them into smiley
faces, and she can’t stand that. Thus, for example, “OXOXO” and “XOXXO” would be allowed,
but “XOOXX” and “OOXOO” would not. Systematically list all the different ways for Alice to
add X’s and O’s to the card. How many ways are there?
6. Start with the letters in the word graphs.
a. How many ways can you select and arrange 2 of the letters? 1 letter? 1 or 2 letters? 3, 4,
or 5 letters?
b. Explain the counting techniques used in terms of the multiplication and addition rules.
7. The Perfect Spy, Agent 006, is sealed inside a room with no way to escape. With him in the room
is a time-bomb set to explode in 9 minutes. It would take him just 30 seconds to defuse the bomb,
except that it is locked inside a suitcase that has a combination lock on one of the clasps. To open
the lock, he has to set three dials, each containing the digits 0-9, to the correct positions. He is able
to check two of these combinations per second, thanks to his top-notch manual dexterity. Is he
guaranteed to be able to open the suitcase with enough time left to defuse the bomb?
8. Make a tree diagram showing all arrangements of the letters in the word “REED”. How many are
there?
pf3
pf4
pf5
pf8

Partial preview of the text

Download Practice Problems for Discrete Mathematical Structures | CSCI 2427 and more Study notes Computer Science in PDF only on Docsity!

Practice Problems :

  1. Complete the tree diagram. Use it to make a systematic listing of all possible arrangements of the four letters A, B, C, and D_._ Confirm the number of arrangements using the multiplication rule for counting.
  2. Six different colored blocks are lined up in a row. How many color arrangements are possible?
  3. A teacher who loves discrete math gives a workshop which causes 17 other teachers to love discrete math. Then each of those teachers teaches discrete math to 22 students, who gain such an appreciation of discrete math that they each go home and tell both of their parents an interesting discrete math fact. How many parents has the original teacher thereby influenced with her single workshop?
  4. How many different colorings are possible if each small square in each of these arrangements is either shaded or left blank? Support your answers by listing systematically all of the possibilities.
  5. When Alice sends Bob a card, she always adds a string of 5 X’s and/or O’s after her signature, with one restriction: she never puts two O’s next to each other, because Bob turns them into smiley faces, and she can’t stand that. Thus, for example, “OXOXO” and “XOXXO” would be allowed, but “XOOXX” and “OOXOO” would not. Systematically list all the different ways for Alice to add X’s and O’s to the card. How many ways are there?
  6. Start with the letters in the word graphs. a. How many ways can you select and arrange 2 of the letters? 1 letter? 1 or 2 letters? 3, 4, or 5 letters? b. Explain the counting techniques used in terms of the multiplication and addition rules.
  7. The Perfect Spy, Agent 006 , is sealed inside a room with no way to escape. With him in the room is a time-bomb set to explode in 9 minutes. It would take him just 30 seconds to defuse the bomb, except that it is locked inside a suitcase that has a combination lock on one of the clasps. To open the lock, he has to set three dials, each containing the digits 0-9, to the correct positions. He is able to check two of these combinations per second, thanks to his top-notch manual dexterity. Is he guaranteed to be able to open the suitcase with enough time left to defuse the bomb?
  8. Make a tree diagram showing all arrangements of the letters in the word “REED”. How many are there?

A B C D 1 2 3 4

  1. The figure to the right shows 4 rooks placed on a 4x4 “chessboard” in such a way that no rook attacks any other rook. (In chess, a rook attacks pieces which lie in the same row or column as itself.) a. List systematically all the ways to place 4 non-attacking rooks on a 4x board. Use the grids on page EX 4. (In the diagram, the rooks are at squares A-4, B-1, C-3, and D-2.) b. How many ways are there? c. Is there a way to use the multiplication rule to find this answer?
  2. a. How many 3-digit numbers are there where each digit is odd? b. How many 3-digit numbers are there where each digit is odd and all three digits are different? c. How many 3-digit numbers are there where each digit is odd and the three digits appear in increasing order? (For example, 157 is such a number.) Can you answer this question using the multiplication rule?
  3. In this problem, we use the word “word” to mean any sequence involving the indicated letters. For example, SUSUSU is a six letter word using only S and U, as are SSSSSS and UUUSSS. a. How many six letter words can you make using only S and U? b. How many four letter words can you make using only R, E, D? c. How many five letter words can you make using R, E, A, D? d. If you wanted to make that many words (the answer to part c.) using only S and/or U, how long would you have to make the words?
  4. Make a tree diagram showing all arrangements of the letters in the word “REED”. How many are there?
  5. How many arrangements are there of the letters in the word “SEVEN”? In how many of these are the E’s together? In how many are the E’s separated?
  6. Two players compete repeatedly until one wins two successive games or three games total. How many different sequences are possible? What if you change “three games total” to “four”?
  7. A set of five regular octahedral dice have eight faces numbered 1, 2, 3, 4, 6, 8, 12, and 20. In how many different ways can these five dice fall? In how many ways will the five dice show a sum of six? of seven? What are the chances of rolling a sum of six or seven?
  8. Not long ago, there were five teams in the East and Central and four in the West Division of both the American and National Baseball Leagues. How many different standings were possible for the 28 teams when ranked within their divisions? within their leagues? all together? Assume that there are no ties. How many World Series team match-ups were possible?
  9. As I was going to St. Ives, I met a man with 7 wives. Each wife had 7 sacks, each sack had 7 cats, each cat had 7 kittens. Kittens, cats, sacks, wives ... how many were going to St. Ives?

Some Practice Counting Problems

  1. Print your first name. How many arrangements of the letters are possible, if we consider that letters of the same type are indistinguishable? For example, there are 6 ways for Eva to arrange the letters of her name, but only 3 ways for Eve.
  2. How many ways can you arrange the letters in the word “Kentucky”? In the word “Tennessee”?
  3. Ben Franklin has 9 kites and 12 keys at home, and wants to select three of each to bring with him when he does his next experiment. How many different ways are there for him to do this?
  4. Ned was sent to Bob’s Ice Cream Sundaes to get a sundae for Nora, but when he arrived, he couldn’t remember which three flavors of ice cream Nora had asked for, though he was sure that they were three different flavors. Looking over the list of 14 available flavors didn’t help him either, so he decided that he would get one sundae for each possible selection of three flavors. How many sundaes will poor Ned have to buy?
  5. How many anagrams are there of each of the following words: “levee”, “teeth”, “monsoon”, and Mississippi?
  6. How many routes are there from A to B in each of the following grids? (A “route” follows the lines and always goes either north (N) or east (E). Ignore the weights in the large grid unless you want to find the shortest route.)
  1. Here are some facts: a. The integer n is an odd prime number b. Every odd integer is either congruent to 1 (mod 4) or congruent to 3 (mod 4) c. –1 is a quadratic residue (mod p ) if and only if p is congruent to 1 (mod 4) d. An odd prime number is the sum of two squares if and only if it is congruent to 1 (mod 4) e. –1 is not a quadratic residue (mod n ) Given the above facts, prove in words, in paragraph form, that n is not the sum of two squares.
  2. Suppose n is an integer, and consider the following predicates: a. P ( n ): n is prime b. Q ( n ): n is odd c. R ( n ): n is congruent to 1 (mod 4) d. S ( n ): n is congruent to 3 (mod 4) e. T ( n ): –1 is a quadratic residue (mod n ) Rewrite each of parts a., b. and c. of problem 1 in terms of the predicates given above: a. The integer n is an odd prime number b. Every odd integer is either congruent to 1 (mod 4) or congruent to 3 (mod 4) c. –1 is a quadrat ic residue (mod p ) if and only if p is congru ent to 1 (mod 4)
  3. Construct a truth table for the compound proposition [( p w q ) r ( p 6 r ) ] 6 ( p v r ):
  4. Define each of the following terms: a. Tautology b. Proposition c. Predicate d. Contradiction e. Contingency f. Conjunction g. Disjunction h. Negation i. Quantifier
  5. Here is an implication: “If you love me, you will give me your car keys.”

a. What is the contrapositive of that statement? b. What is the converse of that statement? c. Which of the two statements you created in parts a. and b. are equivalent to the original statement?

  1. Prove that ( p w q ) v q ] q is a tautology
  2. What is the dual of the compound proposition: (¬ p^ v^ q )^ w^ r?
  3. Construct a compound proposition that has the truth value indicated in the table to the right. p^ q^ ??? T T F

T F F

F T T

F F T