Docsity

Applied Combinatorics - Final Exam Paper | MATH 3012, Exams of Mathematics

Toggle sidebar
bg1
Student Name and ID Number
MATH 3012 Final Exam, May 4, 2006, WTT
1. All four parts of this problem are concerned with ternary strings of length n, i.e., words of
length nwith letters from the alphabet {0,1,2}.
a. How many ternary words of length 23?
b. How many ternary words of length 23 with eight 0’s, nine 1’s and six 2’s?
c. Let tndenote the number of ternary strings that do not have a 1 followed immediately by a 2.
Find (but do not solve) a linear recurrence equation satisfied by tn.
2. How many lattice paths from (2,3) to (17,12) pass through (4,6) and (8,10)?
3. How many integer valued solutions to the following equations and inequalities:
a. x1+x2+x3+x4= 40, all xi>0.
b. x1+x2+x3+x4= 40, all xi≥0.
c. x1+x2+x3+x4≤40, all xi≥0.
4. Use the Euclidean algorithm to find d= gcd(168,1320).
pf3
pf4
pf5
pf8

Partial preview of the text

Download Applied Combinatorics - Final Exam Paper | MATH 3012 and more Exams Mathematics in PDF only on Docsity!

Student Name and ID Number MATH 3012 Final Exam, May 4, 2006, WTT

  1. All four parts of this problem are concerned with ternary strings of length n, i.e., words of length n with letters from the alphabet { 0 , 1 , 2 }. a. How many ternary words of length 23?

b. How many ternary words of length 23 with eight 0’s, nine 1’s and six 2’s?

c. Let tn denote the number of ternary strings that do not have a 1 followed immediately by a 2. Find (but do not solve) a linear recurrence equation satisfied by tn.

  1. How many lattice paths from (2, 3) to (17, 12) pass through (4, 6) and (8, 10)?
  2. How many integer valued solutions to the following equations and inequalities: a. x 1 + x 2 + x 3 + x 4 = 40, all xi > 0.

b. x 1 + x 2 + x 3 + x 4 = 40, all xi ≥ 0.

c. x 1 + x 2 + x 3 + x 4 ≤ 40, all xi ≥ 0.

  1. Use the Euclidean algorithm to find d = gcd(168, 1320).
  1. Use your work in the preceding problem to find integers x and y so that d = 168x + 1320y.

20

8

17

1 5

10

15

12

24 16

11

25

(^29)

19

13

14

23

22

3

4

18

21

6

7

a. Find the set of minimal elements of this poset.

b. How many elements of are incomparable with the point labeled 12?

c. Explain why { 3 , 16 , 17 } is not a maximal antichain.

d. For each x, let height(x) denote the maximum size of a chain having x as its greatest element. Writing directly on the diagram, label each point with the integer representing its height.

e. Find the height h of this poset

f. Find a chain of h points.

a b

c d

e

f

g

h

i

k j l

Use the Greedy Algorithm and alphabetic order to find an euler circuit in the graph above. Your answer should be given as a sequence of partial circuits starting with the trivial circuit (a).

23

58

49

29

32

64 34

34

37

(^38 )

(^42 )

48

48

b c a^38

d

e

f

h

g

In the space below, list in order the edges which make up a minimum weight spanning tree using, respectively Kruskal’s Algorithm (avoid cycles) and Prim’s Algorithm (build tree). For Prim, use vertex a as the root.

Kruskal’s Algorithm Prim’s Algorithm

1 2

3 4

5

6

7

8

9

10

a. Show that this graph is hamiltonian by listing the vertices in an order which forms a cycle of size 10.

b. Explain why this graph has neither an euler circuit nor an euler path.

  1. A data file digraph data.txt has been read for a digraph whose vertex set is [6]. The weights on the directed edges are shown in the matrix below. Apply Dijkstra’s algorithm to find the distance from vertex 1 to all other vertices in the graph. Also, for each x, find a shortest path from 1 to x.

W 1 2 3 4 5 6

  1. What is the formula for the number of labeled trees with vertex set { 1 , 2 ,... , n}?
  2. How many ways are there to assign labels from the set { 1 , 2 ,... , 10 } to the unlabeled tree shown below?

84, 60

17, 17

63, 25

43, 43 39, 9

78, 43 30, 30

7, 7 24 7 90, 66 59, 31

5, 5

24, 24

30, 5

25 11

16 0

(^31 8) 43, 17

6, 6 28, 22 52 34

27 20 38, 5 18, 7

S T

A

B

C

D

E

F

G H

I

J

37 7

a. What is the current value of the flow?

b. What is the capacity of the cut V = {S, A, C, I, E, G, H} ∪ {B, D, F, J, T }.

c. Carry out the labeling algorithm, using the pseudo-alphabetic order on the vertices and list below the labels which will be given to the vertices.

d. Use your work in part c to find an augmenting path and make the appropriate changes directly on the diagram.

e. Carry out the labeling algorithm a second time on the updated flow. It should halt without the sink being labeled. Find a cut whose capacity is equal to the value of the flow.

a

b c

d

e

f

a‘ (^) b‘ c‘ d‘ e‘^ f‘

a“ (^) b“ c“ d“ e“ f“

In the figure above, we show a poset and the bipartite graph associated with it. The darkened edges form a maximum matching in the graph. Find the minimum chain partition determined by this matching.