[关闭]
@w1024020103 2017-05-24T15:05:02.000000Z 字数 376 阅读 880

Lecture 31: Dynamic Programming

CS61B


Shortest Paths in a DAG

DAG directed acyclic graph

image_1bgsjkn7412i5mt0h691p00kaq9.png-77.7kB

SPTs on Directed Acyclic Graphs

image_1bgsjm0bp3rk15q6a2ktdloqcm.png-80.3kB

Demo

Runtime Analysis

image_1bgsk1mla1hhc12tp73hh7vpr413.png-123.7kB

Dynamic Programming

Definition

image_1bgsk6dvu1vln1nib14lrqs21php1g.png-110.9kB

Steps

image_1bgsk76bt134srnjh8p19a31bhp1t.png-95.9kB

Longest Increasing Subsequence (LIS)

LLIS

image_1bgskbbietnl6suckt1ursit12a.png-75.5kB

LLIS and DAG

image_1bgskdchoi187pqmm5bdbuji2n.png-87.7kB

DAG Longest Path Algorithm

image_1bgskeaaf1q7rf6j563jk5pqa34.png-76.6kB

Using a negative weight to find the longest path

image_1bgski7cg1rtg13jjbu919ceikn3h.png-108.7kB

Runtime

image_1bgskk43b14u72mg1bg71uj8vnt3u.png-98.8kB

Summary

image_1bgsklbas1t5k1d9rh5c1eu3m8r4b.png-125.8kB

LIS Using Dynamic Programming

Examples of LLIS subproblems

image_1bgskq3hu16edmqt1mi51pm6a14o.png-115.2kB

image_1bgskr1pe26lbs21u291u6s18a455.png-79.2kB

Dynamic programming solution for LLIS problem

image_1bgsku5q71htl1ab11ioc1v1ergd5i.png-114.3kB

Summary

image_1bgsl03qutj4sih1audhfn1ib55v.png-166.9kB
image_1bgsl0cu4gt1a0q1c1lfud1rnt6c.png-78.8kB

添加新批注
在作者公开此批注前,只有你和作者可见。
回复批注