A road allows travel from Depot to Park, but not from Park to Depot. Which edges model its permitted travel?
A directed matrix uses columns P, Q, R, S and 1 for an edge. Row R is 1, 0, 0, 1. Which adjacency-list entry matches this row?
A directed matrix uses columns U, V, W. Its rows are U: 0, 0, 1; V: 1, 0, 1; W: 0, 0, 0. With 1 meaning an edge, how many edges end at W?
Answer: ______________
A directed graph has edges E to G, F to G, G to E and G to H. What is G's adjacency-list entry?
A directed graph has 100 nodes and 9900 edges. Compare a full matrix using 1 bit per cell with a list using 32 bits per neighbour ID. Ignore list overhead. Which uses fewer bits?
An undirected graph has no self-loops. Its list is A: B, D; B: A, C; C: B, D; D: A, C. How many edges does it have?
Answer: ______________
A weighted matrix uses null for no road and a number for a road's distance. A cell containing 0 must mean there is no road.
Circle one: True False
Node indices are known. You often ask whether a directed edge S to T exists. Which operation checks this without scanning neighbour entries?
A directed graph's adjacency list reads A: B, C; B: C; C: none. How many directed edges does it contain?
Answer: ______________
A route map shows roads from Ashcombe to Bridgeton (5 km) and from Bridgeton to Cliffwood (8 km). What are 5 and 8?