Multiple Choice
Look at the following pseudocode algorithm: Algorithm gcd(x, y)
If (x < y)
Gcd (y, x)
Else
If (y = 0)
Return x
Else
Return gcd(y, x mod y)
End gcd
What is the base case for the algorithm gcd?
A) x < y
B) y == 0
C) x == 0
D) y > x
Correct Answer:

Verified
Correct Answer:
Verified
Related Questions
Q1: How many times will the following method
Q2: Look at the following method: public static
Q4: A problem can be solved recursively if
Q5: Look at the following pseudocode algorithm: algorithm
Q6: If the base case in a recursive
Q7: Look at the following pseudocode algorithm: algorithm
Q8: The number of times that a method
Q9: Look at the following pseudocode algorithm: Algorithm
Q10: Any problem that can be solved recursively
Q11: Recursive algorithms are usually less efficient than:<br>A)