One perceptron step is exact integer arithmetic. This lesson writes the update rule and checks the first pass through the fixed order.
The update rule
For a row with label y, compute a=w*x+b. If y*a<=0, update w<-w+y*x and b<-b+y.
ya≤0⇒w←w+yx, b←b+y
Why the first update fires
Start at w=(0,0), b=0. Row 0 has activation 0, so y*a=0 and the update gives w=(1,0), b=1.
(1)⋅0=0⇒w=(1,0),b=1
Summary
The arithmetic is integer addition. A changed activation, update flag, or new state is rejected by the run-table validator.
exact integer update