2082 11

Data Structures and Algorithms20825 marksLimitations of recursion

List the limitation of recursion. How do you delete the node in BST? [2+3]

List the limitation of recursion. How do you delete the node in BST? [2+3]

--- 1. Stack Overflow: Each recursive call uses stack memory. For deep recursion (large input), the call stack may overflow, causing program crash. 2. High Memory Usage: Every function call requires stack frame allocation (for parameters, local variables, return address), consuming more memory th...

Up nextWhat is simple queue? Describe about any three types of graphs. [2+3]