🛠️ Projects · Grades 4–5

Algorithm Adventures: Think Like a Programmer

Sort, search, find the shortest path, count the ways — and build your own games!.

A free projects workbook for kids, ages 9–13 (Grades 4–5): 198 pages to do right on the screen (write, circle, join, draw and color, then check the answers) or to print. Every page is free for everyone, with no sign-up.

Algorithm Adventures: Think Like a Programmer: the cover

🏆 Your certificate

🏆 Your certificate is waiting!Finish every page of this book (all lessons and tasks) to unlock it.
0 of 198 pages done · 198 to go · Keep going →

📚 Similar books

SortingStacksBFSDijkstraDynamic programmingSegment treesGame physics

What is inside

Think Like a Programmer · 18 pages

  1. Meet Robo
  2. Steps in the Right Order
  3. Pseudocode
  4. Variables Are Boxes
  5. Loops: Do It Again
  6. Decisions: IF and ELSE
  7. Lists and Positions
  8. Find the Tallest
  9. Find the Biggest: The Plan
  10. Best So Far
  11. Counting
  12. Linear Search
  13. Binary Search
  14. Binary Search: The Plan
  15. Halving Is Fast
  16. Real Code
  17. Find the Bug
  18. Chapter 1 Challenge

Sorting by Swapping · 18 pages

  1. The Messy Line
  2. Why Sort?
  3. Bubble Sort: The Idea
  4. Bubble Sort: The Plan
  5. Run It: One Pass
  6. Your Turn: Pass 1
  7. Sort It All
  8. Lucky and Unlucky Lists
  9. Selection Sort: The Idea
  10. Selection Sort: The Plan
  11. Run It: Selection Sort
  12. Your Turn: Selection Sort
  13. ABC Order
  14. Biggest First
  15. Bubble or Selection?
  16. Sorting Detective
  17. Real Code: Bubble Sort
  18. Chapter 2 Challenge

Clever Sorting and Counting · 18 pages

  1. Cards in Your Hand
  2. Insertion Sort: The Plan
  3. Run It: Insertion Sort
  4. Your Turn: Insertion Sort
  5. Count the Moves
  6. The Quiz Scores
  7. Counting Sort: The Plan
  8. Run It: Count, Then Write
  9. Your Turn: Counting Sort
  10. Sort the Letters
  11. Count and Write
  12. Anagram Detective
  13. Two Lines Become One
  14. Merge: Run It
  15. Your Turn: Merge
  16. Merge Sort: Split and Merge
  17. The Speed Race
  18. Chapter 3 Challenge

Stacks: Brackets in Order · 18 pages

  1. A Stack of Plates
  2. Push and Pop
  3. Brackets That Match
  4. The Smart Idea
  5. The Plan
  6. Run It the Kid Way
  7. Run It: Two Wrong Ones
  8. Your Turn: Stack Heights
  9. Right or Not?
  10. Where Does It Go Wrong?
  11. Which Bracket Is Missing?
  12. Mixed Up: ([)]
  13. The Undo Button
  14. Reverse a Word
  15. How Deep Does It Go?
  16. Fix-It Puzzles
  17. Real Code
  18. Chapter 4 Challenge

BFS: Can I Get There? · 18 pages

  1. Can Mina Get There?
  2. Dots and Lines
  3. Two Islands
  4. Locked Doors
  5. Ripples in a Pond
  6. Wait in Line!
  7. BFS: The Plan
  8. Run It: Watch the Queue
  9. Your Turn: Wave Numbers
  10. Reachable or Not?
  11. BFS on a Grid
  12. Your Turn: Robo's Steps
  13. Walk Back from the Goal
  14. Walls and Dead Ends
  15. No Way Through?
  16. Real Code: BFS
  17. Fire! Two Starts
  18. Chapter 5 Challenge

Dijkstra: The Shortest Road · 18 pages

  1. Mina's Bike Ride
  2. Numbers on the Roads
  3. Counting Is Not Enough
  4. Finish the Closest Town
  5. Dijkstra: The Plan
  6. Run It: Round by Round
  7. Distances on the Map
  8. Your Turn: Every Distance
  9. Follow "Came From"
  10. Two Routes
  11. One-Way Streets
  12. Your Turn: One-Way Map
  13. Bus Travel Times
  14. Delivery Robot
  15. Real Code: Dijkstra
  16. Road Closed!
  17. The Second Best Road
  18. Chapter 6 Challenge

DP: Count the Ways · 18 pages

  1. Robo Climbs the Stairs
  2. Count by Hand
  3. Too Many to Count
  4. The Last Hop
  5. The Memory Table
  6. Stairs: The Plan
  7. Run It: Fill the Row
  8. Your Turn: Fill the Row
  9. Hops of 1, 2 or 3
  10. Paths to School
  11. Grid Paths: The Plan
  12. Your Turn: Fill the Grid
  13. Puddles!
  14. Coin Combinations
  15. Coins: The Plan
  16. Domino Tiles
  17. Next Level Puzzles
  18. Chapter 7 Challenge

DP: Make the Best Choice · 18 pages

  1. The Fewest Coins
  2. Biggest First Can Fail
  3. The Smart Idea: Best Table
  4. Fewest Coins: The Plan
  5. Your Turn: Fewest Coins
  6. The Treasure Cave
  7. Treasure: The Plan
  8. Your Turn: Treasure Cave
  9. Follow the Arrows Back
  10. Pack the Backpack
  11. Backpack: Take It or Leave It
  12. Run It: The Backpack Table
  13. Your Turn: Add the Trophy
  14. No Two Neighbours
  15. Neighbours: Plan and Run
  16. Your Turn: Pick the Trees
  17. The Cheapest Way Up
  18. Chapter 8 Challenge

Segment Trees: Fast Range Sums · 18 pages

  1. Many Questions
  2. The Slow Way
  3. Running Totals
  4. Fill the Running Totals
  5. One Number Changes
  6. A Tree of Sums
  7. Build: The Plan
  8. Build It Yourself
  9. Ask with Whole Boxes
  10. Ask: The Plan
  11. Pick the Boxes
  12. Change One Number
  13. Change: The Plan
  14. Fix the Tree
  15. Why Is It Fast?
  16. Real Code
  17. Biggest in a Range
  18. Chapter 9 Challenge

Game Lab: Move, Speed and Gravity · 18 pages

  1. What Is a Game?
  2. The Game Screen
  3. The Game Loop
  4. The Game Loop: The Plan
  5. Moving with Speed
  6. Run It: Frame by Frame
  7. Keys Change the Speed
  8. Stop at the Edge
  9. Wrap Around
  10. Moving Diagonally
  11. Gravity: Falling Faster
  12. Gravity: Frame by Frame
  13. Real Code: A Falling Ball
  14. Jumping
  15. Bouncing
  16. Friction: Slowing Down
  17. Mini Project: Ball Game
  18. Chapter 10 Challenge

Game Lab: Rocket Battle · 18 pages

  1. Rocket Battle!
  2. Design the Game
  3. Move the Rocket
  4. Fire Bullets: A List
  5. Run It: Bullets
  6. Circle Targets
  7. Hit or Miss?
  8. The Bullseye
  9. Two Circles Touch
  10. Rocket vs. Aliens
  11. Aliens on the March
  12. Score, Lives, Game Over
  13. Levels Get Faster
  14. The Whole Game, Part 1
  15. The Whole Game, Part 2
  16. Find the Game Bug
  17. Chapter 11 Challenge
  18. Algorithm Adventurer
✏️ Do it on screenType answers, circle, join, draw and color with a finger, mouse or pencil.
✅ Check the answersEvery page checks itself and has an answer key for grown-ups.
🖨️ Print any pagePrint the whole book or a few pages, with or without answers.

More books like this