- Study guides, Class notes & Summaries
Looking for the best study guides, study notes and summaries about ? On this page you'll find 2 study documents about .
2 results
Exam (elaborations)
CPSC 2120 Exam 1 Question and answers 100% correct 2025/2026
NewCPSC 2120 Exam 1 Question and answers 100% correct 2025/2026 
 
Selection Sort - correct answer sorts an array by repeatedly selecting the smallest (or largest) element from the unsorted portion and swapping it with the first unsorted element 
- linear search 
 
What are the time complexities for Selection Sort? - correct answer Best case: Ω(n2) 
Worst case: O(n2) 
Average case: Θ(n2) 
 
Selection Sort Properties - correct answer Space: O(1) 
In place: Yes 
Stable: No, Why? 
Example: 2A,...
Exam (elaborations)
CPSC 2120 Final Question and answers rated A+ 2025/2026
PopularCPSC 2120 Final Question and answers rated A+ 2025/2026 
 
bounds for O(x) - correct answer f(n) <= x 
 
bounds for o(x) - correct answer f(n) < x 
 
bounds for θ(x) - correct answer f(n) = x 
 
bounds for Ω(x) - correct answer f(n) >= x 
 
bounds for ω(x) - correct answer f(n) > x 
 
What are the two kinds of data structures - correct answer next item is over one spot, current location tells you where next location