← 3a96552d8c7c · 3ab9aab86992 →
3ab6810fc781
On a zero background, identify the unique strictly largest 4-connected nonzero component, ignoring color, and crop the whole input to that component's bounding box. Preserve the component's colors and any zero concavities; smaller components are decoys outside the crop.
largest-object selectionnonzero object detectionresize via bounding box
Generated by the released generator before publication; every output was computed by its Racket reference rule. White outlines mark the cells the rule changed. Lesson check:
refuted: a demonstration contradicts the rival. survived_all: it fits every demonstration and also gives the intended answer, so it cannot mislead here. ambiguous: it fits every demonstration but answers the query differently. Names are as declared by the generator; a declared shortcut is not guaranteed to fit the original pairs (see the paper’s Limitations).
Original task pairs
From the source task; the reference rule must reproduce them.
Reference rule (Racket)
(rule!
(let* ((regions
(map
(lambda (p)
(connected-region
g
(fst p)
(snd p)
(lambda (rr cc v) (not (= v 0)))
4))
(filter
(lambda (p) (not (= (cell-at g (fst p) (snd p)) 0)))
(grid-positions g))))
(largest
(if (empty? regions)
(list)
(first (sort regions (lambda (a b) (> (length a) (length b))))))))
(if (empty? largest)
(list)
(let ((bb (bbox-of-cells largest)))
(crop g (first bb) (second bb) (third bb) (fourth bb))))))Provenance
- Generator
- generators/3ab6810fc781/generator.py
- Notes and decisions
- generators/3ab6810fc781/notes.md
- Review label
- reviewed_safe
- Generator SHA-256
- 8dde6cc8c3b68023831ae67f78ead264e95c617f5689e0861fbb7f4550e6fc54
- Rule hash
- ce29890d1df1
- Sources
- bank:e352836528da
- Lesson seeds
- 20261108, 20261109, 20261110, 20261111, 20261112
- Reproduce lesson 1
arcpuzzles generate 3ab6810fc781 --count 1 --seed 20261108 --test 1