English

Find the Longest Route in a Tree

Find two far endpoints by running two distance sweeps on a tree.

Adult planning suggestion: about 9–12 · Logic & rule checking

Players
3 with an adult facilitator
Time
15–25 minutes
Materials
Printed player sheet or copied paper, pencil and small counters.

Prepare

Draw undirected unit edges AB, BC, CD, BE and DF. Start the first sweep at C. Tree paths are unique.

Follow the rule

Expand distance layers from C and mark the farthest set. Break ties alphabetically for this worksheet.

Check each step

Start a second sweep at the chosen farthest vertex. Record every distance and find a vertex in the farthest layer.

Worked example

Trace the unique path between these endpoints. Have the checker enumerate distances between leaf pairs to verify the maximum in this example.

Finish and adapt

Finish with an endpoint pair and number of edges. Apply the two-sweep rule here to trees, not arbitrary graphs with cycles.

Purpose, observation and provenance

Within this activity: Find two far endpoints by running two distance sweeps on a tree.

Ask the checker to point to the move or calculation that decides the outcome.

Our rules, examples and printable diagrams are separately prepared. The earliest inventor of the broader mechanism is not established here.

Unweighted breadth-first search background — Rule or mathematical background for our original paper exercise. The small example and end condition are ours.

Secondary practice: Cooperation and explaining a check.

For a class of 30, use ten groups of three. Prepare one player-material set per group and keep the host key with the adult. Rotate operator, recorder and checker after each worked example; a reader or scribe may help without choosing answers. Avoid public ranking or diagnostic labels.

Age bands are planning suggestions. Background references may address older learners and do not validate suitability for this age band. Goals describe observable actions, not measured long-term gains or institutional endorsement.

Free alternative: Copy the supplied grids, labels and cards onto reused paper. No specialist product is needed. Adults may prepare pieces or act as a scribe.

Printable materials

Preview at 100% scale, with browser headers and footers off. Cut with suitable help. Keep host keys separate. This is a manual tabletop kit, not an online opponent, automatic judge or solver.

Find the Longest Route in a Tree · Player materials

Draw undirected unit edges AB, BC, CD, BE and DF. Start the first sweep at C. Tree paths are unique.

Expand distance layers from C and mark the farthest set. Break ties alphabetically for this worksheet.

Start a second sweep at the chosen farthest vertex. Record every distance and find a vertex in the farthest layer.

EdgesAB BC CD BE DF
First sweepC
Tie ruleAlphabetical
Step / cellDecision / valueRule checked
________________________
________________________
________________________
________________________

Find the Longest Route in a Tree · Host key — keep separate

C distances A/E/F=2, choose A. From A farthest F at 4 along A–B–C–D–F. Leaf distances A–E=2, A–F=4, E–F=4.

Lead and check

Draw undirected unit edges AB, BC, CD, BE and DF. Start the first sweep at C. Tree paths are unique.

Expand distance layers from C and mark the farthest set. Break ties alphabetically for this worksheet.

Start a second sweep at the chosen farthest vertex. Record every distance and find a vertex in the farthest layer.

Trace the unique path between these endpoints. Have the checker enumerate distances between leaf pairs to verify the maximum in this example.

Finish with an endpoint pair and number of edges. Apply the two-sweep rule here to trees, not arbitrary graphs with cycles.

Classroom: ten trios for 30 learners; one kit per trio. Rotate operator, recorder and checker. Age guidance is a planning suggestion; prerequisite support may be necessary.

Audit a branch that ties the first sweep · Player audit

Use the original tree AB,BC,CD,BE,DF. Choose E instead of A among the first sweep’s equally distant vertices from C. Find its farthest partner and compare lengths.

Input / stepResultReason
________________________
________________________
________________________
________________________
________________________
________________________

Audit a branch that ties the first sweep · Host audit

E→B→C→D→F is length 4. A→B→C→D→F is also 4. The endpoints need not be unique.

Related activities

Activity library · Breadth-layer map

Audit a branch that ties the first sweep

Use the original tree AB,BC,CD,BE,DF. Choose E instead of A among the first sweep’s equally distant vertices from C. Find its farthest partner and compare lengths.