# hw1sol - n 2 log n(c Case 3 Θ n 3 5 6 Exercise 6.1-6 No...

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

Exercise 2.2-3 Number of elements in average case = n/ 2 Number of elements in worst case = n Average case running time = Θ( n ) Average case running time = Θ( n ) Exercise 2.3-4 T ( n ) = T ( n - 1) + Θ( n ) 1

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

View Full Document
2
Problem 2.1(d) 3

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

View Full Document
4
Problem 3-1(ac), others parts are similar Exercise 4.3-1 (a) Case 1, Θ( n 2 ) (b) Case 2, Θ(

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

View Full Document

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

View Full Document

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

View Full Document
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: n 2 log n ) (c) Case 3, Θ( n 3 ) 5 6 Exercise 6.1-6 No, node i = 4 fails. A [ i ] = 6 < 7 = A [2 i + 1] 7 Exercise 6.5-2 13 9 15 5 8 7 12 4 6 2 1 13 9 15 5 8 7 12 4 6 2 1 10 8 13 9 15 5 10 7 12 4 6 2 1 8 13 10 15 5 9 7 12 4 6 2 1 8 9 10...
View Full Document

## This note was uploaded on 10/21/2011 for the course CSCI 4041 taught by Professor Arindambanerjee during the Spring '09 term at Minnesota.

### Page1 / 10

hw1sol - n 2 log n(c Case 3 Θ n 3 5 6 Exercise 6.1-6 No...

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

View Full Document
Ask a homework question - tutors are online