Introduction to Algorithms, Third Edition



Download 4,84 Mb.
Pdf ko'rish
bet443/618
Sana07.04.2022
Hajmi4,84 Mb.
#534272
1   ...   439   440   441   442   443   444   445   446   ...   618
Bog'liq
Introduction-to-algorithms-3rd-edition

24.4-3
Can any shortest-path weight from the new vertex
0
in a constraint graph be posi-
tive? Explain.
24.4-4
Express the single-pair shortest-path problem as a linear program.


670
Chapter 24
Single-Source Shortest Paths
24.4-5
Show how to modify the Bellman-Ford algorithm slightly so that when we use it
to solve a system of difference constraints with
m
inequalities on
n
unknowns, the
running time is
O.nm/
.
24.4-6
Suppose that in addition to a system of difference constraints, we want to handle
equality constraints
of the form
x
i
D
x
j
C
b
k
. Show how to adapt the Bellman-
Ford algorithm to solve this variety of constraint system.
24.4-7
Show how to solve a system of difference constraints by a Bellman-Ford-like algo-
rithm that runs on a constraint graph without the extra vertex
0
.
24.4-8
?
Let
Ax
b
be a system of
m
difference constraints in
n
unknowns. Show that the
Bellman-Ford algorithm, when run on the corresponding constraint graph, maxi-
mizes
P
n
i
D
1
x
i
subject to
Ax
b
and
x
i
0
for all
x
i
.
24.4-9
?
Show that the Bellman-Ford algorithm, when run on the constraint graph for a sys-
tem
Ax
b
of difference constraints, minimizes the quantity
.
max
f
x
i
g
min
f
x
i
g
/
subject to
Ax
b
. Explain how this fact might come in handy if the algorithm is
used to schedule construction jobs.
24.4-10
Suppose that every row in the matrix
A
of a linear program
Ax
b
corresponds to
a difference constraint, a single-variable constraint of the form
x
i
b
k
, or a single-
variable constraint of the form
x
i
b
k
. Show how to adapt the Bellman-Ford
algorithm to solve this variety of constraint system.
24.4-11
Give an efficient algorithm to solve a system
Ax
b
of difference constraints
when all of the elements of
b
are real-valued and all of the unknowns
x
i
must be
integers.
24.4-12
?
Give an efficient algorithm to solve a system
Ax
b
of difference constraints
when all of the elements of
b
are real-valued and a specified subset of some, but
not necessarily all, of the unknowns
x
i
must be integers.


24.5
Proofs of shortest-paths properties
671

Download 4,84 Mb.

Do'stlaringiz bilan baham:
1   ...   439   440   441   442   443   444   445   446   ...   618




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