← All problems

2026 · open round · E · 15 points

A Typical Problem

Kyle Zhang & Nina Stadermann · writing systems · formal and computational

When you recognise an image as a snail, that quick judgment comes from a lot of behind-the-scenes processing: a rounded shell, two eyes poking out, an outstretched body. In machine learning these cues are called features — aspects of data that a system uses to decide on a label.

NACLOLabs wants an algorithm that takes an image and decides which of eight animals it is. The algorithm asks three questions as its features: is it underwater?, does it have legs?, and does it have a shell? It then looks up the row of the table matching those answers and produces the “output” column. If the answer to all three is no (written N), it says the image contains a snake. But NACLOLabs left some gaps in the table.

Eight labelled line drawings: snail, clam, lizard, hermit crab, eel, axolotl, snake, tortoise. A wavy line above an animal indicates it is underwater.
(a)(b)(c)Output
NNNsnake
NNYsnail
NY(1)clam
N(2)(3)eel
Y(4)(5)lizard
Y(6)Naxolotl
YNYtortoise
YYYhermit crab

One way NACLOLabs can improve its algorithm is to use the same feature for several regions of an image, so that it outputs multiple values for each feature.

Optical character recognition works this way. NACLOLabs uses a basic font where every capital letter sits on a grid of thirty-six pixels. For each feature, the algorithm considers nine regions of this grid and outputs a sequence of yes and no answers.

A table with columns Input, Feature 1, Feature 2, Feature 3, Feature 4 and Output. Each Input cell shows a six-by-six pixel grid forming a capital letter. Shaded cells need not be filled in. Gaps are numbered 7 to 12.
TimerOptional. Set whatever limit suits you.

Questions

0 of 19 correct
E1

Match each of (a), (b) and (c) to its feature.

(a)
(b)
(c)
E2

Fill in gaps (1)–(6) so that the algorithm works on all eight images.

(1)
(2)
(3)
(4)
(5)
(6)
E3

NACLOLabs runs the animal-labelling algorithm on an additional input and gets an unexpected result. Which animal does the algorithm output for the image shown?

A small shelled creature with legs, underwater.
E4

Fill in gaps (7)–(12) in the feature table. You do not have to fill in the shaded cells.

(7)
(8)
(9)
(10)
(11)
(12)
E5

The letter-labelling algorithm is run on two additional inputs, shown above, and gives unexpected results. Which letter does it output for each?

First input
Second input
E6

Sometimes the algorithm has two possible answers for a given input. Which two letters does it output for the input shown? Enter them in either order, separated by a space.

Two letters

Explanation

Try the questions first. Use the Hint button next to any part if you need a nudge.

Reading the explanation costs no XP. Worth 15 points in the real exam.