cancel
Showing results for 
Search instead for 
Did you mean: 

N Queens (Backtracking)

ouadji
Trusted Enthusiast

N Queens (Backtracking)

Message contains an image Message contains an attachment

 

My solution to the N Queens Problem (with Backtracking)

 

(N_QUEENS_MAIN.vi)

 

 

Snippet_N_Queens.png

 

8 REPLIES 8
ThiCop
NI Employee (retired)

Re: N Queens (Backtracking)

Hello ouadji,

 

Is there something we can help/assist you with?

Or did you just felt like sharing the code? Smiley Happy

Is it related to a coding challenge that I'm not aware of?

Kind Regards,
Thierry C - CLA, CTA - Senior R&D Engineer (Former Support Engineer) - National Instruments
If someone helped you, let them know. Mark as solved and/or give a kudo. Smiley Wink
Highlighted
ouadji
Trusted Enthusiast

Re: N Queens (Backtracking)

Is there something we can help/assist you with?

no, thank you.

 

Or did you just felt like sharing the code?

yes, just to show what I did. Smiley Happy

 

Is it related to a coding challenge that I'm not aware of?

no, I did this just for fun

RavensFan
Knight of NI

Re: N Queens (Backtracking)

Could you provide a description of what your code does and waht N Queens (Backtracking) means?

GregFreeman
Trusted Enthusiast

Re: N Queens (Backtracking)

Message contains a hyperlink

From here:

 

http://www.roard.com/docs/cookbook/cbsu6.html

 

"The n-queens problem consists in placing n non-attacking queens on an n-by-n chess board. A queen can attack another queen vertically, horizontally, or diagonally. E.g. placing a queen on a central square of the board blocks the row and column where it is placed, as well as the two diagonals (rising and falling) at whose intersection the queen was placed."

ThiCop
NI Employee (retired)

Re: N Queens (Backtracking)

Hehe Smiley Happy

Kind Regards,
Thierry C - CLA, CTA - Senior R&D Engineer (Former Support Engineer) - National Instruments
If someone helped you, let them know. Mark as solved and/or give a kudo. Smiley Wink
ouadji
Trusted Enthusiast

Re: N Queens (Backtracking)

Thank you for(imstuck)

 

because my english is not very good.

This would not have been easy for me to explain it.

 

soon, a sudoku solver Smiley Happy

Ben
Knight of NI Knight of NI
Knight of NI

Re: N Queens (Backtracking)


@ouadji wrote:

Thank you for(imstuck)

 

because my english is not very good.

This would not have been easy for me to explain it.

 

soon, a sudoku solver Smiley Happy


 

Hi Ouadji,

 

On this forum "Thank you" is best expressed in Kudos (that star under the avatar). They can only be earned and are welcome by most. No translation required.

 

Ben

 

Retired Senior Automation Systems Architect with Data Science Automation LabVIEW Champion Knight of NI and Prepper LinkedIn Profile YouTube Channel
ouadji
Trusted Enthusiast

Re: N Queens (Backtracking)

ok Ben, understood  Smiley Tongue