Seven bridges of Königsberg
Seven bridges of Königsberg

The city of Königsberg is set on the sides of Pregel river and two islands. The riverbanks are connected by seven bridges (see the picture). The problem is to determine, whether it is possible to walk through the city, crossing each bridge exactly once, and return to the same place.

The problem of seven bridges is similar to the children game of drawing the house in one line.

Solution

Solution to this problem was presented by Leonhard Euler in 1736 and it is considered as a foundation stone of the graph theory.

Schema of the seven bridges problem
Schema of the seven bridges problem

Theorem: Undirected graph can be covered by one trail if and only if it is connected and is a Euler graph (i.e. all its vertices are of even degree).

Theorem: Let G be an undirected graph, which has 2n vertices of odd degree (n  \\geq 1), then its every minimal coverage consists of n open trails, out of which every connects a pair of vertices of odd degree.

From these two theorems arises that if want to draw an image using one line (or walk through Königsberg) and return to the place, where we have started, then there must come out even count of lines (edges) from every node (vertex). If the graph does not meet this condition, then we need at least number\\; of\\; nodes\\; with\\; odd\\; degree/2 trails, because these are the places where we start to draw the trail and where we stop.

On the schema we can see now that is not not possible to go through all Königsberg bridges, visit each once, and return to the original place. It is impossible to solve this problem even without the condition stating that we must return to the original place, because at least two trails are needed.

Sources

  • KOLÁŘ, Josef. Teoretická informatika. 2. ed. Praha : Česká informatická společnost, 2004. 205 p. ISBN 80-900853-8-5.

SEO od společnosti Digital Pylon


Online casino s algoritmem

České casino online online slot-vegas.cz

Hrajte nejlepší hry jako je GoodGame Empire.





Zajímavé články: Jak najít práci snů? Zvolte kariéru v IT!, Češi mají rádi hrací automaty online, Jak funguje algoritmické obchodování Casino, Online výuka Algoritmus a online marketing mají svá pravidla, Automaty, Matematický vliv, Ratings, Jak fungují algoritmy hazardních her online: více znalostí, více peněz, SYPWAI - nástroj pro vědecký vývoj, Vynikají na globálním trhu: Nejlepší vývojáři softwaru pro online výherní automaty, Jak si vybrat nejlepší české online casino, Proč byste měli hrát online casino VPN revoluce, Kde najdeme algoritmy v každodenním životě?, Čeká vás pracovní pohovor mimo město? Podívejte se, jak dokonale zvládnout včasný příchod, 5 úžasných technologií ze světa hazardních her, Mirror and access to Mostbet, Svou kancelář můžete mít stále po ruce, Jaké výhody má digitalizovaná firma oproti off-line konkurenci?, Jaký systém vybrat pro snadné řízení výroby?, Nahradí umělá inteligence ajťáky?, Důvody, proč používat SnapTik ke stahování videí TikTok, Dokonalý den na pláži: Co si vzít s sebou, aby byl výlet zábavný a bezpečný?, Jak přežít dlouhý let?, Go pay GoodGame Empire, Blockchain, Rozhovor


Doporučujeme

Internet pro vaši firmu na míru

https://www.algoritmy.net