EE 312 Software Design and Implementation I

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

DictionaryADT and Trees. Overview What is the DictionaryADT? What are trees? Implementing DictionaryADT with binary trees Balanced trees DictionaryADT.
Unit 11a 1 Unit 11: Data Structures & Complexity H We discuss in this unit Graphs and trees Binary search trees Hashing functions Recursive sorting: quicksort,
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.
Midterm Review CSE 2011 Winter October 2015.
Nirmalya Roy School of Electrical Engineering and Computer Science Washington State University Cpt S 223 – Advanced Data Structures Course Review Midterm.
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,
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.
 200 Total Points ◦ 75 Points Writing Programs ◦ 60 Points Tracing Algorithms and determining results ◦ 35 Points Short Answer ◦ 30 Points Multiple Choice.
Week 10 - Friday.  What did we talk about last time?  Graph representations  Adjacency matrix  Adjacency lists  Depth first search.
Lecture - 11 on Data Structures. Prepared by, Jesmin Akhter, Lecturer, IIT,JU Threaded Trees Binary trees have a lot of wasted space: the leaf nodes each.
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.
 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.
Final Exam Review COP4530.
Final Exam Review CS 3358.
CSCE 210 Data Structures and Algorithms
Introduction to Computers Computer Generations
COMP 53 – Week Fourteen Trees.
Midterm Review.
Exam Hints.
Week 6 - Wednesday CS221.
Binary Search Tree (BST)
CS 1428 Exam I Review.
October 30th – Priority QUeues
Week 11 - Friday CS221.
CS 1428 Exam II Review.
Binary Search Trees Why this is a useful data structure. Terminology
CS 1308 Exam 2 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.
Review for Exam 1 Topics covered: For each of these data structures
CS 2308 Exam II Review.
Exam 2 Review CS 3358 Data Structures.
Exam 1 Review CS 3358.
CS 2308 Exam I Review.
CS 1428 Exam II Review.
EE 422C Exam 2 Review.
Final Exam Review COP4530.
CS 2308 Exam I Review.
Exam 1 Review CS 3358.
EE 422C Final Exam Review.
Exam 2 Review CS 3358 Data Structures.
CS 2308 Exam II Review.
CS 1428 Final Exam Review.
Binary Trees: Motivation
CS 1428 Final Exam Review.
Binary Trees, Binary Search Trees
Binary Search Trees Chapter 7 Objectives
EE 312 Exam I Review.
Final Review Dr. Yingwu Zhu.
EE 312 Final Exam Review.
Non-Linear data structures
EE 312 Software Design and Implementation I
EE 312 Exam I Review.
CS 1428 Exam I Review.
Binary Trees, Binary Search Trees
CS 1308 Exam 2 Review.
CS 2308 Final Exam Review.
EE 312 Exam I Review.
Presentation transcript:

EE 312 Software Design and Implementation I Exam 2 Review EE 312 Software Design and Implementation I

Exam Format 110 Total Points 60 Points Writing Programs 20 Points Tracing Algorithms, determining results, and drawing pictures 30 Points Short Answer Note: These point values are approximations Note: The values on the categories will not add up to the total points because categories overlap.

Example Programming Problem Given the description of the BST_312 at the end of the exam, write the recursive insert function.

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

Example Short Answer Explain a reasonable way to choose the pivot for a quicksort if you do not know the relative order of the elements in the data? Draw a BST after the following elements have been added: (12, 34, 22, -3, 42, 17)

OOP, STL,Templates ?? Points Class structure Instance and Class variables Understand Constructors and Destructors Default and overridden How and when they are called Calling instance functions How to override relational operators and why they are necessary for container classes.

OOP, STL,Templates (cont.) Templated Classes and Functions You will not have to write any template code. How to use vectors. Understand the UtPod and Go Fish programs.

Analysis of Algorithms (still important) 5 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?

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

Trees (cont.) Binary Search Tree Be able to code anything from BST_312 Insert Delete Find Count Nodes Be able to code anything from BST_312 Make sure you understand the recursive and iterative solutions for each function.

Recursion 35 Points Understand Base case Smaller caller General case Will have to write a recursive functions Be able to do time analysis of a recursive function Understand math stuff, recursive flood fill and the BST programs.

Sorting 20 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, trace, or produce psuedo-code 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. Look at sorts in a lot of detail. Rewrite them if you have time (especially the parts you had trouble with) Look at sorts in a lot of detail. Look at other recursive functions (BSTs, linked lists, etc.) 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