answersLogoWhite

0

Sure, recursion can always be substituted with using a stack.

User Avatar

Wiki User

15y ago

What else can I help you with?

Related Questions

Can you provide a solution to the diamond-square algorithm using Java and recursion?

Yes. It is possible to provide a solution to the diamond-square algorithm using Java and recursion.


Advantages and disadvantages of using recursion?

pata nhe


What are the merits and demerits of recursion?

Ans: Merits of recursion are: Mathematical functions, such as Fibonacci series generation can be easily implemented using recursion as compared to iteration technique. Demerits of recursion are: Many programming languages do not support recursion; hence, recursive mathematical function is implemented using iterative methods. Even though mathematical functions can be easily implemented using recursion, it is always at the cost of execution time and memory space. The recursive programs take considerably more storage and take more time during processing.


What is the C program for heap sort using recursion?

123


What is the most efficient way to implement a factorial algorithm in a programming language?

The most efficient way to implement a factorial algorithm in a programming language is to use an iterative approach rather than a recursive one. This involves using a loop to multiply the numbers from 1 to the given input number to calculate the factorial. This method is more memory-efficient and faster than using recursion.


How do you write print 1 to 100 using recursion only?

recu


What are demerits of recursion?

Demerits of recursion are: Many programming languages do not support recursion; hence, recursive mathematical function is implemented using iterative methods. Even though mathematical functions can be easily implemented using recursion, it is always at the cost of execution time and memory space. The recursive programs take considerably more storage and take more time during processing.


How do you implement awgn in MATLAB without using awgn function?

no way... use awgn function in matlab


Derive recursion formula for sin by using Taylor's Series?

the Taylor series of sinx


How to generate 10 letters to invite friends to birthday party using mail merge?

by using mail merge programm.


What is a Flow chart for finding factorial of a given number using recursion function?

no answer....pls post


How do you merge words and pictures?

Merge it in MS Word and save it. or Combine it using MS Paint.