Midterm 2 Overview Fawzi Emad Chau-Wen Tseng Department of Computer Science University of Maryland, College Park.

Slides:



Advertisements
Similar presentations
Computer Science 112 Fundamentals of Programming II Overview of Collections.
Advertisements

Data Structures & Java Generics Nelson Padua-Perez Chau-Wen Tseng Department of Computer Science University of Maryland, College Park.
Lecture 12: Revision Lecture Dr John Levine Algorithms and Complexity March 27th 2006.
Data Structures, Search and Sort Algorithms Kar-Hai Chu
Review. What to know You are responsible for all material covered in lecture, the readings, or the programming assignments There will also be some questions.
DictionaryADT and Trees. Overview What is the DictionaryADT? What are trees? Implementing DictionaryADT with binary trees Balanced trees DictionaryADT.
Department of Computer Science University of Maryland, College Park
Maps & Hashing Fawzi Emad Chau-Wen Tseng Department of Computer Science University of Maryland, College Park.
Advanced Tree Data Structures Nelson Padua-Perez Chau-Wen Tseng Department of Computer Science University of Maryland, College Park.
Sorting Algorithms Fawzi Emad Chau-Wen Tseng Department of Computer Science University of Maryland, College Park.
Indexed Search Tree (Trie) Fawzi Emad Chau-Wen Tseng Department of Computer Science University of Maryland, College Park.
CS 104 Introduction to Computer Science and Graphics Problems Data Structure & Algorithms (4) Data Structures 11/18/2008 Yang Song.
Review for Test 2 i206 Fall 2010 John Chuang. 2 Topics  Operating System and Memory Hierarchy  Algorithm analysis and Big-O Notation  Data structures.
Compression & Huffman Codes Fawzi Emad Chau-Wen Tseng Department of Computer Science University of Maryland, College Park.
Graphs & Graph Algorithms 2 Nelson Padua-Perez Bill Pugh Department of Computer Science University of Maryland, College Park.
Graphs & Graph Algorithms 2
Heaps & Priority Queues Nelson Padua-Perez Bill Pugh Department of Computer Science University of Maryland, College Park.
Data Structures & Java Collections Fawzi Emad Chau-Wen Tseng Department of Computer Science University of Maryland, College Park.
Advanced Tree Data Structures Fawzi Emad Chau-Wen Tseng Department of Computer Science University of Maryland, College Park.
CS 206 Introduction to Computer Science II 12 / 10 / 2008 Instructor: Michael Eckmann.
Midterm 1 Overview Fawzi Emad Chau-Wen Tseng Department of Computer Science University of Maryland, College Park.
Final Overview Fawzi Emad Chau-Wen Tseng Department of Computer Science University of Maryland, College Park.
Chapter 4: Trees Binary Search Trees
Data Structures, Spring 2004 © L. Joskowicz 1 DAST – Final Lecture Summary and overview What we have learned. Why it is important. What next.
Introducing Hashing Chapter 21 Copyright ©2012 by Pearson Education, Inc. All rights reserved.
Graphs & Graph Algorithms 2 Fawzi Emad Chau-Wen Tseng Department of Computer Science University of Maryland, College Park.
Algorithmic Complexity Fawzi Emad Chau-Wen Tseng Department of Computer Science University of Maryland, College Park.
Tree Traversals & Maps Nelson Padua-Perez Chau-Wen Tseng Department of Computer Science University of Maryland, College Park.
DAST, Spring © L. Joskowicz 1 Data Structures – LECTURE 1 Introduction Motivation: algorithms and abstract data types Easy problems, hard problems.
C o n f i d e n t i a l Developed By Nitendra NextHome Subject Name: Data Structure Using C Title: Overview of Data Structure.
Lecture 06: Tree Structures Topics: Trees in general Binary Search Trees Application: Huffman Coding Other types of Trees.
ADT Table and Heap Ellen Walker CPSC 201 Data Structures Hiram College.
Chapter 19 Implementing Trees and Priority Queues Fundamentals of Java.
Chapter 19 Implementing Trees and Priority Queues Fundamentals of Java.
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,
Review for Final Andy Wang Data Structures, Algorithms, and Generic Programming.
CS Data Structures II Review & Final Exam. 2 Topics Review Final Exam.
Review and Prepare for Test 3 CS 244 Brent M. Dingle, Ph.D. Game Design and Development Program Department of Mathematics, Statistics, and Computer Science.
Binary Search Tree Traversal Methods. How are they different from Binary Trees?  In computer science, a binary tree is a tree data structure in which.
HASHING PROJECT 1. SEARCHING DATA STRUCTURES Consider a set of data with N data items stored in some data structure We must be able to insert, delete.
Final Exam Review CS Total Points – 60 Points Writing Programs – 50 Points Tracing Algorithms, determining results, and drawing pictures – 50.
Elementary Data Organization. Outline  Data, Entity and Information  Primitive data types  Non primitive data Types  Data structure  Definition 
Final Exam Tuesday, December 22nd 2:00 - 3:50pm room 102 Warren Weaver Hall.
Review for Final Exam – cs411/511 Definitions (5 questions, 2 points each) Algorithm Analysis (3 questions, 3 points each) General Questions (3 questions,
CSS446 Spring 2014 Nan Wang.  to study trees and binary trees  to understand how binary search trees can implement sets  to learn how red-black trees.
Heaps & Priority Queues
CompSci 100e 8.1 Scoreboard l What else might we want to do with a data structure? AlgorithmInsertionDeletionSearch Unsorted Vector/array Sorted vector/array.
Foundation of Computing Systems Lecture 4 Trees: Part I.
Final Exam Review CS Total Points – 20 Points Writing Programs – 65 Points Tracing Algorithms, determining results, and drawing pictures – 50.
Computer Science: A Structured Programming Approach Using C1 Objectives ❏ To introduce the basic concepts of linked lists ❏ To introduce the basic concepts.
Data Structures -3 rd exam- 授課教授:李錫智. 1.[10] Suppose we want to implement a queue by using the following List operations: getLength(); remove(position);
1 Const-time Search & Linear-time Sorting Shi-qing Xin & Guo-jin Wang
CPS120: Introduction to Computer Science Nell Dale John Lewis Abstract Data Types.
CSC 172 DATA STRUCTURES. MIDTERM REVIEW MIDTERM EXAM 75 min 6 – 10 questions a lot like the quiz questions.
Final Exam Review CS 3358.
Data Structures and Algorithms
Course Developer/Writer: A. J. Ikuomola
Lesson 5-15 AP Computer Science Principles
External Methods Chapter 15 (continued)
Review for Midterm Neil Tang 03/04/2010
structures and their relationships." - Linus Torvalds
Chapter 15 Lists Objectives
structures and their relationships." - Linus Torvalds
Searching.
Graphs & Graph Algorithms 2
Binary Trees: Motivation
Introduction to Data Structures
Final Review Dr. Yingwu Zhu.
Non-Linear data structures
structures and their relationships." - Linus Torvalds
Presentation transcript:

Midterm 2 Overview Fawzi Emad Chau-Wen Tseng Department of Computer Science University of Maryland, College Park

Overview of Topics 1. Data structures 2. Graph algorithms 3. Searching  Search trees  Heaps  Hash tables  Tries 4. Sorting 5. Compression

Topic – Data Structures Why data structures are important Taxonomy of data structures Linear Hierarchical Graph Maps & sets Data structure examples Relationship between elements Operations supported Impact on efficiency

Topic – Graph Algorithms Types of graphs Operations on graphs Traversals Spanning trees Minimal spanning trees Shortest paths Implementation methods

Topic – Searching Data structures for searching Binary search tree Heaps Maps & hashing Index search trees (tries) Multi-way search trees Balanced search trees Implementation & maintenance Insert(), delete(), find() Comparing data structures Advantages & disadvantages

Topic – Sorting Approaches to sorting Comparison sorts Linear sorts Properties of sorting Implementing sorting Comparing approaches Advantages & disadvantages

Topic – Compression Approaches to compression Huffman encoding Algorithm Implementation Properties

Midterm Question Formats Multiple choice questions Short 1-sentence answers Write code Apply & describe algorithms

Multiple Choice Question Example Sorting is different from searching because Sorting is more complex Searching is more complex Sorting takes more space Searching takes more space Sorting compares two items by size (circle all that apply)

Short 1-Sentence Answer Example Sorting is different from searching because (provide short 1-sentence answer)

Write Code Given the following Java code fragment, write code to insert into an unsorted linked list class Node { Object value; Node next; void insert ( Node n ) { …// place your code here } void BubbleSort ( Comparable [ ] a ) { …// place your code here }

Apply & Describe Algorithms Given the following binary search tree Draw tree after adding 9 Draw tree after deleting 5 Perform postorder traversal

Apply & Describe Algorithms Given the following graph Apply depth-first search, starting at 1 Apply breadth-first search, starting at 1 Apply Djikstra’s algorithm, starting at 1 Apply Kruskal’s algorithm Show steps