[关闭]
@w1024020103 2017-05-18T11:39:41.000000Z 字数 428 阅读 559

Shortest Paths and Dijkstra's Algorithm

CS61B


Overview

image_1bg0piu9s437r6j1fsq1l49h029.png-78kB

image_1bg0pkftb1op81qkpa5adcnn0im.png-61.4kB

image_1bg0pn7a2119d1jl89q11n681npa13.png-76.5kB

C level:
3.Problem 4 from Princeton's Fall 2009 final.

Problem 4 from Princeton's Fall 2009 final.

image_1bg7fb0g7v57pcg9hbh3a1cjp13.png-17.8kB

4.True or false: Adding a constant to every edge weight does not change the solution to the single-source shortest-paths problem.

TRUE 错了

image_1bgcqi0hn1mrjbjc1dm7hlk4gf9.png-10.7kB

image_1bgcqr7q0klf10a73a116rv13hnm.png-23.9kB

B level

1.(great problem) Problem 4 from Princeton's Fall 2011 final. Note that when the exam says to "relax a vertex", that mean to relax all of a vertex's edges. A similar problem is given as #6 on Princeton's SPring 2012 final.

image_1bg7hmos81i8ua5inugn8042s1g.png-7.8kB

image_1bg7hohjfch3le7kqd1s5en0s2a.png-48.6kB

不做了 hw和proj优先 刷完网课六月要开始刷简历项目刷题了

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