Professional KnowledgeHardIBPS SO IT
Which sorting algorithm has O(n log n) worst case and is not stable?
- A. Merge sort
- B. Heap sort
- C. Insertion sort
- D. Bubble sort
Correct answer: B. Heap sort
Heap sort swaps distant elements and does not preserve equal-key order.
Practise more IT Officer Professional Knowledge (IBPS SO) questionsIT Officer Professional Knowledge (IBPS SO): notes and key points
More IT Officer Professional Knowledge (IBPS SO) questions
- Which algorithm design technique does Dijkstra's single-source shortest path use?
- Floyd-Warshall algorithm complexity for V vertices is:
- In a connected weighted graph with distinct edge weights, the minimum spanning tree is:
- Which data structure does BFS use and which does DFS use (iterative)?
- Evaluate the postfix expression 5 3 2 + 4 - :
- A stack permutation: pushes 1, 2, 3, 4 in order. Which output sequence is impossible?