0/1 knapsack / Squeak 6.1 build 23976 / verified 2026-10-29

Open ONE checkpoint-N.st file as TEXT, select the whole expression and Print it.
No fileIn or previous checkpoint is needed. knapsack.st is a collection of those
same expressions: select one checkpoint, never the entire collection.

Open knapsack-tests.st as TEXT and Print it as one expression: expected 22985.
This runs the eight exact checkpoints, 5740 exhaustive tiny problems with four
checks per problem, ten invalid-input checks and seven focused checks.
The independent subset oracle examines 43225 subsets across the finite grid.

Open knapsack-visual.st as TEXT and Do it as one expression. Change stage 0..8;
close the old window first. It draws a fixed 1100x700 native Morphic window.
Stages 0..4 reveal computed rows; 4..8 trace the computed selected-item path.
No timer, package, network request or persistent data file is used.
The website GIF replays nine real native captures, not mouse footage.

Contract: equal-length Arrays of nonnegative integer weights/values, nonnegative
integer capacity. Zero-weight items allowed once each. Skip later items on ties.
Return best value, ascending chosen indexes and a fresh mutable complete table.
Reject noninteger/negative numeric inputs, other containers and more than one
million table entries. This simple ceiling is not a responsiveness guarantee.

verification.txt is the native observed report. source-sha256.json records the
bytes of the tested Smalltalk sources. The image was disposable and not saved.
Algorithm reference (reviewed 2026-10-29):
https://ocw.mit.edu/courses/6-006-introduction-to-algorithms-fall-2011/95e744ee64464cb6bc8f8264faeea080_MIT6_006F11_rec21.pdf
