Skip to content
このページの詳細ガイドは現在英語で提供されています。 このページを英語で読む

Open Curriculum Library › Computer Science: Grades K–2 › Sort and search

Data and systems 20 min

Sort and search

A 20-minute Computer Science lesson on Sort and search for Grades K–2 in the unit Data and systems.

Chapter opening

This lesson is part of Data and systems. The chapter question is: How can we make the ideas in Data and systems clear enough for a machine and a person? Keep it in mind as you work; by the end you should be able to answer it with an example of your own.

Why this matters

In this unit (Data and systems), Computing is problem solving made repeatable. the chapter on Data and systems shows how a clear sequence of steps becomes something a machine can run.

Make it real

A small program, spreadsheet or website is not doing what someone expected. Sort and search is the part of the system you can inspect and change.

What you will learn

  • Say what Sort and search means and give one example of your own.

  • Use Sort and search in a short task and show your method.

  • Notice one mistake and correct it.

Subject lens

Programmers ask: what is the input, what is the output, and where could the sequence fail? For Sort and search, write the steps in plain language before code.

Warm-up (5 minutes)

Begin with a quick recap with counters, cards or a picture. Ask two learners to say what they notice before anyone writes anything. Concrete, playful and heavily modelled is the aim here: the first minute should feel easy enough to join.

Teach (6 minutes)

Name the idea: Sort and search. Give one clear example, then a second that is almost the same so the pattern is visible. Write the steps in plain language first, test them with a partner, then translate them into code or a block model.

Vocabulary in action

Use these words in your notebook: input, output, sequence, loop, test. Write one sentence that uses two of them, then underline the part that makes the sentence precise.

Studio, lab or field work

Write the steps in plain language, trace one input by hand, break one line on purpose, then fix only that line.

Worked example

Write the steps for Sort and search as a numbered list. Trace it with a partner, find one place it could fail, then fix only that step.

Guided practice

  1. Do one example together, narrating each step.

  2. Do one example with a partner, then compare answers and methods.

  3. Choose the method you would use again and say why.

Independent practice

Complete two or three short tasks. With the model on the board is expected; the point is a method that can be explained, not speed.

Talk about it

Where could this fail, and how would you find out before a user does? Where could your sequence fail, and how would you find out? Take one minute to think, one minute to talk, then one sentence to write.

Common misconception

Thinking Sort and search is only one fixed procedure. Ask for a second method and compare where the two agree.

Check for understanding

  • Can you explain Sort and search without reading your notes?

  • Can you show one place where it would be easy to slip?

  • Can you connect it to something you already know?

Retrieval practice

  1. Say what Sort and search means without looking at your notes.

  2. Give one example and one non-example.

  3. Name one mistake someone could make and how to catch it.

Self-check

  • [ ] I can explain Sort and search in my own words.

  • [ ] I can use Sort and search in a new example.

  • [ ] I can find and fix one mistake in my work.

Connection

Ask someone at home to try Sort and search with you using everyday objects, then tell them one thing you noticed.

Going further

Try the same idea with a harder example, or teach it to someone younger using objects instead of symbols.

Keep the whole course

Plan with this lesson in Brightfolk.

Start free, add the course to a learner's plan and keep the source and licence attached.