CS 415, Section 001 | Sonoma State University | Fall, 2022 |
Algorithm Analysis
|
||
Instructor: Henry M. Walker
Lecturer, Sonoma State University |
Although much of this course is well developed, some details can be
expected to evolve as the semester progresses.
Any changes in course details will be announced promptly during class.
Determine the cost and structure of an optimal binary search tree with the following frequencies:
Boxer | Doberman | Lab | Spaniel | Terrier | |
3 | 2 | 4 | 6 | 1 |
Problems from the Levitin text (Third edition), Section 8.3
Consider the terms, "Class P", "Class NP", tractable, intractable, decidable, and undecidable.
Give careful definitions of each of these terms.
One approach for sorting an array of n elements is to generate all n! permutations of the elements and then each is examined to determine which permutation is ordered.
Consider a breadth-first or a depth-first traversal of a directed graph with n vertices.
Identify 3 problems in Class P, and explain why each is in Class P.
Use the definition of Class NP to explain why each of the following problems are in Class NP.
created April 25, 2022 revised April 25, 2022 revised July 25, 2022 |
|
For more information, please contact Henry M. Walker at walker@cs.grinnell.edu. |