1. ## n queens problem

i could do it using recursion.
that is my project
i hope i get the required help
but the code should be entirely in c++
thanks
mohan

2. Well...you could just do the work yourself, and then you learn what you're supposed to!!!!

3. Dude I have no idea what you just said.
Wish I could help however, no idea what you are saying.

4. I really wish I could help, but magic 8 ball says “outlook not so good”.

5. n queens problem is my project topic
in this i need to write a program in c++, in such a way that th euser needs to enter the size of the chessboard(say n*n) and the program should arrange n queens on the n*n chessboard in such a way that no two queens can attack each other. the chessboard should be accepted as a double dimensional array and then we need to use stacks to push the correct positions into th estack and then pop the wrong positons ou tof it.
i thought all of u would know the meaning of n queens problem
anyway i hope i receive th required help
bye

6. Define "Required Help," please. Do some research on the problem, derive an algorithm of some sort (I'm not sure why one would use a stack since the "correct" positions depend on what has already been chosen as "correct;" although dynamic programming is certainly a useful way to go about thinking about it). No one will give you the answer to your homework.

If you go around to 18 forums, register and post the problem and some dim whit actually gives you the answer and your teacher fails to catch you in your lie, you'll be punished later on an exam because you'll have no clue how to think critically. Furthermore, if you cheat your way through college, you'll have a hard time finding a decent job since employers will quickly realize your incompetence. I'm willing to help you figure out an algorithm, but there's not a snow flake's chance in hell I'm giving you any code.

Edit: It's pretty simple really, find a way to place queens such that no two share the same diagonal, horizontal or vertical row.

#### Posting Permissions

• You may not post new threads
• You may not post replies
• You may not post attachments
• You may not edit your posts
•