-
Notifications
You must be signed in to change notification settings - Fork 30
Marisol Lopez - Recursion Tracing #44
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?
Conversation
|
Sorry I'm just getting to getting everyone feedback. If you'd like to chat about this, slack me and let's set up some time to walk through a problem or two. |
| - Base Case | ||
| - Activation Chain/Stack | ||
| - Recursion: Describes when we have a method that calls itself. | ||
| - Recursive Case: A part of the method that happens over and over again. |
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.
The part of the method that calls itself, rather.
| - Recursive Case: A part of the method that happens over and over again. | ||
| - Base Case: The situation for which the solution can be states non-recursively. | ||
| - Activation Chain/Stack: The chain that results when going through recursive method. | ||
| - Activation Record/Call |
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.
One individual call to a method.
| - Infinite Recursion/Stack Overflow/Stack too deep | ||
| - Tail Recursion | ||
| - Infinite Recursion/Stack Overflow/Stack too deep: When a method will never stop because it will never satisfy method. | ||
| - Tail Recursion: Recursive call is the last thing executed by the function |
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.
We didn't go over this in class. We may cover it later, but in this moment, it's not important that you know this.
| - Activation Record/Call | ||
| - Infinite Recursion/Stack Overflow/Stack too deep | ||
| - Tail Recursion | ||
| - Infinite Recursion/Stack Overflow/Stack too deep: When a method will never stop because it will never satisfy method. |
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.
When a method will never stop because it will never satisfy a base case
Recursion TracingYour traces look good, but if you want to talk through vocabulary together or another problem, I'm happy to do so. |
Recursion Tracing
Thanks for doing some brain yoga. You are now submitting this assignment!
Comprehension Questions