How can i go about implemting 8/4 queens problem?Should i use DFS/BFS,I think DFs will be better.
Can any one give some pseudocode/guidlines?
How can i go about implemting 8/4 queens problem?Should i use DFS/BFS,I think DFs
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Use a stack and backtracking, easiest way is via recursion.
See these other SO posts:
Dumb 8 Queens problem in C++