FinalFall11

FinalFall11 - Analysis of Algorithms CSE 5211 Fall 2011...

Info iconThis preview shows pages 1–2. Sign up to view the full content.

View Full Document Right Arrow Icon
Analysis of Algorithms CSE 5211 Fall 2011 Final Exam Points 60 Intro to Analysis of Algorithms CSE 4081 Fall 2011 Final Exam Pts 60 Time: 110 min Q1. The following is a directed graph G: V= {a, b, c, d, e, f, g, h, i} E= {(a, b), (a, d), (b, c), (c, a), (d, a), (d, e), (i, f), (f, g), (f, g), (g, h), (h, i)} Draw the graph first. Q1a. Show a pre-order traversal numbered DFS spanning tree. Pre-order as you touch a node, before making any call. Q1b. Show a post-order traversal numbered DFS spanning tree. Post-order, when you return as there is no child to go to. Q1c . Find the strong connected components ( SCC ) in the graph by running the modified- DFS algorithm. You may refer to the first DFS-spanning tree with post-order numbering, then draw the reverse graph, and the second DFS spanning tree as the SCC’s. (a,b,c,d) ( e) (i,f,g,h) Q2 . Develop a Huffman coding over the following (node, frequency) pairs by running the Greedy Huffman algorithm. The intermediate forest from each iteration must be shown.
Background image of page 1

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
Image of page 2
This is the end of the preview. Sign up to access the rest of the document.

This note was uploaded on 02/10/2012 for the course CSE 5211 taught by Professor Dmitra during the Spring '12 term at FIT.

Page1 / 3

FinalFall11 - Analysis of Algorithms CSE 5211 Fall 2011...

This preview shows document pages 1 - 2. Sign up to view the full document.

View Full Document Right Arrow Icon
Ask a homework question - tutors are online