A route map shows a road from Ashcombe to Bridgeton that is 5 km long, and a road from Bridgeton to Cliffwood that is 8 km long. If we model this map as a graph, what do the numbers 5 and 8 represent?
A directed graph has nodes A, B, C, D. The edges are A→B, A→C, B→D, and C→D. In an adjacency matrix with rows and columns ordered A, B, C, D, which row correctly shows node A's connections (0 = no edge, 1 = edge)?
A dense graph has 6 nodes, and its adjacency matrix has one row and one column for every node. How many cells does the full matrix have?
Answer: ______________
For that same graph, what does the adjacency list entry for A look like?
Most pairs of nodes in a graph are directly joined. Which store is usually more compact?
A graph's adjacency list is written as: A: B, C / B: C / C: (nothing). How many directed edges does this graph have in total?
Answer: ______________
In a dense graph, where most possible pairs of nodes are actually connected, true or false: an adjacency matrix usually wastes less space than an adjacency list.
Circle one: True False
A friendship graph has 10,000 people, and each person is friends with about 20 others on average. Which storage format uses less memory for this graph?
A list reads A: B, C with B: C and C: none. How many directed edges in total?
Answer: ______________
Roads Ashcombe to Bridgeton 5 km and Bridgeton to Cliffwood 8 km join the map. What are 5 and 8?