Source code online books for professionals by professionals


Longest increasing subsequence



Download 4,67 Mb.
Pdf ko'rish
bet227/266
Sana31.12.2021
Hajmi4,67 Mb.
#213682
1   ...   223   224   225   226   227   228   229   230   ...   266
Bog'liq
2 5296731884800181221

Longest increasing subsequence. Find the longest subsequence of a given sequence whose elements are in 
increasing order. This can be solved in loglinear time using dynamic programming (see Chapter 8).
Matching. There are many matching problems, all of which involve linking some object to others. The problems 
discussed in this book are bipartite matching and min-cost bipartite matching (Chapter 10) and the stable marriage 
problem (Chapter 7). Bipartite matching (or maximum bipartite matching) involves finding the greatest subset of 
edges in a bipartite graph so that no two edges in the subset share a node. The min-cost version does the same but 
minimizes the sum of edge costs over this subset. The stable marriage problem is a bit different; there, all men and 
women have preference rankings of the members of the opposite sex. A stable set of marriages is characterized by the 
fact that you can’t find a pair that would rather have each other than their current mates.


Appendix B 

 List of proBLems And ALgorithms
261
Minimum spanning trees. A spanning tree is a subgraph whose edges form a tree over all the nodes of the original 
graph. A minimum spanning tree is one that minimizes the sum of edge costs. Minimum spanning trees can be found 
using Kruskal’s algorithm (Listing 7-4) or Prim’s algorithm (Listing 7-5), for example. Because the number of edges is 
fixed, a maximum spanning tree can be found by simply negating the edge weights.

Download 4,67 Mb.

Do'stlaringiz bilan baham:
1   ...   223   224   225   226   227   228   229   230   ...   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