# Common Algorithms > Ninth graders build algorithms knowledge by learning the common algorithms that power software - linear and binary search, a basic sort, and finding max and sum - and match each to what it does. **Computer Science** | **Grade 9** *A free lesson plan from K12 Academics. Source page: https://lessonplans.k12academics.com/k12-lesson-g9-cs-common-algorithms.html* Ninth graders learn the everyday algorithms behind software, from linear and binary search to sorting and finding a maximum, and match each algorithm to what it does. **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… - Name common **algorithms**. - Link each to its **job**. - Tell search from **sort**. - Match each pair. The same problems come up again and again in code. What are the common algorithms that solve them, and how do you pick the right one? ## Match the Algorithm Project this and match each algorithm to what it does — tap an algorithm, then tap its job. ## 50 minutes, five moves Tap any phase to open the teacher moves and student actions. ### Hook — Same Problems, Solved Searching a list and sorting it come up again and again. Rather than reinvent them, coders reuse proven algorithms. Which ones? #### 👩‍🏫 Teacher Moves - Ask how to find a name in a list. - List approaches. - Set the goal. #### 🎒 Student Actions - Think. - Share. - Get ready. ### Use — Match the Algorithm Students match each algorithm to its job. #### 👩‍🏫 Teacher Moves - Send students to Match the Algorithm. - Match each pair. - Note the job. #### 🎒 Student Actions - Match. - Say. - Note it. ### Modify — Trace It Students trace an algorithm by hand. #### 👩‍🏫 Teacher Moves - Pick an algorithm. - Run it on a small list. - Record each step. #### 🎒 Student Actions - Pick. - Run. - Record. ### Create — Pick the Right One Students choose algorithms for tasks. #### 👩‍🏫 Teacher Moves - List three tasks. - Choose an algorithm for each. - Say why it fits. #### 🎒 Student Actions - List. - Choose. - Say. ### Reflect — Reuse What Works Students reflect on choosing algorithms. #### 👩‍🏫 Teacher Moves - How is binary search different from linear search? - Why reuse known algorithms? - Complete the exit ticket. #### 🎒 Student Actions - Say it. - Say 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. Use common algorithms to solve problems. Compare algorithms for the same task. Trace and explain how an algorithm works. Select and apply algorithms to computing problems. ## One lesson, every learner ### Multilingual Learners - Algorithm + job cards. - Sentence frame: “___ is used to ___ .” - Match one pair at a time. ### Support & Access - Start with linear search. - Trace each on a tiny list. - Match one algorithm fully before the next. ### Stretch & Extend - Compare search/sort efficiency. - Trace binary search step by step. - Code one algorithm from scratch. ### What to gather - 📽️Projector / board - 🖼️Algorithm + job cards - 💻Match the Algorithm - 🧮Sample lists to trace - ✏️Pencils - 🎫Exit-ticket slips ### Key terms - **algorithm**: a step-by-step set of instructions to solve a problem - **linear search**: checking each item in order to find a target - **binary search**: halving a sorted list each step to find a target - **sorting**: arranging items into order - **maximum**: the largest value in a set - **efficiency**: how much work an algorithm takes - **input**: the data an algorithm works on - **trace**: to follow an algorithm step by step ## Exit Ticket Preview the three formative checks. Tap “Sample answer” to see what mastery looks like — hide them before you print for students. ### Create: pick the right one. Have students list three tasks, choose a fitting algorithm for each, and explain why it fits, so choosing an algorithm becomes a deliberate step. A printable algorithms worksheet is in the Computer Science library. ## Check your understanding **1. What does “algorithm” mean?** - a step-by-step set of instructions to solve a problem *(correct)* - checking each item in order to find a target - halving a sorted list each step to find a target - arranging items into order “algorithm” means: a step-by-step set of instructions to solve a problem **2. Which word means: “checking each item in order to find a target”?** - algorithm - linear search *(correct)* - binary search - sorting “linear search” means: checking each item in order to find a target **3. What does “binary search” mean?** - a step-by-step set of instructions to solve a problem - checking each item in order to find a target - halving a sorted list each step to find a target *(correct)* - arranging items into order “binary search” means: halving a sorted list each step to find a target **4. Which word means: “arranging items into order”?** - algorithm - linear search - binary search - sorting *(correct)* “sorting” means: arranging items into order **5. What does “maximum” mean?** - the largest value in a set *(correct)* - a step-by-step set of instructions to solve a problem - checking each item in order to find a target - halving a sorted list each step to find a target “maximum” means: the largest value in a set **6. Which word means: “how much work an algorithm takes”?** - algorithm - efficiency *(correct)* - linear search - binary search “efficiency” means: how much work an algorithm takes ## Printable worksheet --- Full lesson page: https://lessonplans.k12academics.com/k12-lesson-g9-cs-common-algorithms.html All lessons: https://lessonplans.k12academics.com/