Before revision:  An algorithm is introduced to determine the residues on a given shortest path.
After revision:  An algorithm is introduced to determine the residues of a given shortest path.