Documenti di Didattica
Documenti di Professioni
Documenti di Cultura
algorithms
Looping
constructs
(e.g.
while
or
for
loops)
lead
naturally
to
itera&ve
algorithms
Can
conceptualize
as
capturing
computa&on
in
a
set
of
state
variables
which
update
on
each
itera&on
through
the
loop
State
variables:
i
itera&on
number;
starts
at
b
result
current
value
of
computa&on;
starts
at
0
Update
rules
i
i
-1;
stop
when
0
result
result
+
a