Repeatedly querying an algorithm and examining its output