-
Notifications
You must be signed in to change notification settings - Fork 30
Kelsey McAlpine #12
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
Kelsey McAlpine #12
Conversation
| - Recursive Case: The function that is called within itself, should bring you closer to the base case. | ||
| - Base Case: the base case is what stops the recursion from infinite recursion | ||
| - Activation Chain/Stack - This still isn't clear to me | ||
| - Activation Record/Call - This still isn't clear to me |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
An activiation record is a single call of the recursive method. So one "bubble" if you will.
| - Recursion: a function that calls itself (see recursion) | ||
| - Recursive Case: The function that is called within itself, should bring you closer to the base case. | ||
| - Base Case: the base case is what stops the recursion from infinite recursion | ||
| - Activation Chain/Stack - This still isn't clear to me |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is the series of recursive calls that have to be made to solve a recursive problem. So the chain of "bubbles".
| - Activation Chain/Stack - This still isn't clear to me | ||
| - Activation Record/Call - This still isn't clear to me | ||
| - Infinite Recursion/Stack Overflow/Stack too deep: Recursion that would go on forever | ||
| - Tail Recursion: With each evaluation of the recursive call, the running total is updated. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this is not correct - but we hadn't covered in class
Recursion TracingYou missed a couple definitions - ask me to explain in person if my comments don't make sense. But you did a nice job on the tracing ones! |
Recursion Tracing
Thanks for doing some brain yoga. You are now submitting this assignment!
Comprehension Questions