What is the data structures used to perform recursion?
Page 1 of 1
What is the data structures used to perform recursion?
Stack. Because of its LIFO (Last In First Out) property it remembers its ‘caller’ so knows whom to return when the function has to return. Recursion makes use of system stack for storing the return addresses of the function calls.
Every recursive function has its equivalent iterative (non-recursive) function. Even when such equivalent iterative procedures are written, explicit stack is to be used.
Every recursive function has its equivalent iterative (non-recursive) function. Even when such equivalent iterative procedures are written, explicit stack is to be used.
Similar topics
» List out the areas in which data structures are applied extensively?
» List out few of the applications that make use of Multilinked Structures?
» What is data structure?
» List out few of the Application of tree data-structure?
» In tree construction which is the suitable efficient data structure?
» List out few of the applications that make use of Multilinked Structures?
» What is data structure?
» List out few of the Application of tree data-structure?
» In tree construction which is the suitable efficient data structure?
Page 1 of 1
Permissions in this forum:
You cannot reply to topics in this forum
|
|