Insights Blog
-- Browse All Articles --
Physics Articles
Physics Tutorials
Physics Guides
Physics FAQ
Math Articles
Math Tutorials
Math Guides
Math FAQ
Education Articles
Education Guides
Bio/Chem Articles
Technology Guides
Computer Science Tutorials
Forums
Chemistry
Biology and Medical
Earth Sciences
Computer Science
Computing and Technology
DIY Projects
Trending
Featured Threads
Log in
Register
What's new
Search
Search
Search titles only
By:
Chemistry
Biology and Medical
Earth Sciences
Computer Science
Computing and Technology
DIY Projects
Menu
Log in
Register
Navigation
More options
Contact us
Close Menu
JavaScript is disabled. For a better experience, please enable JavaScript in your browser before proceeding.
You are using an out of date browser. It may not display this or other websites correctly.
You should upgrade or use an
alternative browser
.
Forums
Other Sciences
Programming and Computer Science
Recursion in Programming and When to Use or Not to Use It
Reply to thread
Message
[QUOTE="SSequence, post: 6224626, member: 601088"] Just to clarify a bit, there are two different senses one can interpret "call-dependence hierarchy". One is the aspect of evaluation. The other is dependence which can just be tracked by looking at the program. ============ Evaluation aspect is how a function say with a signature like: int f(int x) is evaluated when we make a [I]specific [/I]call like f(100) etc. That is, how many further function calls are required (and with what structure+rules) to evaluate the given value f(100). As I understand, if the language is very very simple, then giving a precise delineation of such rules (for recursion) isn't that difficult (though it would definitely take some work when stated precisely). ============ However, I was using the term in the following sense (just giving one specific example): Suppose that the function "f" (in its body) calls "g" The function "g" (in its body) calls "h" The function "h" (in its body) calls "f" So there is a cyclical path in the sense of: f→g→h→f ============ Anyway, I am not particularly knowledgeable about the topic (apart from just knowing the basics) so I will give it a rest here. [/QUOTE]
Insert quotes…
Post reply
Forums
Other Sciences
Programming and Computer Science
Recursion in Programming and When to Use or Not to Use It
Back
Top