The oracle Algorithm (this is a small 'o')