Sorting and Searching - common sorting and searching algorithms, hashing - Online Test

30:00
1. Which sorting algorithm is known for its simplicity and is often taught first, but has a worst-case time complexity of O(n^2)?
2. What is the average time complexity of Quick Sort?
3. Which sorting algorithm divides the list into two halves, sorts them recursively, and then merges the sorted halves?
4. What is the best-case time complexity of Bubble Sort?
5. Which sorting algorithm has a time complexity of O(n log n) in all cases (best, average, and worst)?
6. In Insertion Sort, how is an element inserted into its correct position in the already sorted part of the array?
7. What is the primary advantage of Merge Sort over Quick Sort in certain scenarios?
8. Which sorting algorithm works by repeatedly finding the minimum element from the unsorted part and putting it at the beginning?
9. What is the worst-case time complexity of Quick Sort?
10. Which searching algorithm requires the data to be sorted beforehand?

Test Results

0/0