Updated alg doc so it reflect what is done in code. re #9467