Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

reverse (left) arrow in an algorithm?

Tags:

algorithm

There is a algorithm, in which author has written steps of algorithm like this,

  1. Initialization: Set up the threshold (th) and maximum iteration number, I.

    i ← 0

  2. Calculate x

    While (x > th) do

        i ← i+1

        ...

    End While

What does this left arrow means here?

like image 328
user2888999 Avatar asked Oct 23 '25 17:10

user2888999


1 Answers

The left arrow statement here that the value i+1 is stored in the variable i.

That is, i is incremented by 1.

like image 102
riklund Avatar answered Oct 25 '25 10:10

riklund