Greedy Algorithm



Download 97,97 Kb.
bet11/12
Sana23.06.2022
Hajmi97,97 Kb.
#696905
1   ...   4   5   6   7   8   9   10   11   12
Bog'liq
greedy (1)

Lemma 5.28. Running Kruskal's Algorithm until there are only k trees left produces a maxi-min spacing clustering.
Proof. Let S be the Kruskal cut and R any other cut. Then as S and R both cover V ,
i st S i intersects two blocks of R. _ Wlog, call these blocks R 1 and R 2 and as their inter- sections with S i are non-empty, exist elements a S iR 1 and d S iR 2 .
Consider the path a ~ d in S i . As a R 1 and d R 2 then there is an edge b c in
a ~ d crossing R. _ But, recall how the Kruskal forest is built; namely edges are added in
a useful result to know. Fibonacci heaps have a better amortized runtime than most other priority queue data structures. Their name comes from their analysis which involves Fibonacci numbers. While they do have an amortized runtime that is faster, they are very complicated to code. Furthermore, in practice they have has been shown to be slower because they involve more storage and manipulations of nodes.

non-decreasing order of weight. Therefore w ( b, c ) ≤ spacing ( S ). However, as b c crosses


R , spacing ( R ) ≤ w ( b, c ). Therefore,
spacing ( R ) ≤ w ( b, c ) ≤ spacing ( S ) (5.7) Thus S is optimal to R. _ As R was chosen arbitrarily, S is optimal.
It should be noted that this algorithm gives us something more than just the maxi-min spacing clustering. The structure of each of the k trees gives us an MST for each cluster.



      1. Download 97,97 Kb.

        Do'stlaringiz bilan baham:
1   ...   4   5   6   7   8   9   10   11   12




Ma'lumotlar bazasi mualliflik huquqi bilan himoyalangan ©www.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