LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

N Queens (Backtracking)

 

My solution to the N Queens Problem (with Backtracking)

 

(N_QUEENS_MAIN.vi)

 

 

Snippet_N_Queens.png

 

Message 1 of 9
(3,996 Views)

Hello ouadji,

 

Is there something we can help/assist you with?

Or did you just felt like sharing the code? 🙂

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. 😉
0 Kudos
Message 2 of 9
(3,961 Views)

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

0 Kudos
Message 3 of 9
(3,953 Views)

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

0 Kudos
Message 4 of 9
(3,943 Views)

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."

Message 5 of 9
(3,939 Views)

Hehe 🙂

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. 😉
0 Kudos
Message 6 of 9
(3,910 Views)

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

0 Kudos
Message 7 of 9
(3,894 Views)

@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
0 Kudos
Message 8 of 9
(3,888 Views)

ok Ben, understood  Smiley Tongue

Message 9 of 9
(3,858 Views)