N Queens puzzle / Ν ΒΑΣΙΛΙΣΣΕΣ

The n queens puzzle is the problem of  placing n chess queens on an nxn chessboard so that no two queens threaten each other. Thus, a solution requires that no two queens share the same row, column, or diagonal.



Το παζλ Ν είναι το πρόβλημα της τοποθέτησης Ν βασιλισσών σε μια ΝxN σκακιέρα, έτσι ώστε να μην απειλούνται μεταξύ τους οι βασίλισσες. Έτσι, μια λύση απαιτεί ότι δεν υπάρχουν δύο βασίλισσες που μοιράζονται την ίδια σειρά, στήλη ή διαγώνιο.




1.Πόσες μη επιθετικές βασίλισσες  μπορούν να τοποθετηθούν  σε σκακιέρα 4x4;
1.How many non attacking Queens can be placed on a 4x4 chessboard?







2. Πόσες μη επιθετικές βασίλισσες  μπορούν να τοποθετηθούν  σε σκακιέρα 5x5;
2.How many non attacking Queens can be placed on a 5x5 chessboard?






3. Πόσες μη επιθετικές βασίλισσες  μπορούν να τοποθετηθούν  σε σκακιέρα 6x6;


3.How many non attacking Queens can be placed on a 6x6 chessboard?









4. Πόσες μη επιθετικές βασίλισσες  μπορούν να τοποθετηθούν  σε σκακιέρα 7x7;

4.How many non attacking Queens can be placed on a 7x7 chessboard?










5. Πόσες μη επιθετικές βασίλισσες  μπορούν να τοποθετηθούν  σε σκακιέρα 8x8;
5.How many non attacking Queens can be placed on a 8x8 chessboard?






Σχόλια

Δημοφιλείς αναρτήσεις