Skip to content

villirion/nQueen

Repository files navigation

nQueen

nQueen python and C algorithm

nQueenPerm.py 14.7 sec for 10 queens solving the problem with simple permutations in python

nQueenPermNonConsecutive.c 0.47 sec for 10 queens solving the problem with permutations without consecutive number in C

nQueenBacktracking.py 0.44 sec for 10 queens solving the problem with backtracking in python

nQueenBacktracking.c 0.03 sec for 10 queens

nQueenBin.py is a translation of the 4th C code on rosettacode 0.03 sec for 10 queens without printing the solutions https://rosettacode.org/wiki/N-queens_problem#C

nQueenOneSol.py create one solution for every n

About

nQueen python and C algorithm

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published