EE 312 Final Exam Review.

Slides:



Advertisements
Similar presentations
CS 104 Introduction to Computer Science and Graphics Problems Data Structure & Algorithms (4) Data Structures 11/18/2008 Yang Song.
Advertisements

Course Review COMP171 Spring Hashing / Slide 2 Elementary Data Structures * Linked lists n Types: singular, doubly, circular n Operations: insert,
Review for Midterm Chapter 1-9 CSc 212 Data Structures.
Comp 249 Programming Methodology Chapter 15 Linked Data Structure - Part B Dr. Aiman Hanna Department of Computer Science & Software Engineering Concordia.
 200 Total Points ◦ 74 Points Writing Programs ◦ 60 Points Tracing Algorithms and determining results ◦ 36 Points Short Answer ◦ 30 Points Multiple Choice.
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,
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.
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.
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.
 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 Final Exam Review. Exam Format 200 Total Points – 60 Points Writing Programs – 45 Points Tracing Algorithms and determining results – 20 Points.
Final Exam Review COP4530.
Final Exam Review CS 3358.
CSCE 210 Data Structures and Algorithms
Data Structures and Algorithms
Chapter 12 – Data Structures
Introduction to Computers Computer Generations
CS 215 Final Review Ismail abumuhfouz Fall 2014.
Midterm Review.
Exam Hints.
CS 1428 Exam I Review.
Week 15 – Monday CS221.
Week 11 - Friday CS221.
Hashing Exercises.
Cse 373 April 26th – Exam Review.
November 1st – Exam Review
CS 1428 Exam II Review.
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.
CS 2308 Exam II Review.
Exam 2 Review CS 3358 Data Structures.
Exam 1 Review CS 3358.
CS 2308 Exam I Review.
Lesson Objectives Aims
Final Exam Review COP4530.
CS 2308 Exam I Review.
Exam 1 Review CS 3358.
ITEC 2620M Introduction to Data Structures
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.
DATA STRUCTURE.
Instructor: Dr. Michael Geiger Spring 2019 Lecture 34: Exam 3 Preview
EE 312 Software Design and Implementation I
EE 312 Exam I Review.
CS 1428 Exam I Review.
CS 2308 Final Exam Review.
EE 312 Exam I Review.
Presentation transcript:

EE 312 Final Exam Review

Exam Format 165 Total Points All point values are approximations 50 Points Writing Programs 45 Points Short Answer 35 Points of Tracing Code 35 Multiple Choice All point values are approximations

Example Programming Problems Compare two linked lists to see if they are equal. Write a recursive function to find the largest value in a BST. Write the code to overload the == operator for the UtPod (You would be given the signature.)

Example Short Answer Explain why traversing a linked list of nodes is an O(n) operation. Is the following (code would be given) a reasonable way to implement a Stack? 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) What is the Big O time for inserting an item into a complete binary search tree?

What will the EXACT output of the following program be? int foo = 9; int *ptr = &foo; float foo2 = 5.7; *ptr = 2; foo2 = foo - foo2; if (foo > foo2) printf("Hello!\n“); else if (foo < foo2) printf(“%f\n”, foo2); else printf(“%d\n”, foo); printf(“\n”); printf (“foo2 is %f\n”, foo2);

Fundamentals of C ?? Points Declaration of variables and functions Looping and conditional statements While, for, if One and two dimensional arrays Simple I/O Printf, scanf, fscanf, fgets

Pointers Relationship between arrays and pointers 5 Points A pointer is a variable that holds the address of a memory location Declaration int *ptr; Assignment ptr = &foo; //& is the address function Dereferencing *ptr = 54; //same as foo=54; You can point to any kind of data type Relationship between arrays and pointers Understand the “malloc” and “free” commands

Structures 10 Points Declaration Assignment Use of the “.” operator Pointers to structures (*ptr).field ptr->field Structures used in Linked Lists

Linked Lists 30 Points Declaring a linked list Adding a node to a linked list Removing a node from a linked list Traversing a linked list What is the order of magnitude of each of the above operations? Understand the Stack312_ll code and the linked list code from class.

Stacks and Queues 6 Points Operations FIFO vs LIFO makeStack Push Pop isEmpty isFull FIFO vs LIFO Know how to use in a problem and implement Understand the Stack Fun! assignment

Linux 6 Points Know the basic commands you needed to complete a program in Linux Know how to edit a file in Linux Know how to compile and run a C program in Linux Know how to create directories and move around the Linux file system

Command Line arguments 0 Points Make sure you understand how to use argc and argv Understand the use of atoi(char *)

Algorithm Analysis 25 Points Understand what Big O notation is Be able to look at an algorithm or piece of code and determine how much work it has to do (and then the Big(O) analysis of the code) Understand the relative speed of the Big O orders. Which is faster? O(1) or O(n)

Object Oriented Programming 45 Points Class structure Instance and Class variables Instance and Class functions 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.

Trees 25 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 10 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.

Searching and Sorting 20 Points Algorithms Will not have to code the sorts or searches Know the algorithms REALLY WELL! Will likely have to draw, trace, or produce psuedo-code Time and space considerations Linear Search Binary Search O(n2) sorts Selection sort, Insertion sort O(nlog2n) sorts Mergesort, Quicksort

Hashing 15 Points Hash tables Hash Functions Collisions 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

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

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

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

How to Study Rewrite all the programs. Concentrate on the last four. Look at all the data structures and algorithms and see how much work each operation involves with the different implementations of the algorithms for figuring out the Big O questions. Don’t memorize C or C++! Code syntax will be on the exam. Learn by doing and recognizing patterns. 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