Review For Final Examination (Spring 2006)

Mathematics 225 (Discrete Mathematics)

1. Write down the truth tables for: and, or, implies, if and only if, and not.

Know how to check expressions to see if they are tautologies or contradictions:

Is:

a tautology.

2. The Universe class below represents American women over 21:

A = those who have developed breast cancer

B = those who work full time

C = those who are college educated

(Note: The complement of X is indicated by X '.)

a. Which region(s) represents

b. Which regions represent:

c. Give a verbal description of region 7.

d. Give a verbal description of regions 2 and 6 as a group.

e. Give a symbolic description of regions 2,3, 6, and 8 collectively.

f. Give a symbolic description of region 5.

g. Which region (s) are represented by (A union B) intersect C '.

3. Given: x1 = 2, x2 = -4, x3 = 5, x4 = -2, and x5 = 0
and y1 = 3, y2 = -4, y3 = 6, y4 = 0, and y5 = 2.

a. Compute the mean for the x values.

b. Compute the mean for the y values.

c. Compute:

d.

e.

f.

4. Re-index the sum below so that it starts at j = 3:

5. Suppose that U = { a, e, i, o, u, y }

and A = { a, e, y }, B = { i, e, o } and C = { i, u, y }

a. A ∪ B
b. (A ' ∪ C ') ∩ B
c. B ∩ C '

d. (B ∩ C ' ) ' ∪ A

6.

a. How many binary sequences of length 8 are possible?

b. How many binary sequences of length 8 are there that begin and end with two 0's?

c. How many binary sequences of length 8 are there have ones in odd numbered positions?

7. Compute:

a. 4!

b. 6! - 3!

c. 9P3

d. 18C3

e. 76C74

8.

A Congressional committee has 5 women Republicans, 2 women Democrats, 5 male Republicans and 6 male Democrats.

a. How many ways are there to chose a chairperson and a vice chairperson?

b. How many ways are there to choose a subcommittee of 5 members?

c. How many ways are there to choose a subcommittee of 5 members that include no women?

d. How many ways are there to choose a subcommittee of 5 members who are all Democrats?

e. How many ways are there to choose a subcommittee of 5 members who are all women or all democrats?

9. Passwords are formed from decimal digits and letters, where the letters can be upper or lower case:

a. How many passwords of length 3 are possible if repeats are allowed?

b. How many passwords of length 3 are possible if repeats are not allowed?

c. How many passwords of length 4 are possible if the digit 1 can not be used to start or end the password?

d. How many passwords of length 4 are possible if all the symbols used are identical?

10. Find the least common multiple and greatest common division of:

a. 48, 120

b. 420, 98

by

i. Using prime factorization.

ii. Euclidean algorithm.

11. Find the quotient and remainder when:

a. 134 is divided by 65

b. -135 is divided by 10

c. -46 is divided by 3

d.

e.

f.

11. Find the inorder, postorder, and preorder traversal of the tree below:

12. a. If f(n) = 200 log n + 3n

b. If g(n) = 1000000n + n log n + 5n

Determine if these functions are:

i. O(n) ii. O(2n) iii O(n5) iv. O(3n)

13. Construct a depth first search tree and a breadth first search tree starting at vertex 3. Repeat for vertex 6.

i.

b.

14. a. Find the distances between the vertex 4 and every other vertex for the graph3 in 13.

b. In each graph write down all the cycles of length 4.

15. a. Find the minimal, maximal, least, and greatest elements in Hasse diagram below if such elements exist.

b. Write down the valences of all of the vertices in the graph below, treating it as an undirected graph.

16. Perform the indicated computations:

a, (10111)2 = (?)10

b. (282)10 = (?)2

c. (332)4 = (?)10

d. (101)10 = (?)2

e. (332)5 = (?)10

f. (101)6 = (?)2 (Be careful)

17. Write down the matrix associated with the digraph below:

b. Draw the matrix associated with the digraph shown.

c. If this digraph has any cycles write them down.

d. If there is a path from 4 to 3 write it down.

e. Is there a path from vertex 2 that has length 3?

17. Given f(x) = -x2 and h(x) = -x3

a. If the domain of f is all real numbers find the range of this function.

b. If the domain of h is all real numbers find the range of this function.

c. f o h (-2) = ? d. h o f (3) = ? e. Find if possible an inverse for f and h.