Docsity

Data Structures and Algorithms Homework 6 for CSCE 350 Spring 2009 - Prof. C. Huang, Assignments of Computer Science

Toggle sidebar
bg1
CSCE 350: Data Structures and Algorithms Spring 2009
Homework 6 03/30/09
This homework accounts for 4 points toward your final grade. You need to submit a
hardcopy of your neatly typed answers for the following problems. In order to get the
points, you need to explain your answer clearly and adequately to convince us that you
understand what you are doing. This homework is due on Apr. 8 in class.
1. (0.5 points) Construct a 2-3 tree for the list 1, 3, 5, 7, 9, 2, 4, 6, 8.
2. (0.5 points) Problem 6.4.1.
3. (0.4 points) Problem 6.4.5 (a).
4. (0.5 points) Sort the following list by heapsort by using the array representation of
heaps: 1, 4, 2, 5, 3, 6. Please remember to write out the steps in both of the two stages.
5. (0.5 points) Problem 7.2.2.
6. (0.6 points) Problem 7.2.3.
7. (0.5 points) Problem 7.3.1.
8. (0.5 points) Problem 7.3.2.
Problems for practice: (You do not need to submit solutions to these problems, as they
will not be graded. However, they are good for practice purpose, and problems similar to
them may appear on the exam.)
1. Problem 6.3.8.
2. Problem 6.4.3.
3. Problem 7.2.4.
4. Problem 7.3.4.

Partial preview of the text

Download Data Structures and Algorithms Homework 6 for CSCE 350 Spring 2009 - Prof. C. Huang and more Assignments Computer Science in PDF only on Docsity!

CSCE 350: Data Structures and Algorithms Spring 200 9 Homework 6 03/30/0 9 This homework accounts for 4 points toward your final grade. You need to submit a hardcopy of your neatly typed answers for the following problems. In order to get the points, you need to explain your answer clearly and adequately to convince us that you understand what you are doing. This homework is due on Apr. 8 in class.

  1. (0.5 points) Construct a 2-3 tree for the list 1, 3, 5, 7, 9, 2, 4, 6, 8.
  2. (0.5 points) Problem 6.4.1.
  3. (0.4 points) Problem 6.4.5 (a).
  4. (0.5 points) Sort the following list by heapsort by using the array representation of heaps: 1, 4, 2, 5, 3, 6. Please remember to write out the steps in both of the two stages.
  5. (0.5 points) Problem 7.2.2.
  6. (0.6 points) Problem 7.2.3.
  7. (0.5 points) Problem 7.3.1.
  8. (0.5 points) Problem 7.3.2. Problems for practice: (You do not need to submit solutions to these problems, as they will not be graded. However, they are good for practice purpose, and problems similar to them may appear on the exam.)
  9. Problem 6.3.8.
  10. Problem 6.4.3.
  11. Problem 7.2.4.
  12. Problem 7.3.4.