• Wrong document? Swap it for free
  • Written by students who passed
  • Immediately available after payment
  • Read online or as PDF
Sell
Where do you study
Your language
Document preview thumbnail
Preview 1 out of 3 pages
Exam (elaborations)

CSX Exam 1 UPDATED ACTUAL Questions and CORRECT Answers

Document preview thumbnail
Preview 1 out of 3 pages

CSX Exam 1 UPDATED ACTUAL Questions and CORRECT Answers

Content preview

CSX Exam 1 UPDATED ACTUAL Questions and CORRECT Answers

best case O(1]N^2)
Big O for selection sort avg case O(N^2)
worst case O(N^2)
best case O(N)
Big O for insertion sort avg case O(N^2)
worst case O(N^2)
Big O for merge sort O(nlogn)
best case O(NlogN)
Big O for quick sort avg case O(NlogN)
worst case O(N^2)
best case O(1)
Big O for binary search avg case O(logN)
worst case O(logN)
A sort algorithm that repeatedly scans for the smallest item
in the list and swaps it with the element at the current
Selection sort
index. The index is then incremented, and the process
repeats until the last two elements are sorted.
Each items is take in turn, compare to the items in a sorted
Insertion Sort
list and placed in the correct position. 913 -> 193 -> 139
A list is split into individual lists, these are then combined
Merge Sort
(2 lists at a time).
Takes the first element of the list as a pivot and sorts the
Quick Sort data from equal, less, greater, then takes the sorted list
and sorts again with a new pivot in the less than list
Put() puts a new key value pair in a dictionary
Get() Gets the value of a key
sees if a key has been set in the dictionary, returns true or
Has()

Document information

Uploaded on
September 28, 2025
Number of pages
3
Written in
2025/2026
Type
Exam (elaborations)
Contains
Questions & answers
$11.99

Wrong document? Swap it for free Within 14 days of purchase and before downloading, you can choose a different document. You can simply spend the amount again.
Written by students who passed
Immediately available after payment
Read online or as PDF

Seller avatar
Reputation scores are based on the amount of documents a seller has sold for a fee and the reviews they have received for those documents. There are three levels: Bronze, Silver and Gold. The better the reputation, the more your can rely on the quality of the sellers work.
STANFORDGRADESS
4.0
(239)
Sold
1632
Followers
108
Items
116909
Last sold
16 hours ago




Why students choose Stuvia

Created by fellow students, verified by reviews

Quality you can trust: written by students who passed their tests and reviewed by others who've used these notes.

Didn't get what you expected? Choose another document

No worries! You can instantly pick a different document that better fits what you're looking for.

Pay as you like, start learning right away

No subscription, no commitments. Pay the way you're used to via credit card and download your PDF document instantly.

Student with book image

“Bought, downloaded, and aced it. It really can be that simple.”

Alisha Student

Working on your references?

Create accurate citations in APA, MLA and Harvard with our free citation generator.

Working on your references?

Frequently asked questions