- IB
- Question Type 4: Creating directed graphs given some descriptions or information
Six warehouses are located at coordinates: A(0,0), B(2,3), C(5,1), D(6,4), E(3,5), F(1,4). Construct a directed graph where each one-way distance is the Euclidean distance rounded to the nearest integer. Then, starting from A, apply the nearest-neighbour heuristic to find a route visiting all warehouses exactly once. State the route and total distance.