ExamVeda
Login
Home
31
Which sorting algorithm is most appropriate for sorting linked lists?
Discuss
Answer & Solution
Answer: Option A
No explanation is given for this question. Let's Discuss on Board
32
Which sorting algorithm can be used to sort a large number of floating-point numbers efficiently?
Discuss
Answer & Solution
Answer: Option D
No explanation is given for this question. Let's Discuss on Board
33
Which sorting algorithm is known for its efficiency with partially sorted data?
Discuss
Answer & Solution
Answer: Option C
No explanation is given for this question. Let's Discuss on Board
34
What is the best-case time complexity of Quick Sort?
Discuss
Answer & Solution
Answer: Option B
No explanation is given for this question. Let's Discuss on Board
35
Which sorting algorithm works by repeatedly finding the minimum element from the unsorted portion?
Discuss
Answer & Solution
Answer: Option C
No explanation is given for this question. Let's Discuss on Board
36
What is the space complexity of Radix Sort?
Discuss
Answer & Solution
Answer: Option D
No explanation is given for this question. Let's Discuss on Board
37
In which situation is Merge Sort particularly useful?
Discuss
Answer & Solution
Answer: Option A
No explanation is given for this question. Let's Discuss on Board
38
Which sorting algorithm has a time complexity of O(n log n) in the worst case and is not stable?
Discuss
Answer & Solution
Answer: Option B
Solution:
Heap Sort is a sorting algorithm with a worst-case time complexity of O(n log n). It is not stable because the relative order of equal elements may not be preserved during the sorting process.

Option A: Counting Sort is not correct because it has a time complexity of O(n + k), where k is the range of the input, and it is stable.

Option C: Merge Sort has a worst-case time complexity of O(n log n), but it is a stable sorting algorithm.

Option D: Quick Sort has an average-case time complexity of O(n log n), but its worst-case time complexity is O(n²). It is also not stable.

Therefore, the correct answer is Option B: Heap Sort, as it meets the criteria of O(n log n) in the worst case and is not stable.
39
What is the main drawback of Bubble Sort?
Discuss
Answer & Solution
Answer: Option C
No explanation is given for this question. Let's Discuss on Board
40
Which sorting algorithm is best for sorting strings of fixed length?
Discuss
Answer & Solution
Answer: Option B
No explanation is given for this question. Let's Discuss on Board