Review for Final Exam Non-cumulative, covers material since exam 2 Data structures covered: –Treaps –Hashing –Disjoint sets –Graphs For each of these data.

Slides:



Advertisements
Similar presentations
Lecture 15. Graph Algorithms
Advertisements

0 Course Outline n Introduction and Algorithm Analysis (Ch. 2) n Hash Tables: dictionary data structure (Ch. 5) n Heaps: priority queue data structures.
Single Source Shortest Paths
2012: J Paul GibsonT&MSP: Mathematical FoundationsMAT7003/L2-GraphsAndTrees.1 MAT 7003 : Mathematical Foundations (for Software Engineering) J Paul Gibson,
Graphs Chapter 12. Chapter Objectives  To become familiar with graph terminology and the different types of graphs  To study a Graph ADT and different.
More on Randomized Data Structures. Motivation for Randomized Data Structures We’ve seen many data structures with good average case performance on random.
CSCE 210 Data Structures and Algorithms
Lists A list is a finite, ordered sequence of data items. Two Implementations –Arrays –Linked Lists.
TDDB57 DALG-C, DALG Exam Requirements Jan Maluszynski - HT 2006DALG-C.1 TDDB57 – DALG-C Examination Requirements.
Graphs & Exam Review 3 Chapter 10 – 13 CS211 CS Dept, MHC.
Graphs Chapter 12. Chapter 12: Graphs2 Chapter Objectives To become familiar with graph terminology and the different types of graphs To study a Graph.
Spring 2010CS 2251 Graphs Chapter 10. Spring 2010CS 2252 Chapter Objectives To become familiar with graph terminology and the different types of graphs.
Course Review COMP171 Spring Hashing / Slide 2 Elementary Data Structures * Linked lists n Types: singular, doubly, circular n Operations: insert,
Chapter 9 Graph algorithms Lec 21 Dec 1, Sample Graph Problems Path problems. Connectedness problems. Spanning tree problems.
CSE 326: Data Structures Lecture #13 Extendible Hashing and Splay Trees Alon Halevy Spring Quarter 2001.
Fall 2007CS 2251 Graphs Chapter 12. Fall 2007CS 2252 Chapter Objectives To become familiar with graph terminology and the different types of graphs To.
Data Structures, Spring 2004 © L. Joskowicz 1 DAST – Final Lecture Summary and overview What we have learned. Why it is important. What next.
0 Course Outline n Introduction and Algorithm Analysis (Ch. 2) n Hash Tables: dictionary data structure (Ch. 5) n Heaps: priority queue data structures.
CS112A1 Spring 2008 Practice Final. ASYMPTOTIC NOTATION: a)Show that log(n) and ln(n) are the same in terms of Big-Theta notation b)Show that log(n+1)
Exam 2 Review. Teams Dan C, Z, Hugh, Zane, Alexis Mark, Jamie, Ryan, Alex H, Andrew Katie, Emily, Riley, Rohan, Alex D Dawn, Patrick, Jacapo, Catharine,
1 Graphs Algorithms Sections 9.1, 9.2, and Graphs v1v1 v2v2 v5v5 v7v7 v8v8 v3v3 v6v6 v4v4 A graph G = (V, E) –V: set of vertices (nodes) –E: set.
Chapter 9 – Graphs A graph G=(V,E) – vertices and edges
0 Course Outline n Introduction and Algorithm Analysis (Ch. 2) n Hash Tables: dictionary data structure (Ch. 5) n Heaps: priority queue data structures.
Final Review Dr. Yingwu Zhu. Goals Use appropriate data structures to solve real- world problems –E.g., use stack to implement non-recursive BST traversal,
CS Data Structures II Review & Final Exam. 2 Topics Review Final Exam.
ITEC 2620A Introduction to Data Structures Instructor: Prof. Z. Yang Course Website: 2620a.htm Office: TEL 3049.
Nirmalya Roy School of Electrical Engineering and Computer Science Washington State University Cpt S 223 – Advanced Data Structures Course Review Final.
Runtime O(VE), for +/- edges, Detects existence of neg. loops
Review for Final Exam – cs411/511 Definitions (5 questions, 2 points each) Algorithm Analysis (3 questions, 3 points each) General Questions (3 questions,
Review for Exam 2 Topics covered (since exam 1): –Splay Tree –K-D Trees –RB Tree –Priority Queue and Binary Heap –B-Tree For each of these data structures.
Course Review Fundamental Structures of Computer Science Margaret Reid-Miller 29 April 2004.
Week 10 - Friday.  What did we talk about last time?  Graph representations  Adjacency matrix  Adjacency lists  Depth first search.
CMSC 341 Disjoint Sets. 2 Disjoint Set Definition Suppose we have N distinct items. We want to partition the items into a collection of sets such that:
Graphs Chapter 12. Chapter 12: Graphs2 Chapter Objectives To become familiar with graph terminology and the different types of graphs To study a Graph.
CSE 340: Review (at last!) Measuring The Complexity Complexity is a function of the size of the input O() Ω() Θ() Complexity Analysis “same order” Order.
Exam 3 Review Data structures covered: –Hashing and Extensible hashing –Priority queues and binary heaps –Skip lists –B-Tree –Disjoint sets For each of.
 Saturday, April 20, 8:30-11:00am in B9201  Similar in style to written midterm exam  May include (a little) coding on paper  About 1.5 times as long.
Graphs + Shortest Paths David Kauchak cs302 Spring 2013.
Graph Representations And Traversals. Graphs Graph : – Set of Vertices (Nodes) – Set of Edges connecting vertices (u, v) : edge connecting Origin: u Destination:
Review for Exam 2 Topics covered: –Recursion and recursive functions –General rooted trees –Binary Search Trees (BST) –Splay Tree –RB Tree –K-D Trees For.
CSE 589 Applied Algorithms Spring 1999 Prim’s Algorithm for MST Load Balance Spanning Tree Hamiltonian Path.
Exam 2 Review. Teams David P, Sebastian, Nathan P, Harrison Scott, Josh, Patrick, Peter Michael, Alexia, Betsey, Keith Ty, Casey, Jesi, Lexa Maddie, Nathan.
Final Exam Review COP4530.
CSE 326: Data Structures: Advanced Topics
Topics covered (since exam 1):
Review for Final Exam Non-cumulative, covers material since exam 2
Review for Final Exam Non-cumulative, covers material since exam 2
Review for Final Exam Non-cumulative, covers material since exam 2
Review for Midterm Neil Tang 03/04/2010
CS120 Graphs.
CSE332: Data Abstractions About the Final
Topics covered (since exam 1):
Topics covered (since exam 1):
Elementary graph algorithms Chapter 22
Graphs Chapter 11 Objectives Upon completion you will be able to:
ICS 353: Design and Analysis of Algorithms
Chapter 6: Transform and Conquer
ICS 353: Design and Analysis of Algorithms
Topics covered (since exam 1, excluding PQ):
ITEC 2620M Introduction to Data Structures
Final Review Dr. Yingwu Zhu.
GRAPHS G=<V,E> Adjacent vertices Undirected graph
Chapter 16 1 – Graphs Graph Categories Strong Components
Review for Final Exam Non-cumulative, covers material since exam 2
Elementary graph algorithms Chapter 22
Important Problem Types and Fundamental Data Structures
Topics covered (since exam 1):
CSE 326: Data Structures Lecture #24 Odds ‘n Ends
Review for Final Neil Tang 05/01/2008
More Graphs Lecture 19 CS2110 – Fall 2009.
Presentation transcript:

Review for Final Exam Non-cumulative, covers material since exam 2 Data structures covered: –Treaps –Hashing –Disjoint sets –Graphs For each of these data structures –Basic idea of data structure and operations –Be able to work out small example problems –Prove related theorems –Advantages and limitations –Asymptotic time performance –Comparison Review questions are available on the web.

–Definition It is both a BST and a binary min heap (heap is not a CBT) Each node has a key/priority pair (priority is a random number) It obeys BST order according to key value It obeys heap order according to priority value –Treap operations find: same as BST (no change) insert: first insert as in BST, then rotate until heap order is restored remove: first find the item, then rotate it down until it becomes leaf Why rorate? What to do if item is not there or if it is a duplicate –Performance analysis Height is almost always O(log n) Why? –Comparison to BST, RBT, Splay tree Treaps

–Hash table Table size (primes) Trading space for time –Hashing functions Properties making a good hashing function Examples of division and multiplication hashing functions Operations (insert/remove/find/) –Collision management Separate chaining Open addressing (different probing techniques, clustering problem) –Worst case time performance: O(1) for find/insert/delete if is small and hashing function is good –Limitations Hard to answer order based queries (successor, min/max, etc.) Hashing

–Equivalence relation and equivalence class definitions and examples –Disjoint sets and up-tree representation representative of each set direction of pointers –Union-find operations basic union and find operation path compression (for find) and union by weight heuristics time performance when the two heuristics are used: O(m lg* n) for m operations (what does lg* n mean) O(1) amortized time for each operation Disjoint Sets

–Graph definitions G = (V, E), directed and undirected graphs, DAG path, path length (with/without weights), cycle, simple path connectivity, connected component, connected graph, complete graph, strongly and weakly connectedness. –Adjacency and representation adjacency matrix and adjacency lists, when to use which time performance with each –Graph traversal: DF and BF –Single source shortest path Breadth first (with unweighted edges) Dijkstra’s algorithm (with weighted edges) –Topological order (for DAG) What is a topological order (definitions of predecessor, successor, partial order) Algorithm for topological sort Graphs