Question: Which of the following is a common application of Depth-First Search (DFS)?
Options:
Correct Answer: Topological sorting of a directed acyclic graph
Solution:
DFS is commonly used for topological sorting in directed acyclic graphs, as it can explore all vertices and edges in a depth-first manner.