CS435项目2
004节-瑞安·布杜(Ryan Budhu)
1.要把我的马带到老城节点
(a) SACBEFGKLD
(b) S.neighbors = [A]
C.neighbors = [A]
A.neighbors = [S, C, B, E]
B.neighbors = [A, E]
E.neighbors = [B, A]
F.neighbors = [E, G]
G.neighbors = [F, K]
K.neighbors = [G, L]
L.neighbors = [K, D]
D.neighbors = [L]
(C)
2.碎奶酪大道
(a)25个节点
(b)“接触”节点的邻接表
(c)无向,无环,连通,无加权
(d)
3.穿越这个小镇
(a)
(b)
(c)
(d)
(e)
(f)
(g)
(h) 一世。 我遇到了RecursionError
2021-02-20 20:10:18
89KB
Python
1