asked 10.2k views
1 vote
An iterative algorithm uses a loop to solve the problem, while a recursive algorithm uses a method that calls itself. (true, false)

asked
User Mpjdem
by
9.1k points

1 Answer

4 votes

Answer:

True.

Step-by-step explanation:

An iterative method uses a loop to solve the problem either it can be for,while or do-while loop.Iterative methods are easy to implement than recursive problem.

While recursion uses the same method to call itself.Recursive methods are not easy to implement as compared to iterative method.It contains following things:

  1. base case.
  2. Some calculation.
  3. Recursive call.
answered
User Martin Doms
by
8.3k points