Skip to content

Network Optimization: Connecting Points EfficientlyActivities & Teaching Strategies

Active learning helps students grasp Network Optimization because abstract graph theory comes alive when they physically manipulate edges and weights. These hands-on strategies build intuition for why greedy algorithms succeed in this domain, turning algorithmic steps into memorable, visual decisions.

12th GradeComputer Science4 activities25 min35 min

Learning Objectives

  1. 1Compare the efficiency of Kruskal's and Prim's algorithms for finding a Minimum Spanning Tree on a given graph.
  2. 2Analyze real-world network design problems and model them as Minimum Spanning Tree challenges.
  3. 3Formulate a step-by-step greedy strategy to connect a set of points with minimal total cost.
  4. 4Evaluate the optimality of a proposed network connection plan using Minimum Spanning Tree principles.

Want a complete lesson plan with these objectives? Generate a Mission

35 min·Small Groups

Problem Solving: City Network Design Challenge

Give student groups a map of 7 fictional cities with labeled road distances. Groups design the minimum-cost road network linking all cities, first by intuition and then by systematically applying Kruskal's approach: sort edges, add the cheapest one that does not form a cycle. Groups compare their intuitive solution to the algorithmic result.

Prepare & details

How can we connect all points in a network using the least amount of resources?

Facilitation Tip: During City Network Design Challenge, circulate with a checklist to confirm students label each connection with its weight and total cost as they build.

Setup: Groups at tables with case materials

Materials: Case study packet (3-5 pages), Analysis framework worksheet, Presentation template

AnalyzeEvaluateCreateDecision-MakingSelf-Management
30 min·Whole Class

Simulation Game: Human Prim's Algorithm

Designate students as nodes in a graph drawn on the board. One student starts as the tree, and the class collectively selects the cheapest edge connecting a tree node to a non-tree node at each step. Students physically move to the tree side of the room as their node is added, and the class tracks total cost after each step.

Prepare & details

Analyze real-world scenarios where efficient network connections are critical.

Facilitation Tip: In Human Prim’s Algorithm, assign each student a node to track their own local minimum edge to avoid confusion in crowded groups.

Setup: Flexible space for group stations

Materials: Role cards with goals/resources, Game currency or tokens, Round tracker

ApplyAnalyzeEvaluateCreateSocial AwarenessDecision-Making
25 min·Pairs

Think-Pair-Share: When Greedy Fails

Present two optimization problems side by side: a minimum spanning tree problem where greedy works and a Traveling Salesman problem where it does not. Pairs trace through both with a small graph, then discuss what property of the MST problem allows greedy to succeed where it fails for TSP.

Prepare & details

Propose a simple method to find the most cost-effective way to link several locations.

Facilitation Tip: For When Greedy Fails, supply two small graphs with tied weights so students can see identical total costs despite different edge selections.

Setup: Standard classroom seating; students turn to a neighbor

Materials: Discussion prompt (projected or printed), Optional: recording sheet for pairs

UnderstandApplyAnalyzeSelf-AwarenessRelationship Skills
25 min·Pairs

Gallery Walk: Real-World Network Design Cases

Post 5 case studies of real infrastructure projects including fiber optic network layout, airline hub connections, and power grid expansion. Students annotate which are MST problems, what the edge weights represent, and what practical constraints might make a pure MST solution insufficient in each case.

Prepare & details

How can we connect all points in a network using the least amount of resources?

Facilitation Tip: During Gallery Walk, post sentence stems like ‘This design saves X meters of cable because…’ to guide written feedback.

Setup: Wall space or tables arranged around room perimeter

Materials: Large paper/poster boards, Markers, Sticky notes for feedback

UnderstandApplyAnalyzeCreateRelationship SkillsSocial Awareness

Teaching This Topic

Teachers should emphasize the greedy choice property by having students repeatedly ask, ‘What’s the cheapest edge I can add without creating a cycle?’ before moving on. Avoid rushing to the algorithm’s name; instead, let students verbalize the rule in their own words first. Research shows that drawing each intermediate step cements understanding far more than rushing through the steps.

What to Expect

Successful learning looks like students confidently choosing the next edge in Kruskal’s or Prim’s based on weight and cycle rules, explaining why a given set of connections is minimal, and recognizing when multiple valid solutions exist. They should also articulate why an MST does not guarantee the shortest path between two nodes.

These activities are a starting point. A full mission is the experience.

  • Complete facilitation script with teacher dialogue
  • Printable student materials, ready for class
  • Differentiation strategies for every learner
Generate a Mission

Watch Out for These Misconceptions

Common MisconceptionDuring City Network Design Challenge, students may assume only one cheapest network exists.

What to Teach Instead

After students complete their designs, display two student solutions with the same total cost but different edges, then ask the class to compare why both are valid.

Common MisconceptionDuring Human Prim’s Algorithm, students might think the MST gives the shortest route from the start node to every other node.

What to Teach Instead

After the simulation, pose the Antarctica scenario and have students calculate both the MST total length and the actual shortest path from Station A to Station B to highlight the difference.

Common MisconceptionDuring When Greedy Fails, students might generalize that greedy always works in optimization problems.

What to Teach Instead

After the discussion, present the Traveling Salesman problem on four nodes and ask students to run a greedy version to see why it fails, then contrast with Kruskal’s guaranteed success.

Assessment Ideas

Quick Check

After City Network Design Challenge, collect each group’s labeled graph and ask them to present the next edge they would add if one more node were added, justifying their choice.

Discussion Prompt

During Human Prim’s Algorithm, have students pair up to explain to each other why their local minimum edge choice is safe to add without creating a cycle.

Exit Ticket

After Gallery Walk, ask students to write one sentence explaining why two MSTs can have the same total cost but different edges, using examples from the real-world cases they examined.

Extensions & Scaffolding

  • Challenge students to find a second MST with the same total cost by swapping edges of equal weight.
  • Scaffolding: Provide pre-colored edge sets so colorblind students can distinguish weights without relying on hue.
  • Deeper exploration: Have students implement Prim’s algorithm in Python using adjacency lists and compare runtime on graphs of increasing size.

Key Vocabulary

Minimum Spanning Tree (MST)A subset of the edges of a connected, edge-weighted undirected graph that connects all the vertices together, without any cycles and with the minimum possible total edge weight.
Greedy AlgorithmAn algorithm that makes the locally optimal choice at each stage with the hope of finding a global optimum. For MST, this means picking the cheapest available edge that doesn't form a cycle.
Edge WeightA numerical value assigned to an edge in a graph, representing a cost, distance, or capacity associated with connecting two vertices.
CycleA path in a graph that starts and ends at the same vertex, and visits other vertices in between without repeating edges.

Ready to teach Network Optimization: Connecting Points Efficiently?

Generate a full mission with everything you need

Generate a Mission