What does the following algorithm approximate? C x = m; y = 1; while (x - y >…
PYQ GATE 2004
What does the following algorithm approximate?
C
x = m;
y = 1;
while (x - y > e)
{
x = (x + y)/2;
y = m/x;
}
print(x);
(Assume m > 1, e > 0).
- A.
log m
- B.
m2
- C.
m1/2
- D.
m1/3
Attempted by 203 students.
Sign up free to check your answer
Sign up freeLoading lesson…

