Graph Algorithms MCQs

Topic-wise practice questions for Data Structures & Algorithms. Test your knowledge, check solutions on demand, and pace your preparation.

Zero-leak answer engine • Rate-limited explanations
Practice in Timed Mode
Q61easy
What does it mean if a Directed Graph is "Strongly Connected"?
Q62hard
Which technique is best for solving the Traveling Salesperson Problem (TSP) to find the absolute shortest path (ignoring time complexity)?
Q63medium
Which data structure is a more memory-efficient alternative to a Segment Tree for simple **Prefix Sum** queries?
Q64hard
What is the Time Complexity of performing a DFS traversal on a graph with V vertices and E edges represented as an Adjacency List?
Q65medium
A database query is running slow. You add an Index (a B- Tree). The search speed increases, but the storage space required for the database increases. This is a tradeoff between:
Q66easy
A graph is "Disconnected" if:
Q67medium
In Rabin-Karp, if the pattern hash is 45 and the current text window hash is 45, what is the next step the algorithm must take?
Q68hard
What is the **Space Complexity** of the KMP algorithm (excluding the input)?
Q69medium
Which algorithm is the best choice for finding the shortest path between a single source and all other nodes in a graph with negative edge weights?
Q70hard
What is the time complexity of the Extract-Min operation in a Min- Heap with N elements?