{[ promptMessage ]}

Bookmark it

{[ promptMessage ]}

finalSection1SS08

# finalSection1SS08 - CSE 331 Final Exam Form 1A Spring 2008...

This preview shows pages 1–3. Sign up to view the full content.

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

View Full Document
Possible answers for the first 12 problems. ) 1 ( O ) log (log N O ) (log N O ) ( N O ) ( N O ) log ( N N O ) ( 2 N O ) log ( 2 N N O ) ( 3 N O ) 2 ( N O NP: problem is NP-complete (2 pts each; 24 total) (1) ________ The number of edges in a balanced binary tree with N nodes. (2) ________ Runtime effort to decide if array A[j]:j=1,n is in ascending order. (3) ________ The solution to the recurrence equation T(N) = T(N/2)+2 (4) ________ The runtime of toposort on a dense graph with N = size V. (5) _______ The runtime of creating a min Heap from an array of N integers known to be in ascending order. (6) ________ Runtime to compute the size of the longest common subsequence of two sequences of symbols S1 and S2, each of length n. (7) ________ Runtime of insertion sort on a sequence already in reverse order.
This is the end of the preview. Sign up to access the rest of the document.

{[ snackBarMessage ]}

### What students are saying

• As a current student on this bumpy collegiate pathway, I stumbled upon Course Hero, where I can find study resources for nearly all my courses, get online help from tutors 24/7, and even share my old projects, papers, and lecture notes with other students.

Kiran Temple University Fox School of Business ‘17, Course Hero Intern

• I cannot even describe how much Course Hero helped me this summer. It’s truly become something I can always rely on and help me. In the end, I was not only able to survive summer classes, but I was able to thrive thanks to Course Hero.

Dana University of Pennsylvania ‘17, Course Hero Intern

• The ability to access any university’s resources through Course Hero proved invaluable in my case. I was behind on Tulane coursework and actually used UCLA’s materials to help me move forward and get everything together on time.

Jill Tulane University ‘16, Course Hero Intern