In a task scheduling problem modeled as a directed graph, a valid sequence of tasks that respects all prerequisites can be found using topological sorting. This is strictly possible only if the dependency graph is:
A
Step-by-Step Solution
Key idea: This is a direct-recall question on the fundamental prerequisite for topological sorting.
Topological sorting is defined as a linear ordering of vertices such that for every directed edge , comes before . If the graph contains a directed cycle, this condition cannot be satisfied because a vertex would need to appear before itself.
Step 1: Recall the definition of topological sorting and its existence condition.
Step 2: The existence of a topological ordering is equivalent to the graph being a Directed Acyclic Graph (DAG).
Step 3: Strongly connected, bipartite, and complete graphs can all contain cycles and thus do not guarantee a topological ordering.
Answer: A directed acyclic graph (DAG).