๐Ÿ”ฅโ€นAct III ยท Systems Online
โœฆ 0 XP
Chapter 1 / 6

Downsample the array

New here? Read the 60-sec briefing โ†—

The sensor feed is too dense to process at full rate. Pool each pair of readings down to the stronger one, halving the data while keeping the signal.

Pooling is a windowed reduce. Max-pooling halves resolution while keeping the strongest activation, the exact downsampling step inside a CNN.

YOUR TASK
  1. 1Each core owns one output cell covering inputs 2*i and 2*i + 1.
  2. 2Write the larger of the pair into out[i].
๐Ÿ’ก Keep the strongest of each window: out[i] = max(inp[2*i], inp[2*i + 1]).
core_11_pooling.mojo
PUZZLE 11 ยท POOLING
Clear all 6 chapters to forge๐Ÿ“ก Systems Core Shard