Professional Documents
Culture Documents
MCQ On Lec 6,7
MCQ On Lec 6,7
**
- A. It is strictly increasing.
- B. It is strictly decreasing.
2. **In Bitonic Sort, how is a bitonic sequence created during the first phase of the algorithm?**
- A. O(n log n)
- B. O(n^2)
- C. O(log^2 n)
- D. O(n log^2 n)
8. **In Bitonic Sort, how many phases are involved in the sorting process?**
- A. One
- B. Two
- C. Three
- A. Bitonic Split
- B. Bitonic Merge
- C. Bitonic Combine
- D. Bitonic Divide
1. Which of the following sorting algorithms has an average-case time complexity of O(n log n)?
- A. Selection Sort
- B. Bubble Sort
- C. Insertion Sort
- D. Quicksort
- A. O(n)
- B. O(n log n)
- C. O(n^2)
- D. O(log n)
3. **Quicksort is an example of which algorithmic paradigm?**
- A. Dynamic Programming
- B. Greedy Algorithm
- D. Backtracking
4. **Which sorting algorithm is known for its efficiency but can have a worst-case time
complexity of O(n^2)?**
- A. Merge Sort
- B. Radix Sort
- C. Quicksort
- D. Shell Sort
2. **In Merge Sort, how are sub-lists created during the divide step?**
6. **In Merge Sort, how is the merging of two sorted lists done?**
- A. O(n)
- B. O(n log n)
- C. O(n^2)
- D. O(log n)
8. **Which sorting algorithm explicitly follows the steps: Pick, Divide, Repeat and Combine?**
- A. Quick Sort
- B. Bubble Sort
- C. Insertion Sort
- D. Radix Sort
9. **What is the main advantage of Quicksort over some other sorting algorithms?**
10. **During the "Pick" step in Quicksort, what is the element selected as?**
--------------------------------------------------------------------------------------------------------------------------------