5 - CSCE 350: Data Structures and Algorithms Homework 5...

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

View Full Document Right Arrow Icon
CSCE 350: Data Structures and Algorithms Spring 2010 Homework 5 Solution 04/07/10 1. (0.6 points) Problem 6.1.2. 2. (0.6 points) Problem 6.3.4 (a), (c). Make sure you write out each intermediate step.
Background image of page 1

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

View Full DocumentRight Arrow Icon
3. (0.6 points) Construct a 2-3 tree for the list 1, 9, 3, 7, 5, 2, 6, 8, 4.
Background image of page 2
4. (0.6 points) Problem 6.4.1. 5. (0.6 points) Problem 6.4.5 (a). ( Hint : In which part of a heap will the smallest key be found?)
Background image of page 3

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

View Full DocumentRight Arrow Icon
6. (0.6 points) Sort the following list by heapsort by using the array representation of heaps: 3, 2, 7, 6, 9, 4. Please remember to write out the steps in both of the two stages. Stage 1 (heap construction) Stage 2 (maximum deletions) 3 2 7 6 9 4 9 6 7 3 2 4 3 2 7 6 9 4 4 6 7 3 2 | 9 3 9 7 6 2 4 7 6 4 3 2 9 3 7 6 2 4 2 6 4 3 | 7 9 6 7 3 2 4 6 2 4 3 6 3 4 2 2 3 4 | 6 4 3 2 2 3 | 4 3 2 2 | 3 2 7. (0.6 points) Problem 7.2.2.
Background image of page 4
8. (0.6 points) Problem 7.2.3.
Background image of page 5

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

View Full DocumentRight Arrow Icon
9. (0.6 points) Do Problem 7.3.1 using the input 42, 35, 14, 20, 90, 64 and hash function h ( K ) = K mod 11. a. The hash addresses are as follows:
Background image of page 6
Image of page 7
This is the end of the preview. Sign up to access the rest of the document.

This note was uploaded on 06/11/2011 for the course CSCE 350 taught by Professor Staff during the Spring '08 term at Columbia SC.

Page1 / 8

5 - CSCE 350: Data Structures and Algorithms Homework 5...

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

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