Professional KnowledgeHardIBPS SO IT
Recurrence T(n) = 3T(n/2) + n solves to:
- A. Theta(n log n)
- B. Theta(n^2)
- C. Theta(n^(log2 3))
- D. Theta(n)
Correct answer: C. Theta(n^(log2 3))
a = 3, b = 2: n^(1.585) dominates n (case 1).
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 sorting algorithm has O(n log n) worst case and is not stable?
- 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 - :