Professional KnowledgeHardIBPS SO IT
Floyd-Warshall algorithm complexity for V vertices is:
- A. O(V^3)
- B. O(V^2)
- C. O(V E)
- D. O(V log V)
Correct answer: A. O(V^3)
Three nested loops over vertices.
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
- 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:
- Time to build a BST from n keys already sorted in ascending order by successive insertion is: