![]() |
Department of Computer Science
Theory of Computer Algorithms (Winter 2008) 4005-800-01 (Calendar Description) |
Instructor: Richard Zanibbi, Office hours: Tues 2-4pm, Thursday 10am-12pm (or by appointment), 70-3551 (Golisano College)
Lectures (NOTE: two locations):
Mondays 12-1:50pm (70-2590, Golisano College)
Wednesdays 12-1:50pm (70-3435, Golisano College)
You will be graded based on the correctness, efficiency, and simplicity of your program. Extensive javadoc/documentation is unecessary; comment just enough to allow the instructor and grader to understand your solution. Include a brief analysis of the worst-case run time of your implementation in the submitted .pdf file.
The grader will test your code using text files in the format shown below. Your program must be able to read files in this format, skipping any whitespace (tabs, newlines, spaces, etc.). Points will be deducted if there are problems reading input files when the programs are tested. All input files will provide an edge list with weights, using nodes labeled from A-Z, and the source node will always be A. Your output should list the minimum path costs for each node in alphabetical order, as shown below.
Input File | Graph (created using 'dot') |
A B 8
|
![]() |
digraph g {
A -> B [label=8];
A -> C [label=17];
B -> C [label=5];
C -> A [label=2];
}