Information Technology Reference
In-Depth Information
Fig. 3.45
A pure visual representation of the MP grammar of Fig. 3.24
Ta b l e 3 . 2 4
An algorithm for computing the square root of positive integers
begin
input
A
(positive integer);
B
:
=
0;
C
:
=
1;
while
A
≥
2
B
+
C
do
A:=A-(2B+C);
B:=B+1;
od
;
output
B, A