Posts Tagged ‘artificial intelligence’

8-queens problem hill climbing python implementation

Saturday, October 31st, 2009 by webstersprodigy

This program is a hillclimbing program solution to the 8 queens problem. The algorithm is silly in some places, but suits the purposes for this assignment I think. It was tested with python 2.6.1 with psyco installed. If big runs are being tried, having psyco may be important to maintain sanity, since it will speed things up significanlty. Otherwise, you may want to stick to –numrun being less than around 50.


No computers were harmed in the 0.163 seconds it took to produce this page.