求解过程:第一步:节点1:(1, 0, [1, null])节点2:(2, inf, [])节点3:(3, inf, [])节点4:(4, inf, [])节点5:(5, inf, [])节点6:(6, inf, [])节点7:(7, inf, [])节点8:(8, inf, [])节点9:(9, inf, [])节点10:(10, inf, [])
第二步:节点1:(1, 0, [1, null])节点2:(2, 4, [1])节点3:(3, 7, [1])节点4:(4, 12, [1])节点5:(5, 19, [1])节点6:(6, 21, [1])节点7:(7, 11, [1])节点8:(8, 14, [1])节点9:(9, 18, [1])节点10:(10, 14, [1])
第三步:节点1:(1, 0, [1, null])节点2:(2, 4, [1])节点3:(3, 7, [1])节点4:(4, 12, [1])节点5:(5, 15, [1])节点6:(6, 18, [1])节点7:(7, 11, [1])节点8:(8, 14, [1])节点9:(9, 15, [1])节点10:(10, 14, [1])
第四步:节点1:(1, 0, [1, null])节点2:(2, 4, [1])节点3:(3, 7, [1])节点4:(4, 8, [1])节点5:(5, 11, [1])节点6:(6, 14, [1])节点7:(7, 11, [1])节点8:(8, 14, [1])节点9:(9, 14, [1])节点10:(10, 14, [1])
最终结果:节点1:(1, 0, [1, null])节点2:(2, 4, [1])节点3:(3, 7, [1])节点4:(4, 8, [1])节点5:(5, 11, [1])节点6:(6, 14, [1])节点7:(7, 11, [1])节点8:(8, 14, [1])节点9:(9, 14, [1])节点10:(10, 14, [1])
有问题你别着急,评论留言都可以,看到马上就回复,尽量及时补充齐