Hledat:

Invia.cz Last minute Tunisko Dovolená v Chorvatsku Pojeďte do Egypta Bulharsko Vydělávejte peníze s INVIA.CZ
 

Problém osmi dam

Image:chess_zhor_26.png
Image:chess_zver_26.png
a8 b8 c8 d8 e8 f8 g8 h8
a7 b7 c7 d7 e7 f7 g7 h7
a6 b6 c6 d6 e6 f6 g6 h6
a5 b5 c5 d5 e5 f5 g5 h5
a4 b4 c4 d4 e4 f4 g4 h4
a3 b3 c3 d3 e3 f3 g3 h3
a2 b2 c2 d2 e2 f2 g2 h2
a1 b1 c1 d1 e1 f1 g1 h1
Image:chess_zver_26.png
Image:chess_zhor_26.png
Jedno možné řešení


Problém osmi dam je úloha umístit na prázdnou šachovnici osm dam tak, aby se podle běžných pravidel šachu žádné dvě navzájem neohrožovaly, tedy tak, aby žádné dvě dámy nebyly na stejné řadě, sloupci, ani diagonále, případně nalézt všechna možná řešení této úlohy (nebo jejich počet).

Úlohu lze zobecnit na problém n dam, tedy otázku, jak lze rozmístit n dam na šachovnici o rozměrech n×n tak, aby se vzájemně neohrožovaly.

Obsah

[editovat] Historie úlohy

Problém osmi dam se poprvé objevil v roce 1848, kdy ho v berlínském časopise Schachzeitung uveřejnil Max Bezzel.[1] V dalších letech se problému věnovalo mnoho slavných matematiků včetně Gausse.[2] Zobecnění problému na n dam navrhl v roce 1850 Franz Nauck (který také správně stanovil počet všech řešení původního problému). V roce 1874 navrhl Siegmund Günther metodu pro řešení úlohy pomocí determinantů, kterou poté vylepšil James Gleisher.[3]

[editovat] Počet řešení

Problém osmi dam má 92 různých řešení (až na permutace rozmístěných dam, tzn. pokud se zvažují jen pole, na která se dámy umísťují, nikoli konkrétní figurky na konkrétních polích). Těchto 92 řešení však lze získat z dvanácti různých řešení pomocí symetrie (otočením a zrcadlením).

Při zobecnění na problém n dam je počet všech řešení, resp. řešení se započtením symetrie, pro malá n uveden v následující tabulce:

n 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15
Všechna řešení[4] 1 0 0 2 10 4 40 92 352 724 2 680 14 200 73 712 365 596 2 279 184
Symetrická jen jednou[5] 1 0 0 1 2 1 6 12 46 92 341 1 787 9 233 45 752 285 053

[editovat] Přehled řešení problému osmi dam

Dvanáct základních řešení problému osmi dam je zobrazeno na následujících diagramech:

Image:chess zhor 22.png
Image:chess zver 22.png a8 b8 c8 d8 e8 f8 g8 h8 Image:chess zver 22.png
a7 b7 c7 d7 e7 f7 g7 h7
a6 b6 c6 d6 e6 f6 g6 h6
a5 b5 c5 d5 e5 f5 g5 h5
a4 b4 c4 d4 e4 f4 g4 h4
a3 b3 c3 d3 e3 f3 g3 h3
a2 b2 c2 d2 e2 f2 g2 h2
a1 b1 c1 d1 e1 f1 g1 h1
Image:chess zhor 22.png
__
Image:chess zhor 22.png
Image:chess zver 22.png a8 b8 c8 d8 e8 f8 g8 h8 Image:chess zver 22.png
a7 b7 c7 d7 e7 f7 g7 h7
a6 b6 c6 d6 e6 f6 g6 h6
a5 b5 c5 d5 e5 f5 g5 h5
a4 b4 c4 d4 e4 f4 g4 h4
a3 b3 c3 d3 e3 f3 g3 h3
a2 b2 c2 d2 e2 f2 g2 h2
a1 b1 c1 d1 e1 f1 g1 h1
Image:chess zhor 22.png
__
Image:chess zhor 22.png
Image:chess zver 22.png a8 b8 c8 d8 e8 f8 g8 h8 Image:chess zver 22.png
a7 b7 c7 d7 e7 f7 g7 h7
a6 b6 c6 d6 e6 f6 g6 h6
a5 b5 c5 d5 e5 f5 g5 h5
a4 b4 c4 d4 e4 f4 g4 h4
a3 b3 c3 d3 e3 f3 g3 h3
a2 b2 c2 d2 e2 f2 g2 h2
a1 b1 c1 d1 e1 f1 g1 h1
Image:chess zhor 22.png
__
Image:chess zhor 22.png
Image:chess zver 22.png a8 b8 c8 d8 e8 f8 g8 h8 Image:chess zver 22.png
a7 b7 c7 d7 e7 f7 g7 h7
a6 b6 c6 d6 e6 f6 g6 h6
a5 b5 c5 d5 e5 f5 g5 h5
a4 b4 c4 d4 e4 f4 g4 h4
a3 b3 c3 d3 e3 f3 g3 h3
a2 b2 c2 d2 e2 f2 g2 h2
a1 b1 c1 d1 e1 f1 g1 h1
Image:chess zhor 22.png
__
Image:chess zhor 22.png
Image:chess zver 22.png a8 b8 c8 d8 e8 f8 g8 h8 Image:chess zver 22.png
a7 b7 c7 d7 e7 f7 g7 h7
a6 b6 c6 d6 e6 f6 g6 h6
a5 b5 c5 d5 e5 f5 g5 h5
a4 b4 c4 d4 e4 f4 g4 h4
a3 b3 c3 d3 e3 f3 g3 h3
a2 b2 c2 d2 e2 f2 g2 h2
a1 b1 c1 d1 e1 f1 g1 h1
Image:chess zhor 22.png
__
Image:chess zhor 22.png
Image:chess zver 22.png a8 b8 c8 d8 e8 f8 g8 h8 Image:chess zver 22.png
a7 b7 c7 d7 e7 f7 g7 h7
a6 b6 c6 d6 e6 f6 g6 h6
a5 b5 c5 d5 e5 f5 g5 h5
a4 b4 c4 d4 e4 f4 g4 h4
a3 b3 c3 d3 e3 f3 g3 h3
a2 b2 c2 d2 e2 f2 g2 h2
a1 b1 c1 d1 e1 f1 g1 h1
Image:chess zhor 22.png
__
Image:chess zhor 22.png
Image:chess zver 22.png a8 b8 c8 d8 e8 f8 g8 h8 Image:chess zver 22.png
a7 b7 c7 d7 e7 f7 g7 h7
a6 b6 c6 d6 e6 f6 g6 h6
a5 b5 c5 d5 e5 f5 g5 h5
a4 b4 c4 d4 e4 f4 g4 h4
a3 b3 c3 d3 e3 f3 g3 h3
a2 b2 c2