Docsity

Function - Discrete Math - Exam, Exams of Discrete Mathematics

Toggle sidebar
bg1
Prof. S. Brick Discrete Math; Exam 1 - redone Math 267
Fall ’03 section 101
Print your name:
Show all of your work, and explain your reasoning.
1. Is the function dist : A×lists(B)→lists(A×B) injective ? surjective ? Explain
2. Let A={a, {b, c}} and B={d}. Find the power set of A×B.
pf3
pf4
pf5

Partial preview of the text

Download Function - Discrete Math - Exam and more Exams Discrete Mathematics in PDF only on Docsity!

Prof. S. Brick Discrete Math; Exam 1 - redone Math 267

Fall ’03 section 101

Print your name:

Show all of your work, and explain your reasoning.

  1. Is the function dist : A × lists(B) → lists(A × B) injective? surjective? Explain
  2. Let A = {a, {b, c}} and B = {d}. Find the power set of A × B.
  1. Let f : N+ → N be f = ceiling ◦ log 2 Find the set f −^1 ({ 5 }) (Hint: 2, 4 , 8 , 16 , 32 , 64 ,.. .)
  2. Using the pigeonhole principle, explain why any set of nonempty strings over {a, b, c, d} of cardinality ≥ 17 has to contain two different strings whose starting letters are the same and whose ending letters are the same. (Hint: consider ordered pairs of the form (starting letter, ending letter))
  1. Suppose L = { 01 , 10 } Does L∗^ consist of all binary strings having an equal number of 0’s as 1’s? Why or why not?
  2. Let U = { 1 , 2 , 3 , 4 , 5 , 6 , 7 , 8 , 9 , 10 } be a universal set and A = {n ∈ U | n is prime } a subset. Make up a table of values of the characteristic function of A.
  1. Represent the first ten letters of the alphabet by the numbers 0, 1 , 2 ,... , 9. Use the function f (n) = (4n + 3) mod 10 to encrypt the plaintext string “fad”. What happens? Would g(n) = (3n + 4) mod 10 be a better function to use to encrypt? Explain.