CS 410/584 Algorithm Design & Analysis Homework Assignment - Spring 2009, Assignments of Computer Science

The revised version of homework assignment #4 for cs 410/584 algorithm design & analysis course offered in spring 2009. The assignment includes instructions, reading materials, and exercises with varying point values. Students are expected to work alone but can discuss problems on the class mailing list. The due date is may 13, and the reading materials include sections from chapters 26, 28, and 30.

Typology: Assignments

Pre 2010

Uploaded on 08/18/2009

koofers-user-fde
koofers-user-fde ๐Ÿ‡บ๐Ÿ‡ธ

10 documents

1 / 1

Toggle sidebar

This page cannot be seen from the preview

Don't miss anything!

bg1
Homework Assignment #4 (revised)
CS 410/584 Algorithm Design & Analysis: Spring 2009
This assignment is due Wednesday, 13 May, at the beginning of class. You should work
alone on this assignment. However, you are free to discuss the problems on the class
mailing list. (Or you can send me email questions directly; please put โ€œCS 584โ€ at the
beginning of the subject line.) Please put โ€œ410โ€ or โ€œ584โ€ on your paper, depending on
which section you are registered in.
Reading: Chapter 26.1-3; Chapter 28.1, 28.2, 28.4; Chapter 30; Chapter 32 intro, 32.1,
32.3, 32.4
Note: On any homework exercise where you are asked to give an algorithm, you must
also provide an English description of how it works and at least one example execution.
Exercises: 25.2-6 (5 points; no need for an example), 26.2-2 (10 points; show each
augmenting path you use and the final flow), 28.4-1 (10 points), 28.4-4 (20 points, 584
only. Hint: Do Exercise 4A first.), 30.2-2 (5 points; show the results of the recursive calls
of FFT.)
4A (10 points): Let A be the adjacency matrix for directed graph G. What does A2
represent (assuming Boolean matrix multiplication)? Show an example for a graph of at
least 5 nodes.
4B (10 points): Explain how you would evaluate x56 + x36 + x5 at a point using many
fewer than 55 multiplications.
4C (5 points): Prove that ฯ‰2rk = โ€“ฯ‰2rk+r.

Partial preview of the text

Download CS 410/584 Algorithm Design & Analysis Homework Assignment - Spring 2009 and more Assignments Computer Science in PDF only on Docsity!

Homework Assignment #4 (revised)

CS 410/584 Algorithm Design & Analysis: Spring 2009

This assignment is due Wednesday, 13 May, at the beginning of class. You should work alone on this assignment. However, you are free to discuss the problems on the class mailing list. (Or you can send me email questions directly; please put โ€œCS 584โ€ at the beginning of the subject line.) Please put โ€œ410โ€ or โ€œ584โ€ on your paper, depending on which section you are registered in.

Reading: Chapter 26.1-3; Chapter 28.1, 28.2, 28.4; Chapter 30; Chapter 32 intro, 32.1, 32.3, 32.

Note: On any homework exercise where you are asked to give an algorithm, you must also provide an English description of how it works and at least one example execution.

Exercises: 25.2-6 (5 points; no need for an example), 26.2-2 (10 points; show each augmenting path you use and the final flow), 28.4-1 (10 points), 28.4-4 (20 points, 584 only. Hint: Do Exercise 4A first.), 30.2-2 (5 points; show the results of the recursive calls of FFT.)

4A (10 points): Let A be the adjacency matrix for directed graph G. What does A^2 represent (assuming Boolean matrix multiplication)? Show an example for a graph of at least 5 nodes.

4B (10 points): Explain how you would evaluate x^56 + x 36 + x 5 at a point using many fewer than 55 multiplications.

4C (5 points): Prove that ฯ‰2r

k

= โ€“ฯ‰2r

k+r