Respuesta :

{}

 {1}

 {2,1} {1,2}

 {3,2,1} {2,3,1} {2,1,3} {3,1,2} {1,3,2} {1,2,3}

What is a recursive algorithm ?

A recursive algorithm calls itself with smaller input values and, after performing basic operations on the returned value for the smaller input, provides the result for the current input. A recursive method can typically solve a problem if smaller versions of the same problem can be solved by applying solutions to them, and the smaller versions shrink to easily solvable examples. Take the following issue, for instance: Using recursion, print the sum of n natural numbers. This statement makes it clear that we must create a function that will determine the sum of all natural numbers in the interval between 1 and n.

To know more about recursive algorithm , visit

https://brainly.com/question/25778295

#SPJ4

ACCESS MORE