Interface for search algorithms