Algorithm Extension
Algorithm 1:
Test algorithm
1:
function
testfunction(a)
2:
procedure
testprocedure(b)
3:
for
1,N
do
4:
while
True
do
5:
if
False
then
6:
Statement 1
7:
else if
False
then
8:
Statement 2
9:
else
10:
Statement 3
▹ Comment
11:
end if
12:
end while
13:
end for
14:
end procedure
15:
end function
Algorithm 2:
The Bellman-Kalaba algorithm
1:
function
BellmanKalab(
,
,
,
})
2:
for
do
3:
4:
end for
5:
6:
while
do
▹ Initial is
7:
for
do
8:
9:
for
do
10:
if
then
11:
12:
13:
end if
14:
end for
15:
16:
end for
17:
18:
19:
end while
20:
end function