How I Won the APL Problem Solving Competition
summary
Winner uses Dyalog APL to solve three sections: math/combinatorics, engineering vision, and biological simulations. A 42-character line generates eight rotations/reflections to canonicalize polyominoes, a find connected parts breadth‑first trick via four directional shifts labels components, and a tiny recursive generator builds all n‑ominoes; the polyomino solution is second fastest in the contest. Vision code computes center‑of‑gravity projections and detects ducks by enclosed “eye” holes, and ecology work simulates birth/death/migration on a grid; most solutions run in under 15 lines and execute correctly.
AI-written summary · about
chapters (36)
- 0:00Intro
- 0:56About me
- 3:11More APL
- 4:10Powerful Script!
- 5:14Array-oriented thinking
- 5:57Polyominoes
- 7:23Rotate? Reflect?
- 8:36Regularize
- 10:47Valid Poly
- 12:16Find ConnectedParts
- 13:08BFSOneStep
- 14:12Generate N-ominoes
- 15:18Add One Block
- 19:54Math/CS section cleared!
- 22:14Dimension
- 23:23Is that enough?
- 24:08The Duck Test
- 25:30Find center of gravity
- 26:26Optical Illustration
- 28:43Locate
- 30:20Min Max
- 30:48Ducks and balls
- 33:57Find Ducks
- 35:29Broadcasting & Overloading
- 36:17Predator and Prey simulation
- 39:28Outcome Type
- 40:51Bunnies and Foxes on an island
- 41:37Around
- 43:00Density
- 43:10Live
- 44:35Procreate
- 45:03Migrate
- 46:14Random Pick
- 47:44BunnyFox
- 47:58Bio section cleared!
- 49:59Nice experience!
