单项选择题

下图应选择()算法求最短路径,求得从a到z的最短路径边权和为()。

A.Bellman-Ford,21
B.Bellman-Ford,16
C.Dijkstra,21
D.Dijkstra,16