An algorithm for finding shortest routes from all source nodes to a given destination in general networks

Jin Y. Yen

Quarterly of Applied Mathematics · 1970 · 344 citations · 7 references

DOIFull text

Open access

Concepts

Abstract

This paper presents an algorithm for finding all shortest routes from all nodes to a given destination in <inline-formula content-type="math/mathml"> <mml:math xmlns:mml="http://www.w3.org/1998/Math/MathML" alttext="upper N"> <mml:semantics> <mml:mi>N</mml:mi> <mml:annotation encoding="application/x-tex">N</mml:annotation> </mml:semantics> </mml:math> </inline-formula> -node general networks (in which the distances of arcs can be negative). If no negative loop exists, the algorithm requires <inline-formula content-type="math/mathml"> <mml:math xmlns:mml="http://www.w3.org/1998/Math/MathML" alttext="one half upper M left-parenthesis upper N minus 1 right-parenthesis left-parenthesis upper N minus 2 right-parenthesis comma 1 greater-than upper M upper N minus 1"> <mml:semantics> <mml:mrow> <mml:mfrac> <mml:mn>1</mml:mn> <mml:mn>2</mml:mn> </mml:mfrac> <mml:mi>M</mml:mi> <mml:mrow> <mml:mo>(</mml:mo> <mml:mrow class="MJX-TeXAtom-ORD"> <mml:mi>N</mml:mi> <mml:mo> − </mml:mo> <mml:mn>1</mml:mn> </mml:mrow> <mml:mo>)</mml:mo> </mml:mrow> <mml:mspace linebreak="newline"/> <mml:mrow> <mml:mo>(</mml:mo> <mml:mrow class="MJX-TeXAtom-ORD"> <mml:mi>N</mml:mi> <mml:mo> − </mml:mo> <mml:mn>2</mml:mn> </mml:mrow> <mml:mo>)</mml:mo> </mml:mrow> <mml:mo>,</mml:mo> <mml:mn>1</mml:mn> <mml:mo>&gt;</mml:mo> <mml:mi>M</mml:mi> <mml:mi>N</mml:mi> <mml:mo> − </mml:mo> <mml:mn>1</mml:mn> </mml:mrow> <mml:annotation encoding="application/x-tex">\frac {1}{2}M\left ( {N - 1} \right ) \\ \left ( {N - 2} \right ),1 &gt; MN - 1</mml:annotation> </mml:semantics> </mml:math> </inline-formula> , additions and comparisons. The existence of a negative loop, should one exist, is detected after <inline-formula content-type="math/mathml"> <mml:math xmlns:mml="http://www.w3.org/1998/Math/MathML" alttext="one half upper N left-parenthesis upper N minus 1 right-parenthesis left-parenthesis upper N minus 2 right-parenthesis"> <mml:semantics> <mml:mrow> <mml:mfrac> <mml:mn>1</mml:mn> <mml:mn>2</mml:mn> </mml:mfrac> <mml:mi>N</mml:mi> <mml:mrow> <mml:mo>(</mml:mo> <mml:mrow class="MJX-TeXAtom-ORD"> <mml:mi>N</mml:mi> <mml:mo> − </mml:mo> <mml:mn>1</mml:mn> </mml:mrow> <mml:mo>)</mml:mo> </mml:mrow> <mml:mrow> <mml:mo>(</mml:mo> <mml:mrow class="MJX-TeXAtom-ORD"> <mml:mi>N</mml:mi> <mml:mo> − </mml:mo> <mml:mn>2</mml:mn> </mml:mrow> <mml:mo>)</mml:mo> </mml:mrow> </mml:mrow> <mml:annotation encoding="application/x-tex">\frac {1}{2}N\left ( {N - 1} \right )\left ( {N - 2} \right )</mml:annotation> </mml:semantics> </mml:math> </inline-formula> additions and comparisons.

References

7