# Searching & Sorting > Eleventh graders learn how computers find data fast with binary search — repeatedly halving a sorted list — a classic efficient algorithm that beats checking… **Computer Science** | **Grade 11** *A free lesson plan from K12 Academics. Source page: https://lessonplans.k12academics.com/k12-lesson-g11-cs-searching-sorting.html* Eleventh graders learn how computers find data fast with binary search — repeatedly halving a sorted list — a classic efficient algorithm that beats checking every item one by one. **Copy link** works with Canvas, Schoology, Moodle and any other LMS — paste it in as a resource or assignment. ## Everything you need before the bell rings ### Learning Objectives Students will be able to… - Explain **binary search**. - See why **sorting** helps. - Order the **steps**. - Search efficiently. How does a computer find one name among a million, in an instant? A clever algorithm: binary search. How does it work? ## Order the Binary Search Steps Project this and have students put the binary search steps in order. ## 55 minutes, five moves Tap any phase to open the teacher moves and student actions. ### Hook — Find One in a Million How does a computer find one name in a million instantly? Binary search! #### 👩‍🏫 Teacher Moves - Play a number-guessing game. - Ask the best strategy. - Set up. #### 🎒 Student Actions - Play. - Strategize. - Get ready. ### Unplugged — Unplug It Students practice. #### 👩‍🏫 Teacher Moves - Guess a number 1–100. - Always guess the middle. - Count the steps. #### 🎒 Student Actions - Guess. - Halve it. - Count. ### Use — Order the Steps Students use. #### 👩‍🏫 Teacher Moves - Send students to Order the Binary Search Steps. - Order them. - Note the sorted list. #### 🎒 Student Actions - Order. - Note it. - Explain. ### Modify — Modify Students modify. #### 👩‍🏫 Teacher Moves - Trace a search on a list. - Count the comparisons. - Compare to linear search. #### 🎒 Student Actions - Trace it. - Count. - Compare. ### Create — Create Students create. #### 👩‍🏫 Teacher Moves - Describe binary search in code. - Explain its speed. - Complete the exit ticket. #### 🎒 Student Actions - Describe. - Explain. - Complete the exit ticket. ## Built to the standards you report on Aligned to the CSTA K-12 Computer Science Standards (Level 3) and ISTE Standards. Analyze searching and sorting. Evaluate algorithm efficiency. Design algorithms. Computational Thinker. ## One lesson, every learner ### Multilingual Learners - Binary-search step cards. - Sentence frame: “First ___, then ___.” - Play the guessing game. ### Support & Access - Start with the guessing game. - Order two at a time. - Use a small list. ### Stretch & Extend - Compare to linear search. - Explain Big-O. - Trace a sort algorithm. ### What to gather - 📽️Projector / board - 🔢A number line - 💻Order the Binary Search Steps - 📄A sorted list - ✏️Pens - 🎫Exit-ticket slips ### Key terms - **binary search**: halving a sorted list to find data - **linear search**: checking each item in order - **sorted**: in order - **algorithm**: a step-by-step method - **efficiency**: doing it with less work - **comparison**: checking two values - **index**: an item’s position - **sort**: to put in order ## Exit Ticket Preview the three formative checks. Tap “Sample answer” to see what mastery looks like — hide them before you print for students. ### Create: search smart. Have students play a number-guessing game using binary search (always guess the middle). A printable search sheet is in the Computer Science library. ## Check your understanding **1. What does “binary search” mean?** - halving a sorted list to find data *(correct)* - a step-by-step method - checking two values - doing it with less work “binary search” means: halving a sorted list to find data **2. Which word means: “checking each item in order”?** - sort - linear search *(correct)* - sorted - efficiency “linear search” means: checking each item in order **3. What does “sorted” mean?** - to put in order - in order *(correct)* - checking each item in order - halving a sorted list to find data “sorted” means: in order **4. Which word means: “a step-by-step method”?** - efficiency - sort - sorted - algorithm *(correct)* “algorithm” means: a step-by-step method **5. What does “efficiency” mean?** - checking two values - checking each item in order - a step-by-step method - doing it with less work *(correct)* “efficiency” means: doing it with less work **6. Which word means: “checking two values”?** - efficiency - sorted - comparison *(correct)* - index “comparison” means: checking two values ## Printable worksheet --- Full lesson page: https://lessonplans.k12academics.com/k12-lesson-g11-cs-searching-sorting.html All lessons: https://lessonplans.k12academics.com/