formatted search algorithms