Set the test table for the following algorithm and predict what the algorithm
performs
A. ALGORITHM Q(n)
B. Input: A positive integer n
C. if n = 1 return 1
D. else return Q(n - 1) + 2n - 1
Answers
Answered by
0
Answer:
n(-1+2-1)
n(-2+2)
n=0
Similar questions
History,
2 months ago
Social Sciences,
2 months ago
English,
5 months ago
English,
5 months ago
Math,
10 months ago
Computer Science,
10 months ago
English,
10 months ago