Which takes less time to execute.? ordinary functions or recursive functions .

Showing Answers 1 - 7 of 7 Answers

non-name

  • Sep 12th, 2005
 

Ordinary

  Was this answer useful?  Yes

ashok

  • Jan 10th, 2006
 

Please dont answer wrongly......Recursive takes less time to execute.

  Was this answer useful?  Yes

adhyas

  • Jan 24th, 2006
 

and y does recursive take less time ?? if possible respond at my email id: adhyas2@rediffmail.com

  Was this answer useful?  Yes

Neo

  • Jul 18th, 2007
 

Iterative takes less time to execute. Recursive functions have the extra function-call overhead! ..

  Was this answer useful?  Yes

mmh

  • Aug 6th, 2007
 

Note that the question asks which type of "function" takes less time to execute, not algorithm. While recursive algorithms generally take less time (depending on application), recursive functions have more overhead (a function call translates to several CPU instructions).

So, the answer is ordinary functions.

  Was this answer useful?  Yes

Give your answer:

If you think the above answer is not correct, Please select a reason and add your answer below.

 

Related Answered Questions

 

Related Open Questions