Final Exam Review CS 3358. 150 Total Points – 20 Points Writing Programs – 65 Points Tracing Algorithms, determining results, and drawing pictures – 50.

Slides:



Advertisements
Similar presentations
Lecture 22, Revision 1 Lecture notes Java code – CodeFromLectures folder* Example class sheets – 4 of these plus solutions Extra examples (quicksort) Lab.
Advertisements

Advanced Data Structures
Data Structures Data Structures Topic #13. Today’s Agenda Sorting Algorithms: Recursive –mergesort –quicksort As we learn about each sorting algorithm,
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.
CSCE 210 Data Structures and Algorithms
Fall 2007CS 2251 Iterators and Tree Traversals. Fall 2007CS 2252 Binary Trees In a binary tree, each node has at most two subtrees A set of nodes T is.
CS 104 Introduction to Computer Science and Graphics Problems Data Structure & Algorithms (4) Data Structures 11/18/2008 Yang Song.
Course Review COMP171 Spring Hashing / Slide 2 Elementary Data Structures * Linked lists n Types: singular, doubly, circular n Operations: insert,
CS 206 Introduction to Computer Science II 04 / 29 / 2009 Instructor: Michael Eckmann.
CS 206 Introduction to Computer Science II 12 / 10 / 2008 Instructor: Michael Eckmann.
Review for Midterm Chapter 1-9 CSc 212 Data Structures.
1 Hash Tables  a hash table is an array of size Tsize  has index positions 0.. Tsize-1  two types of hash tables  open hash table  array element type.
Trees Chapter 15 Data Structures and Problem Solving with C++: Walls and Mirrors, Carrano and Henry, © 2013.
CSCA48 Course Summary.
 200 Total Points ◦ 74 Points Writing Programs ◦ 60 Points Tracing Algorithms and determining results ◦ 36 Points Short Answer ◦ 30 Points Multiple Choice.
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.
Exam Format  90 Total Points  60 Points Writing Programs  25 Points Tracing Code/Algorithms and determining results  5 Points Short Answer  Similar.
Exam 1 Review CS Total Points – 60 Points Writing Programs – 20 Points Tracing Algorithms, determining results, and drawing pictures – 40 Points.
Final Exam Review CS Total Points – 60 Points Writing Programs – 50 Points Tracing Algorithms, determining results, and drawing pictures – 50.
 140 Total Points ◦ 100 Points Writing Programs ◦ 24 Points Tracing Algorithms and determining results ◦ 16 Points Short Answer  Similar to quizzes.
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,
 200 Total Points ◦ 75 Points Writing Programs ◦ 60 Points Tracing Algorithms and determining results ◦ 35 Points Short Answer ◦ 30 Points Multiple Choice.
Data Structures Chapter 6. Data Structure A data structure is a representation of data and the operations allowed on that data. Examples: 1.Array 2.Record.
Chapter 12 Abstract Data Type. Understand the concept of an abstract data type (ADT). Understand the concept of a linear list as well as its operations.
Week 10 - Friday.  What did we talk about last time?  Graph representations  Adjacency matrix  Adjacency lists  Depth first search.
CISC220 Fall 2009 James Atlas Dec 07: Final Exam Review.
Week 15 – Wednesday.  What did we talk about last time?  Review up to Exam 1.
April 27, 2017 COSC Data Structures I Review & Final Exam
 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.
Exam 2 Review CS 3358 Data Structures. 90 Total Points – 50 Points Writing Programs – 25 Points Tracing Algorithms, determining results, and drawing pictures.
CS 1428 Final Exam Review. Exam Format 200 Total Points – 60 Points Writing Programs – 45 Points Tracing Algorithms and determining results – 20 Points.
COMP 103 Course Review. 2 Menu  A final word on hash collisions in Open Addressing / Probing  Course Summary  What we have covered  What you should.
Final Exam Review COP4530.
Final Exam Review CS 3358.
CSCE 210 Data Structures and Algorithms
Introduction to Computers Computer Generations
Midterm Review.
Exam Hints.
Week 15 – Monday CS221.
Week 11 - Friday CS221.
Cse 373 April 26th – Exam Review.
Map interface Empty() - return true if the map is empty; else return false Size() - return the number of elements in the map Find(key) - if there is an.
Exam 2 Review CS 3358 Data Structures.
CSE 326: Data Structures: Midterm Review
CS 2308 Final Exam Review.
CS 2308 Exam I Review.
CS 2308 Exam II Review.
CS 2308 Exam II Review.
CS 2308 Exam II Review.
Exam 2 Review CS 3358 Data Structures.
Exam 1 Review CS 3358.
CS 2308 Exam I Review.
Final Exam Review COP4530.
Exam 1 Review CS 3358.
Exam 2 Review CS 3358 Data Structures.
CS 2308 Exam II Review.
CS 1428 Final Exam Review.
EE 312 Software Design and Implementation I
CS 1428 Final Exam Review.
EE 312 Exam I Review.
Final Review Dr. Yingwu Zhu.
EE 312 Final Exam Review.
Instructor: Dr. Michael Geiger Spring 2019 Lecture 34: Exam 3 Preview
EE 312 Software Design and Implementation I
EE 312 Exam I Review.
CS 2308 Final Exam Review.
EE 312 Exam I Review.
Presentation transcript:

Final Exam Review CS 3358

150 Total Points – 20 Points Writing Programs – 65 Points Tracing Algorithms, determining results, and drawing pictures – 50 Points Short Answer – 15 Multiple Choice Similar to quizzes and programming assignments Note: the point values are approximations Exam Format

Given the ADT for the Stack_3358 at the end of the exam, implement the push, pop, isEmpty and isFull functions. Example Programming Problem

What is the inorder traversal for the following BST? What would the following heap look like after inserting 42? What would this BST look like after deleting 42? Example Tracing Problems

What is the Big O time analysis of the insert operation in a doubly linked list when inserting before the cursor? Example Short Answer

?? Points – Multiple files Using header files – Command line arguments – OOP concepts. Especially those most useful for containers. Overloaded operators Copy constructors – Pointer variables – Understand the Climate and Go Fish programs – Obviously important concepts for the rest of the topics Review of 2308

30 points – Don’t memorize definition – Does the amount of work depend on the size of the input? – Should be able to rank as faster or slower – Be able to analyze algorithms and code and determine Big O time analysis Especially most common. O(1), O(n), O(n 2 ), O (log 2 n) – Look for loops How fast does the problem shrink? Analysis of Algorithms

20 Points – Know the definition of the List ADT – May have to implement Array-based list Pointer-based linked list Array-based linked list Pointer-based doubly-linked list Array-based doubly-linked list – Be able to do the time analysis for any of the functions in the List ADT definition we used for the program – Understand the List ADT program List ADT

0 Points – Why? – Templated functions – Templated Classes – Understand the Stack Fun and Sort’em programs – Important, but not on exam Templates

0 points – Understand basic functions Push Pop IsEmpty isFull – Should be able to implement array or linked list version of stack – Be able to use a stack to solve a problem – How does a stack relate to recursion? – Understand Stack Fun assignment Stack ADT

10 Points – Know the basic functions – Enqueue – Dequeue – isFull – isEmpty – Be able to implement circular array-based queue – Be able to implement a linked list version of a queue – Understand the Tree Search program Queue ADT

Recursion 20 Points – Understand Base case Smaller caller General case – Will have to write a recursive function – Be able to do time analysis of a recursive function – Understand math stuff, recursive flood fill, and especially binary search trees

Sorting 10 Points – Algorithms Will not have to code the sorts Will likely have to draw or trace – Time and space considerations – O(n 2 ) sorts Selection sort Insertion sort – O(nlog 2 n) sorts Mergesort Quicksort

Hashing 20 Points – Hash tables – Hash Functions Using strings as keys – Collisions Separate chaining Open Addressing – Linear probing – Quadratic probing – Double Hashing – Be able to hash a list of keys given a function and collision strategy

Trees 40 Points – Definitions Terminology: path, depth, height, etc. – General Trees vs. Binary Trees – Tree Traversals Preorder Inorder Postorder – Binary Search Trees

Trees (cont.) Binary Search Tree – Find – Insert – Delete – Count Nodes Be able to code anything from BST_3358 Understand the Tree Search

Heaps 15 Points – Definitions Full binary tree Complete binary tree – Array-based implementation of binary trees Parent-child relationships Calculations to find nodes – Heap property – ReheapDown, ReheapUp

Priority Queues 5 Points – Can be implemented as a heap – Know the algorithms enQueue deQueue – Be able to figure out Big O analysis of operations

HeapSort 0 Points – Basic Algorithm Transform array items into heap Get smallest item and reheap until heap is empty – Big O analysis

Not on this exam Code examples from the book – Only what we covered in class and on the programs

Review the programs. – Rewrite them if you have time (especially the parts you had trouble with) Learn by doing and recognizing patterns. Use the exam for clues on the other problems and for help with syntax. Don’t stay up late!! Get some sleep and eat a good breakfast. How to Study

Pencils and erasers We will provide scratch paper No calculators What to bring

Questions