## Optimizing the brute-force search for an n-queens solution

In this post, we optimize our brute force search for solutions to n-queens problems for a few small boards.

Topic

A collection of 6 issues

In this post, we optimize our brute force search for solutions to n-queens problems for a few small boards.

In this post, we take the brute force and other abstractions we created earlier, to solve the n-queens problem for a relatively small n.

A series of posts on solving problems with simple yet powerful abstractions in Python. We explore a few algorithms.

Earlier, we added a few abstractions to brute-force search. Now, we add yet another abstraction and unlock a wide range of possibilities.

In part 2, we test our initial abstraction with a few additional problems. In the process, we figure out a few more useful abstractions.

Writing simple but powerful abstractions is a necessary skill in software. We start with a simple abstraction that solves a few problems.

Don’t miss out on the latest issues. Sign up now to get access to the library of members-only issues.

jamie@example.com

Subscribe