The algorithm the Antikythera mechanism is built into the gears and the design of the mechanism.
Precisely! It can’t be changed to do another job.