Source code online books for professionals by professionals



Download 4,67 Mb.
Pdf ko'rish
bet70/266
Sana31.12.2021
Hajmi4,67 Mb.
#213682
1   ...   66   67   68   69   70   71   72   73   ...   266
Bog'liq
2 5296731884800181221

Figure 5-1.  An undirected graph with three connected components
2
If you’re not a gamer, feel free to imagine this as your office building, dream home, or whatever strikes your fancy.


Chapter 5 

 traversal: the skeleton key of algorithmiCs
95
Notice that there are three kinds of rooms: the ones you’ve actually visited (those with tracks through them), 
those you know about because you’ve seen their doors, and those you don’t know about yet (darkened). The unknown 
rooms are (of course) separated from the visited rooms by a frontier of known but unvisited rooms, just like in any 
kind of traversal. Listing 5-1 gives a simple implementation of this general traversal strategy (with the comments 
referring to graphs rather than dungeons).
3

Download 4,67 Mb.

Do'stlaringiz bilan baham:
1   ...   66   67   68   69   70   71   72   73   ...   266




Ma'lumotlar bazasi mualliflik huquqi bilan himoyalangan ©hozir.org 2024
ma'muriyatiga murojaat qiling

kiriting | ro'yxatdan o'tish
    Bosh sahifa
юртда тантана
Боғда битган
Бугун юртда
Эшитганлар жилманглар
Эшитмадим деманглар
битган бодомлар
Yangiariq tumani
qitish marakazi
Raqamli texnologiyalar
ilishida muhokamadan
tasdiqqa tavsiya
tavsiya etilgan
iqtisodiyot kafedrasi
steiermarkischen landesregierung
asarlaringizni yuboring
o'zingizning asarlaringizni
Iltimos faqat
faqat o'zingizning
steierm rkischen
landesregierung fachabteilung
rkischen landesregierung
hamshira loyihasi
loyihasi mavsum
faolyatining oqibatlari
asosiy adabiyotlar
fakulteti ahborot
ahborot havfsizligi
havfsizligi kafedrasi
fanidan bo’yicha
fakulteti iqtisodiyot
boshqaruv fakulteti
chiqarishda boshqaruv
ishlab chiqarishda
iqtisodiyot fakultet
multiservis tarmoqlari
fanidan asosiy
Uzbek fanidan
mavzulari potok
asosidagi multiservis
'aliyyil a'ziym
billahil 'aliyyil
illaa billahil
quvvata illaa
falah' deganida
Kompyuter savodxonligi
bo’yicha mustaqil
'alal falah'
Hayya 'alal
'alas soloh
Hayya 'alas
mavsum boyicha


yuklab olish