Skip to content

Evaluating Algorithm Efficiency (Basic)Activities & Teaching Strategies

Active learning helps students grasp algorithm efficiency because they can see and feel the difference in speed and effort. By moving through each step of a sorting or searching process, students connect abstract concepts to concrete experiences, which builds lasting understanding.

JC 1Computing4 activities25 min40 min

Learning Objectives

  1. 1Compare the number of operations required by two different algorithms to solve the same problem for small datasets.
  2. 2Explain why an algorithm with more steps might be acceptable for very small input sizes.
  3. 3Identify a scenario where algorithm efficiency is critical for performance.
  4. 4Analyze the trade-offs between algorithm simplicity and execution speed for basic problems.

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

35 min·Small Groups

Sorting Race: Bubble vs Selection Sort

Provide groups with identical sets of 10 numbered cards. Instruct them to sort using bubble sort first, counting swaps aloud, then repeat with selection sort and compare counts. Groups record results on a shared chart and discuss differences.

Prepare & details

How can we tell if one algorithm is 'better' than another for solving the same problem?

Facilitation Tip: During Sorting Race, have students physically swap cards to mimic swaps in Bubble Sort, making the operation count visible and memorable.

Setup: Groups at tables with access to research materials

Materials: Problem scenario document, KWL chart or inquiry framework, Resource library, Solution presentation template

AnalyzeEvaluateCreateDecision-MakingSelf-ManagementRelationship Skills
25 min·Pairs

Search Challenge: Linear vs Indexed

Give pairs printed lists of 8 names. Have them perform linear searches for three targets, counting comparisons, then create a simple index and repeat. Pairs graph step counts and predict for larger lists.

Prepare & details

Why might an algorithm that takes more steps be acceptable for a very small amount of data?

Facilitation Tip: For Search Challenge, use sticky notes to label items in the array so students can physically point and count comparisons during Linear Search.

Setup: Groups at tables with access to research materials

Materials: Problem scenario document, KWL chart or inquiry framework, Resource library, Solution presentation template

AnalyzeEvaluateCreateDecision-MakingSelf-ManagementRelationship Skills
40 min·Whole Class

Maze Path Competition: DFS vs BFS

Draw simple mazes on paper. Whole class divides into teams; one team traces depth-first paths counting steps, another breadth-first. Compare paths to shortest solutions and vote on efficiency.

Prepare & details

Describe a scenario where the efficiency of an algorithm becomes very important.

Facilitation Tip: In Maze Path Competition, mark each step taken on a whiteboard so students can tally operations for both DFS and BFS side by side.

Setup: Groups at tables with access to research materials

Materials: Problem scenario document, KWL chart or inquiry framework, Resource library, Solution presentation template

AnalyzeEvaluateCreateDecision-MakingSelf-ManagementRelationship Skills
30 min·Pairs

Step Counter Relay

Individuals trace algorithms on worksheets for small inputs, passing to partners for verification. Class tallies averages and debates why one algorithm wins for the dataset.

Prepare & details

How can we tell if one algorithm is 'better' than another for solving the same problem?

Facilitation Tip: In Step Counter Relay, assign each team a different starting point in the algorithm to ensure all students participate in the step count.

Setup: Groups at tables with access to research materials

Materials: Problem scenario document, KWL chart or inquiry framework, Resource library, Solution presentation template

AnalyzeEvaluateCreateDecision-MakingSelf-ManagementRelationship Skills

Teaching This Topic

Teachers should focus on guiding students to notice patterns in operation counts rather than memorizing algorithms. Avoid rushing to conclusions; instead, let students discover efficiency through repeated trials and group discussions. Research shows that students learn best when they articulate their own reasoning aloud and compare it with peers.

What to Expect

Students will confidently compare algorithms by counting steps and explaining which is more efficient for small datasets. They will justify their choices with data from trials and recognize that efficiency depends on context.

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 Sorting Race, watch for students assuming Bubble Sort is always better because it feels more intuitive.

What to Teach Instead

Use the card-swapping activity to have students count swaps in Bubble Sort and compare them to the fixed steps of Selection Sort, highlighting cases where fewer swaps occur in Selection Sort.

Common MisconceptionDuring Search Challenge, watch for students believing Linear Search is never efficient.

What to Teach Instead

Use sticky notes to label items and have students physically walk through both searches, counting comparisons to show Linear Search can be efficient for very small or unsorted lists.

Common MisconceptionDuring Maze Path Competition, watch for students assuming DFS always finds the solution faster.

What to Teach Instead

Have students mark each step on the whiteboard and tally totals, then discuss how BFS may require fewer steps for shorter paths, correcting the assumption that depth guarantees speed.

Assessment Ideas

Quick Check

After Step Counter Relay, present students with two simple algorithms for finding the maximum in a list of 5 items. Ask them to count the operations for each and write which is more efficient and why.

Discussion Prompt

During Sorting Race, pose the question: 'Algorithm A takes 10 steps to sort 3 names, and Algorithm B takes 20 steps. Which is better? Now imagine you have 1,000 names. Does your answer change? Share your reasoning with a partner.'

Exit Ticket

After Search Challenge, ask students to describe a situation where choosing a slightly slower search algorithm would be acceptable, and another where speed is critical. They should explain their reasoning briefly using examples from the activity.

Extensions & Scaffolding

  • Challenge students to create their own small algorithm for sorting 5 numbers and compare it to the class averages.
  • Scaffolding: Provide a partially completed step count table for students to fill in missing operations.
  • Deeper: Ask students to predict which algorithm will be faster for 20 items based on their 5-item data, then test their hypothesis.

Key Vocabulary

AlgorithmA step-by-step procedure or set of rules for solving a problem or accomplishing a task.
OperationA single, basic action performed by an algorithm, such as a comparison, an assignment, or an arithmetic calculation.
EfficiencyA measure of how well an algorithm uses resources, typically time (number of operations) or space (memory), to solve a problem.
Dataset SizeThe number of items or elements in the input data that an algorithm processes.

Ready to teach Evaluating Algorithm Efficiency (Basic)?

Generate a full mission with everything you need

Generate a Mission