Exploring Depth First Search
In my last blog post we developed an MCP server which could solve the Number Round segments from the popular UK gameshow Countdown . The implementation used an uninformed search algorithm called Breadth First Search. During that implementation, I mentioned that while breadth first search will find the optimal solution, it does so at a potentially significant cost. In search spaces where there are many possible next states from an initial state the breadth first search algorithm will fully expand each level of the search space. Using a number round example of 1, 4, 4, 5, 6, 50 and a target of 350 let’s explore how big a problem this could be. ...