Skip the menu
Spark & Anvil Privacy

SortWalkPals

Twelve chalk boxes sort any six toys. Will these two swap?

Where this idea comes from

Sorting networks

A sorting network is a set of lines with swap boxes between them. Each box looks at two numbers and swaps them if they are in the wrong order.

One thing to hold: Lines and boxes drawn on paper and some number cards: push the cards along the lines. At each box, swap the two cards if the bigger one is first.

Why it matters: The steps are set in advance and never change, whatever order the numbers start in. That makes them useful when many steps run at the same time. In 1968 a scientist named Batcher suggested using them in computer hardware.

What we don’t know: Finding the network with the fewest boxes is a puzzle. For 9 and 10 inputs it took until 2014. For 11 and 12 it took until 2020. For more than 12, nobody knows yet.

Dates:

  1. 1968 Batcher suggests sorting networks for computer hardware.
  2. 2014 The fewest-box networks for 9 and 10 inputs are proven.

Sources: Wikipedia, “Sorting network”

Meet the cast — the characters who teach this

  • Chalky draws six lanes and twelve boxes that sort any order
  • Swapple A rabbit in a chalk box - when two meet the wrong way round, they swap
  • Lanelle A duck who keeps to her lane - you only move when a box tells you to
  • Smallfoot A mouse who steps up - in a box, the smaller one always goes to the upper lane

What next? Pick a door

Chosen from what this app is about. What you open is remembered on this device only.