Let πΊ(π, πΈ) be an undirected, edge-weighted graph with integer weights. The weight
of a path is the sum of the weights of the edges in that path. The length of a path is
the number of edges in that path.
Let π βπ be a vertex in πΊ. For every π’βπ and for every π β₯0, let ππ(π’) denote
the weight of a shortest path (in terms of weight) from π to π’ of length at most π. If
there is no path from π to π’ of length at most π, then ππ(π’) = β.
Consider the statements:
S1:
For every π β₯0 and π’ βπ, ππ+1(π’) β€ππ(π’).
S2:
For every (π’, π£) βπΈ, if (π’, π£) is part of a shortest path (in terms of
weight) from π to π£, then for every πβ₯ 0, ππ(π’) β€ππ(π£).
Which one of the following options is correct?