

Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!


Daisy Tang Back To Lectures Notes A general study guide for your final. The final exam is comprehensive, with a focus on the materials we covered after midterm. You are allowed to bring a 1-page cheat sheet (letter-size) with you to the final exam.
True/False questions. Short-answer questions. Java programming. Tree/Graph related drawing problems.
Trees: Tree-related concepts and terminologies: root, leaf, parent, child, depth, subtree, etc. Definitions of various types of trees: empty-tree, binary-tree, heap, BST, full binary tree, complete binary tree, self-balancing BST, AVL tree, and B-tree. Understand how to represent a tree with either (1) array or (2) node. Understand how to perform three types of tree traversals. Understand the B-tree (2-3 tree) rules. Be able to evaluate whether a given tree is a B-tree (2-3 tree) or not. Be able to build a heap and a 2-3 tree given a series of values. Be able to delete from a 2-3 tree and still maintain the 2-3 tree structure. Understand the time analysis for BST, heap, B-tree, and AVL tree, etc. Graphs: Graph-related concepts and terminologies: vertex, edge, undirected graph, directed graph, weighted graph, loop, path, simple graph, etc. Understand three different ways to represent a graph and their pros and cons. Be able to perform the two graph traversal algorithms: breadth-first and depth-first. Understand the single-source shortest-path problem and the all-pairs shortest path problem. Given a directed graph, be able to find the shortest path from a source vertex to all other vertices step by step via Dijkstra's algorithm. Given a directed graph, be able to generate the all-pairs shortest path matrix step by step via Floyd- Warshall's algorithm. Understand the definition of a minimum-cost spanning tree. Be able to perform Prim's algorithm and Kruskal's algorithm to generate the minimum-cost spanning tree. Sorting algorithms: Understand the time/space complexity of each sorting algorithm. Be able to write Java/pseudocode to perform a particular sorting. Be able to simulate the quicksort process.
Be able to simulate the heapsort process. Last updated: Mar. 2011