reset password
Author Message
hal255
Posts: 51
Posted 15:50 Oct 03, 2014 |

Is it assumed that j is incremented by 1 after each cycle within the for loop?

yxu22
Posts: 25
Posted 15:57 Oct 03, 2014 |

Yes.

for j <- 2 to length(A),  means each iteration j is increased by 1.

Last edited by yxu22 at 15:57 Oct 03, 2014.
hal255
Posts: 51
Posted 16:06 Oct 03, 2014 |

Okie dokie. I wanted to make sure since i was getting updated in the pseudocode, but not j. Thank you.