Johnson's algorithm: Difference between revisions

Content deleted Content added
m [Pu405]Add: issn, issue. Tweak: issue. You can use this bot yourself. Report bugs here.
changed w(u,p1) to w(s,p1) in the correctness of the algorithm
Line 27:
Notice that every <math>+h(p_i)</math> is cancelled by <math>-h(p_i)</math> in the previous bracketed expression; therefore, we are left with the following expression for ''W'':
 
:<math>\bigl(w(us, p1) + w(p1, p2) + ... + w(p_n, t)\bigr)+ h(s) - h(t)</math>
 
Notice that the bracketed expression is the weight of ''p'' in the original weighting.