Simulation of algorithms