Exam 2 Review CS 3358 Data Structures.

Slides:



Advertisements
Similar presentations
Queues and Priority Queues
Advertisements

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.
CSE 326: Data Structures Lecture #3 Analysis of Recursive Algorithms Alon Halevy Fall Quarter 2000.
Data Structures Lecture-1:Introduction
Queues and Priority Queues
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.
Exam Format  130 Total Points  10 Points Short Answer  15 Points Fill in the Blank  25 Points T/F  60 Points Multiple Choice  20 Points Matching.
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.
Exam Format  105 Total Points  25 Points Short Answer  20 Points Fill in the Blank  15 Points T/F  45 Points Multiple Choice  The above are approximations.
 140 Total Points ◦ 100 Points Writing Programs ◦ 24 Points Tracing Algorithms and determining results ◦ 16 Points Short Answer  Similar to quizzes.
 200 Total Points ◦ 75 Points Writing Programs ◦ 60 Points Tracing Algorithms and determining results ◦ 35 Points Short Answer ◦ 30 Points Multiple Choice.
Lecture 2 Basic Data Structures and Recursion Review.
CS 1308 Exam 2 Review. Exam Format 110 Total Points 24 Points Short Answer 28 Points Fill in the Blank 16 Points T/F 36 Points Multiple Choice The above.
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.
Final Exam Review CS Total Points – 20 Points Writing Programs – 65 Points Tracing Algorithms, determining results, and drawing pictures – 50.
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 Exam I Review. Exam Format 130 Total Points – 40 Points Writing Programs – 30 Points Tracing Algorithms and determining results – 20 Points Short.
CS 1428 Final Exam Review. Exam Format 200 Total Points – 60 Points Writing Programs – 45 Points Tracing Algorithms and determining results – 20 Points.
Final Exam Review CS 3358.
Data Structures and Algorithms
Searching – Linear and Binary Searches
Midterm Review.
March 27 – Course introductions; Adts; Stacks and Queues
CS 1308 Exam I Review.
Introduction to Analysis of Algorithms
CSE373: Data Structures and Algorithms Lecture 3: Math Review; Algorithm Analysis Catie Baker Spring 2015.
March 29 – Testing and Priority QUeues
Exam Hints.
CS 1428 Exam I Review.
Week 15 – Monday CS221.
CS 1428 Exam II Review.
CS302 Data Structures Fall 2012.
CS 1308 Exam 2 Review.
Exam 2 Review CS 3358 Data Structures.
CS 2308 Final Exam Review.
CS 2308 Exam I Review.
CS 2308 Exam II Review.
CS 2308 Exam II Review.
Review for Exam 1 Topics covered: For each of these data structures
CS 2308 Exam II Review.
CS 1428 Exam I Review.
Exam 1 Review CS 3358.
CS 2308 Exam I Review.
CS 1428 Exam II Review.
EE 422C Exam 2 Review.
CS 2308 Exam I Review.
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.
Review B.Ramamurthy 4/6/2019 BR.
EE 312 Final Exam Review.
Final Review B.Ramamurthy 5/8/2019 BR.
EE 312 Software Design and Implementation I
EE 312 Exam I Review.
CS 1428 Exam I Review.
CS 1308 Exam 2 Review.
For each of these data structures
CS 2308 Final Exam Review.
CMPT 225 Lecture 8 – Queue.
Review and Instructions
EE 312 Exam I Review.
Presentation transcript:

Exam 2 Review CS 3358 Data Structures

Exam Format 100 Total Points 55 Points Writing Programs 30Points Tracing Algorithms, determining results, and drawing pictures 15 Points Short Answer Similar to quizzes and programming assignments Note: the point values are approximations

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

Example Tracing Problem Given the following array, what would be the contents after the 4th iteration of a selection sort? 3 7 2 12 56 1 42 9

Example Short Answer Why is the quick sort less efficient than the insertion sort for small lists (e.g. n < 20)?

Templates 10 Points Why? Templated functions Templated Classes Understand the Stack Fun and Sort’em programs

Analysis of Algorithms (still important) 10 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(n2), O (log2n) Look for loops How fast does the problem shrink?

Stack ADT 20 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

Queue ADT 15 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

Recursion 25 Points Understand Will have to write a recursive function 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 and recursive flood fill

Sorting 30 Points Algorithms Time and space considerations O(n2) sorts Will not have to code the sorts Know the algorithms REALLY WELL! Will likely have to draw or trace Time and space considerations O(n2) sorts Selection sort, Insertion sort O(nlog2n) sorts Mergesort, Quicksort

Not on this exam Hashing Code from book Only concepts covered in class or on assignments

How to Study Review the programs. Rewrite them if you have time (especially the parts you had trouble with) Look at other recursive functions (linked lists, etc.) 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.

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

Questions