# Algorithms & Efficiency > Tenth graders learn that some algorithms are far more efficient than others — comparing a slow linear search to a fast binary search — and why efficiency… **Computer Science** | **Grade 10** *A free lesson plan from K12 Academics. Source page: https://lessonplans.k12academics.com/k12-lesson-g10-cs-algorithms-efficiency.html* Tenth graders learn that some algorithms are far more efficient than others — comparing a slow linear search to a fast binary search — and why efficiency matters as data grows to millions of items. **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… - Compare **algorithms**. - Explain **binary search**. - Order the search **steps**. - Value efficiency. To find a name in a phone book, you don’t check every page — you jump to the middle and narrow down. That’s a faster algorithm! Why does the efficiency of an algorithm matter so much? ## Order the Binary Search Project this and have students put the steps of a binary search in order — the fast way to find a value in a sorted list. ## 50 minutes, five moves Tap any phase to open the teacher moves and student actions. ### Hook — The Phone Book Trick You don’t check every page to find a name — you narrow down. Why is that faster? #### 👩‍🏫 Teacher Moves - Pose the search problem. - Contrast slow vs. fast. - Set the goal. #### 🎒 Student Actions - Consider. - Compare. - Predict. ### Unplugged — Unplug It Students practice. #### 👩‍🏫 Teacher Moves - Do a linear search by hand. - Do a binary search by hand. - Count the steps. #### 🎒 Student Actions - Search it. - Halve it. - Count steps. ### Use — Order the Search Students use. #### 👩‍🏫 Teacher Moves - Send students to Order the Binary Search. - Order the steps. - Note efficiency. #### 🎒 Student Actions - Order. - Note it. - Explain. ### Modify — Compare It Students modify. #### 👩‍🏫 Teacher Moves - Compare steps for a big list. - Explain why binary wins. - Note the sorted requirement. #### 🎒 Student Actions - Compare. - Explain. - Note it. ### Create — Create Students conclude. #### 👩‍🏫 Teacher Moves - Describe an efficient algorithm. - Explain efficiency. - Complete the exit ticket. #### 🎒 Student Actions - Describe it. - Explain it. - Complete the exit ticket. ## Built to the standards you report on Aligned to the CSTA K-12 Computer Science Standards and ISTE Standards for Students. Evaluate algorithms for correctness and efficiency. Use algorithms to solve problems. Create programs that implement algorithms. Computational Thinker. ## One lesson, every learner ### Multilingual Learners - Search-step cards. - Sentence frame: “First ___, then ___.” - Search with number cards. ### Support & Access - Start with linear search. - Use a small sorted list. - Order two at a time. ### Stretch & Extend - Compare search step counts. - Explain Big-O informally. - Compare sorting algorithms. ### What to gather - 📽️Projector / board - 🔢Sorted number cards - 💻Order the Binary Search - 📋Step handouts - ✏️Pens - 🎫Exit-ticket slips ### Key terms - **algorithm**: a step-by-step problem-solving method - **efficiency**: how few steps/resources an algorithm needs - **linear search**: checking items one by one - **binary search**: halving a sorted list each step - **sorted**: arranged in order - **input size**: how much data there is - **optimize**: to make more efficient - **trade-off**: a balance between costs and benefits ## Exit Ticket Preview the three formative checks. Tap “Sample answer” to see what mastery looks like — hide them before you print for students. ### Create: an efficient approach. Have students describe a real search task and explain whether a linear or binary approach would be more efficient. A printable algorithms sheet is in the Computer Science library. ## Check your understanding **1. What does “algorithm” mean?** - a step-by-step problem-solving method *(correct)* - arranged in order - halving a sorted list each step - how few steps/resources an algorithm needs “algorithm” means: a step-by-step problem-solving method **2. Which word means: “how few steps/resources an algorithm needs”?** - trade-off - binary search - linear search - efficiency *(correct)* “efficiency” means: how few steps/resources an algorithm needs **3. What does “linear search” mean?** - to make more efficient - how much data there is - checking items one by one *(correct)* - how few steps/resources an algorithm needs “linear search” means: checking items one by one **4. Which word means: “halving a sorted list each step”?** - input size - binary search *(correct)* - trade-off - sorted “binary search” means: halving a sorted list each step **5. What does “sorted” mean?** - how much data there is - to make more efficient - a balance between costs and benefits - arranged in order *(correct)* “sorted” means: arranged in order **6. Which word means: “how much data there is”?** - efficiency - input size *(correct)* - optimize - linear search “input size” means: how much data there is ## Printable worksheet --- Full lesson page: https://lessonplans.k12academics.com/k12-lesson-g10-cs-algorithms-efficiency.html All lessons: https://lessonplans.k12academics.com/