Docsity

CSCE 350 Data Structures and Algorithms Homework Assignment 4, Assignments of Computer Science

Toggle sidebar
bg1
CSCE 350 – Data Structures and Algorithms
Summer 2008 – Homework Assignment 4
Assigned: Wednesday, June 25th, 2008
Due: Monday, June 30th, 2008, 1:00pm
This assignment covers material from lectures 12-14 and Chapter 5 of the textbook.
No late assignments will be accepted.
Please staple all of your pages together, NOT folding over the corners of your pages.
Make sure your work is neat and legible. Show enough work to convince me that you know what
you’re doing.
Graded problems (Total 100 points, 10 points for each problem).
Solve these problems and submit your solutions for grading, make sure you check the hints to exercises
on page 497 of textbook.
1. Apply insertion sort to sort the list W, A, S, H, I, N, G, T, O, N in alphabetical order, show each
step of your algorithm
2. 5.1.7
3. 5.1.9
4. 5.2.1 (Show traversal’s stack for each iteration of your algorithm, show DFS forest, with tree
edges shown with solid lines and the back edges shown with dashed lines, breaking tie using
their alphabetical order).
5. 5.2.4 (Show traversal’s queue for each iteration of your algorithm, show BFS forest, with tree
edges shown with solid lines and the cross edges shown with dashed lines, breaking tie using
their alphabetical order).
6. 5.2.6
7. 5.3.1
8. 5.3.5
9. 5.4.2 (a) and (b)
10. 5.4.5
Practice problems. These problems are good for practice, but they will not be graded. Do not submit
solutions to these problems. They are listed here only as a tool for extra practice. Problems like these
may appear on exams.
1. 5.1.4
2. 5.1.6
3. 5.2.7
4. 5.3.6
5. 5.4.4
6. 5.5.1

Partial preview of the text

Download CSCE 350 Data Structures and Algorithms Homework Assignment 4 and more Assignments Computer Science in PDF only on Docsity!

CSCE 350 – Data Structures and Algorithms

Summer 2008 – Homework Assignment 4

Assigned : Wednesday, June 25th, 2008 Due : Monday, June 30

th , 2008, 1:00pm

 This assignment covers material from lectures 12-14 and Chapter 5 of the textbook.  No late assignments will be accepted.  Please staple all of your pages together, NOT folding over the corners of your pages.  Make sure your work is neat and legible. Show enough work to convince me that you know what you’re doing.

Graded problems (Total 100 points, 10 points for each problem). Solve these problems and submit your solutions for grading, make sure you check the hints to exercises on page 497 of textbook.

  1. Apply insertion sort to sort the list W, A, S, H, I, N, G, T, O, N in alphabetical order, show each step of your algorithm
  2. 5.1.
  3. 5.1.
  4. 5.2.1 (Show traversal’s stack for each iteration of your algorithm, show DFS forest, with tree edges shown with solid lines and the back edges shown with dashed lines, breaking tie using their alphabetical order).
  5. 5.2.4 (Show traversal’s queue for each iteration of your algorithm, show BFS forest, with tree edges shown with solid lines and the cross edges shown with dashed lines, breaking tie using their alphabetical order).
  6. 5.2.
  7. 5.3.
  8. 5.3.
  9. 5.4.2 (a) and (b)
  10. 5.4.

Practice problems. These problems are good for practice, but they will not be graded. Do not submit solutions to these problems. They are listed here only as a tool for extra practice. Problems like these may appear on exams.

  1. 5.1.
  2. 5.1.