TechQuiz HardQAs
TechQuiz HardQAs
Hard:
1. What is the time complexity of the Floyd-Warshall algorithm for finding
all pairs of shortest paths in a graph?
a) O(V^2)
b) O(V^2 log V)
c) O(V^3)
d) o O(E log V)
2. Which of the following algorithm is used for finding the shortest path in a
graph with non-negative weights?
a) Dijkstra's Algorithm
b) Bellman-Ford Algorithm
c) Floyd-Warshall Algorithm
d) Prim's Algorithm
a) 5
b) 10
c) 15
d) Error
a) 5
b) 10
c) 120
d) RecursionError
7. What is the worst-case time complexity for inserting a node into a B-tree
of order m?
a) O(log n)
b) O(m)
c) O(m log n)
d) O(log m * log n)