
Final Exam 3012 Dues Tuesday of exam week by Noon.
Put under the door in Skiles 148
Tom Morley
Open book, etc.
1. Construct a AVL tree by inserting the following elements in the
order given: {10,6,9,4,8,7,2,11,12,3,5,1}, and balancing as necessary.
Delete the elements in the following order
{9,6,2,5,10,3,1,4,7,8,12,11}, balancing as necessary. You need only
show the end result of the insertions, but show intermediate steps of
deletions when a re-balance (rotation) is used.
2. Find the generating function for the solution to the following difference equation
c
n+2
-5 c
n+1
+ 6 c
n
= 2(n+1) , c0 = 1, c1 = 4
3. Find the max flow in the following graph. Show that it is the max
flow by finding a cut with capacity equal to the value of the flow. The graph is pictured
on the link below the link to this on the class website.