Professional KnowledgeHardIBPS SO IT
Which algorithm design technique does Dijkstra's single-source shortest path use?
- A. Dynamic programming
- B. Greedy
- C. Divide and conquer
- D. Backtracking
Correct answer: B. Greedy
It repeatedly selects the nearest unvisited vertex.
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
- 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?
- The time complexity of inserting at the head of a singly linked list is: