Optimal comparison strategies in Ulam's searching game with two errors