Home / Hands-on activities / Data Structures Unplugged

Coding activity

Data Structures Unplugged

Sort and organize! Practice putting things in order, making lists, and grouping items. These are the building blocks of how computers store information.

Hands OnAbout 25 minutesScreen-freeParent help expected

Materials and setup

How this changes by age

Pre-K (ages 3–4)

Sort and organize! Practice putting things in order, making lists, and grouping items. These are the building blocks of how computers store information.

Difficulty 1 of 3

Steps

  1. Sort a pile of mixed toys by type: cars together, animals together, blocks together.
  2. Put 5 objects in order: from smallest to biggest, shortest to tallest, or lightest to heaviest.
  3. Make a list: draw pictures of 5 things you want to do today. Do them in order - that's a list!
  4. Play matching: lay out 5 cups with a picture taped to each. Under each cup, hide the matching toy.
  5. Talk about it: computers sort and organize information, just like you sorted your toys!
  6. Tell a grown-up one thing that surprised you.

Learning objectives

  • Sort objects by attributes into groups
  • Arrange items in ordered sequences
  • Understand that organizing information is a fundamental concept

Kindergarten (ages 5–6)

Explore how computers organize data through hands-on activities: lists, stacks, and queues using real objects.

Difficulty 2 of 3

Steps

  1. Learn about LISTS: write a grocery list. Each item has a position (1st, 2nd, 3rd). You can add items or remove items.
  2. Learn about STACKS: stack books. You can only add to the top and remove from the top. (Like a stack of plates!)
  3. Learn about QUEUES: line up toys. First in line gets to go first. New toys join at the back. (Like a line at a store!)
  4. Play a game: use a stack of cards. Only look at the top card. To get to a card in the middle, you must remove all cards above it.
  5. Draw pictures showing: a list (numbered items), a stack (pile), and a queue (line).
  6. Tell a grown-up one thing that surprised you.

Learning objectives

  • Understand lists as ordered collections with positions
  • Distinguish between stacks (last in, first out) and queues (first in, first out)
  • Connect data organization to everyday experiences

Early elementary (ages 6–8)

Study data structures through physical activities: arrays, dictionaries/maps, and trees. Understand how computers store and retrieve information efficiently.

Difficulty 2 of 3

Steps

  1. Build an ARRAY: tape 10 numbered cups to a board (index 0-9). Place an object in each cup. Access items by number.
  2. Build a DICTIONARY: create a mini phone book with name-number pairs. Look up a name to find their number instantly.
  3. Build a TREE: draw a family tree or a category tree (Animals > Mammals > Dogs > Poodle).
  4. Search challenge: hide a card in the array. Method 1: check each cup one by one (linear search). Method 2: binary search (if sorted, start in the middle).
  5. Compare: which search method is faster? Count how many cups you checked with each method.
  6. Create a poster showing 3 data structures, how they work, and when each is useful.
  7. In one sentence, tell a parent or sibling what surprised you today.

Learning objectives

  • Understand arrays, dictionaries, and trees as data structures
  • Compare linear search and binary search efficiency
  • Apply data structure concepts to real-world organization problems

Upper elementary (ages 8–10)

Explore advanced data structures: hash tables, graphs, and databases. Analyze how data structure choice affects program performance.

Difficulty 3 of 3

Steps

  1. Study HASH TABLES: create a system where you can look up any student's locker by running their name through a 'hash function' (e.g., first letter = section).
  2. Study GRAPHS: map your neighborhood as a graph with nodes (locations) and edges (paths between them). Find the shortest route between two places.
  3. Design a simple DATABASE: organize information about 10 books into a table with columns (title, author, genre, rating, pages).
  4. Query your database: 'Find all books by genre = fantasy' or 'Sort by rating, highest first.'
  5. Analyze efficiency: compare looking up a phone number in an unsorted list vs. a sorted list vs. a hash table. Which is fastest and why?
  6. Create a presentation: explain 3 data structures, their real-world applications, and when each is the best choice.
  7. In one sentence, tell a parent or sibling what surprised you today.

Learning objectives

  • Understand hash tables, graphs, and databases conceptually
  • Analyze how data structure choice affects search efficiency
  • Apply data structure concepts to solve real-world organization problems

Safety and evidence note

Read the full activity before beginning. An adult should supervise tools, heat, food, outdoor work, movement, and experiments as appropriate. Completion records that the activity was done; the child’s explanation, work sample, photo, or demonstration is stronger evidence of learning than a completion check alone.

Related coding activities

Browse all 575 activities · Explore course syllabi