Re: algorithm != algebra
When you write any sort of function, its form is basically algebraic, even if it's just a bunch of statements and operators.
However, it's arguable that programming is not a bad introduction to algebra, but I wouldn't really expect anyone under 12 to be actually hand-coding (unless by choice).