The material presented in this guide covers the concepts emphasized on the final exam. It is meant to guide students studying and reviewing for the test; it is not guaranteed to be comprehensive. Actual test questions will differ from any examples given here. Students should use this guide in addition to other study activities (like reading the textbook, reviewing completed lab assignments, old quizzes, etc.) Some material here may be updated, so check periodically for changes.
The final exam for CPTR 318 is Thursday, December 10, at 10am. Note that this is a different day of the week than we normally meet. The exam will emphasize Chapters 7 (sorting), 9 (hash tables), 10 (2-3 trees, 2-3-4 trees), 11 (graphs), 13 (AVL trees, red-back trees), 14 (amortized analysis), 16 (dynamic programming, skip lists), 17 (limits of computation), and parallel algorithms.
Several of the questions involve graphs, so I've included these instructions on the test:
This definition of the adjacency matrix data type should look familiar; it is same one used in your Prim's minimal spanning tree program. Be sure you are comfortable writing a function that uses such an AdjacencyMatrix to implement a graph algorithm.
Several questions on the test require you to write C++ code. Some questions may ask for pseudocode for an algorithm, while others may ask you to explain and/or perform an algorithm.
There may be at most one mathematical proof on the exam, and one problem may consist entirely of multiple-choice questions.
While you will not be asked detailed questions about the material found in earlier chapters, you should have a general knowledge about the earlier data structures and algorithms—their complexity and application.
Any questions involving AVL trees and red-black trees are limited to the extent we talked about them in class and may be found among the multiple choice questions.