Search Techniques
摘要:
Sample Problem: n Queens [Traditional]Place n queens on an n x nchess board so that no queen is attacked by another queen.Depth First Search (DFS)The most obvious solution to code is to add queens recursively to the board one by one, trying all possible queen placements. It is easy to exploit the fa 阅读全文