Practice Dependency Graphs in Math
Use these practice problems to test your method after reviewing the concept explanation and worked examples.
Quick Recap
A dependency graph is a directed graph where nodes are variables and arrows show which variables directly influence which others.
Like a flowchart: A affects B, B affects C. Arrows show dependencies.
Showing a random 20 of 50 problems.
Example 1
easyIn the chain , how many ancestors does have?
Example 2
easyA graph has edges , , . List the parents of .
Example 3
mediumFind a valid evaluation order for , , where are inputs.
Example 4
mediumGiven , , , , , list one valid topological order.
Example 5
easyIn a dependency graph, the edge means which variable directly influences the other?
Example 6
easyThree tasks have the following dependencies: Task B depends on Task A, and Task C depends on Task B. Draw the dependency graph and determine a valid execution order.
Example 7
mediumGiven and , list every variable that depends on, directly or indirectly.
Example 8
easyA formula computes . Draw the dependency arrows.
Example 9
mediumVariables: rainfall soil moisture crop yield, and temperature crop yield. If only temperature changes, does soil moisture change?
Example 10
easyFor , draw the dependency graph and identify the leaf node.
Example 11
mediumIn the graph , , , , what is the out-degree of ?
Example 12
mediumTasks , , , . What is the minimum number of stages to complete all tasks if independent tasks can run in parallel?
Example 13
easyDoes correlation between and guarantee that one depends on the other? Answer yes or no.
Example 14
easyA node with no incoming arrows in a dependency graph is called a ____ variable.
Example 15
mediumIn a causal dependency graph , intervening on (forcing its value) breaks which arrow?
Example 16
mediumGiven the dependencies: depends on and ; depends on and ; depends on and . Find all valid topological orderings.
Example 17
challengeA graph claims , , is a valid computation pipeline. Identify the flaw and state the condition needed to fix it.
Example 18
mediumHow many distinct topological orderings does the DAG , have? (No other edges.)
Example 19
mediumIn the DAG with edges , , , , , what is the longest path length (in edges) from to ?
Example 20
mediumIn a spreadsheet, cell and . If changes, which cells must be recomputed?