CSE 100 Lecture Notes - Lecture 44: Big O Notation, Bubble Sort, Binary Search Algorithm

101 views1 pages
Exam 4 Review
Will have detailed questions such as writing short answer and writing a program will be
mainly from Ch. 9
Chapter 9 →
Introduction to Search Algorithms
Searching an Array of Objects
Introduction to Sorting Algorithms
Sorting an Array of Objects
Sorting and Searching Vectros
Introduction to Analysis of Algorithms
Search Algorithms
linear search
binary search
Sorting Algorithms
bubble sort
selection sort
*Make sure you understand steps
of sorting algorithms
Big O Notation
cin >> input;
cout << “Input is : MM uput << endl;
*2 steps = )(2) =. O(1): constant time
for(int i = 0; i<N; i++){
*statements(s)...
}
*N times iterates some statements = O(N*someNumber) = )(N): Linear Time
Exam Structure→
True/False questions: 40 points
MC: 20 points
Short answer: 10 points
Write steps of sorting algorithms: 20 points
Write a part of program: 10 points
Unlock document

This preview shows half of the first page of the document.
Unlock all 1 pages and 3 million more documents.

Already have an account? Log in

Get access

Grade+
$40 USD/m
Billed monthly
Grade+
Homework Help
Study Guides
Textbook Solutions
Class Notes
Textbook Notes
Booster Class
10 Verified Answers
Class+
$30 USD/m
Billed monthly
Class+
Homework Help
Study Guides
Textbook Solutions
Class Notes
Textbook Notes
Booster Class
7 Verified Answers

Related Documents