Discrete Mathematical Structures; Mathematics 225

Review Examination III (Fall 2006)

Prepared by:

Joseph Malkevitch
Department of Mathematics
York College (CUNY)
Jamaica, New York 11451

email: malkevitch@york.cuny.edu

web page:

http://www.york.cuny.edu/~malk

1. Given the digraph below:

a. Write down the relation associated with this digraph.

b. Write down the invalence and outvalence (also known as indegree and outdegree) of each vertex of the digraph.

c. Write down the adjacency matrix associated with this digraph.

d. Find, if possible, a path of length three starting at vertex 4.

d. Find, if possible, a cycle of length 2.

e. Find if possible a cycle of length 4.

f. Find the number of vertices in the digraph.

g. Find the number of edges in the digraph.

h. Do any triples of vertices satisfy the transitivity property?

i. Does this relation represent a partial order?

2. (i) Is f(n) = 4n2 + log n + 9000

(ii) Is g(n) = 1000n3 + 5000(2n) + 343(log n)

a. O (n3) b. O ( 3n ) c. O ( n ) d. O ( n2 ) ?

3. Compute f(2), f(-3), f(0), and f(1/2) for the functions:

a. f(x) = 3x - 5

b. f(x) = 4x

c. f(x) = -x2 + 4x - 1

4. Suppose g(x) = 2x - 3, and h (x ) = 2x

a. Find g (h(2)) and h(g(2).

b. Fine h(g(3)) and g(h(3))

c. Find h(g(-1)) and g(h(-1)).

5. Given the Hasse diagrams below for a poset (partially ordered set):

a.

b.

c.

i. Find all the maximal and minimal elements in each Hasse diagram, if there are any. Find a greatest element and a least element in each Hasse diagram if they exist.

ii. Conduct a topological sort for each of the Hasse diagrams. Is the linear order you obtain unique?

iii. Draw the full partial order associated with the Hasse diagram c. above.

iv. If possible find 3 mutually incomparable elements in each of the partial orders.

6. Consider the graph G below:

a. Determine the number of vertices of G

b. Determine the number of edges of G

c. What is the valence of each vertex of G?

d. Can you find a path of length 2 from f to i?

e. Can you find a path of length 5 from f to i?

f. What is the graph distance from e to each of the other vertices in the graph? (The distance between two vertices is the length of a shortest path (e.g. fewest edges) between the two vertices.)

g. What is the graph distance between c and every other vertex of the graph?

7. a. Write down the list of vertices which results from

a. Postorder
b. Preorder
c. Inorder

traversal of the trees below.

b. What is the name of the root for each tree below?

c. What is the parent of vertex 6 in each tree?

d. What is the parent of vertex 3 in each tree?

e. Determine the children (offspring) of vertex 5 (if any) in each tree?

f. List, if any, the vertices at level 3 in each tree?

g. List, if any, the vertices at level 4 in each tree?

h. List, if any, the siblings of vertex 6 in each tree?

i. List for each tree, the subtree growing from vertex 5.

j. List the leaves (vertices of degree 1 in the undirected tree) for each tree.

Tree S:

Tree U:

Tree W: