Abstract

In this paper the research work has done comparative analysis of one of the famous NP hard problem: NQueen using traditional Backtraking and Genetic Algorithm(GA). The research work has implemented the solution of the NQueen problem using backtracking and using GA. Both the methods of solving NQueen problem are entirely different. The first one is general method and takes time in days , months and years as N increases. In this paper the time taken by the two methods for a given value of N are compared. The work has restricted values of N upto 50 only as beyond this it is extremely difficult to get the solution of the problem using backtracking method. Both the implementation have been carried out in MATLAB using Pentium Core 2 Duo T6600 Core 2.2 GHz processor on Windows 8 with 4GB RAM. Because of the random nature of GA instead of time taken in obtaining all possible solutions for a given value of N, the time taken in obtaining say count number of solutions was first determined using GA, then time taken in same number of solutions that is count using backtracking was noted. Results are then presented in tabular manner. General Terms Backtracking, collisions, NP, problem

Full Text
Paper version not known

Talk to us

Join us for a 30 min session where you can share your feedback and ask us any queries you have

Schedule a call

Disclaimer: All third-party content on this website/platform is and will remain the property of their respective owners and is provided on "as is" basis without any warranties, express or implied. Use of third-party content does not indicate any affiliation, sponsorship with or endorsement by them. Any references to third-party content is to identify the corresponding services and shall be considered fair use under The CopyrightLaw.