Skip to content

Conversation

@marisol-lopez
Copy link

Recursion Tracing

Thanks for doing some brain yoga. You are now submitting this assignment!

Comprehension Questions

Question Answer
Did you define all the recursion terms? No, I was unable to define Activation Record/Call
How do you feel about tracing recursive problems? (good, bad, ugly, neutral) bad
Would you like help/follow up about recursion? yes

@sudocrystal
Copy link

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.

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

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

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.

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

@sudocrystal
Copy link

Recursion Tracing

Your traces look good, but if you want to talk through vocabulary together or another problem, I'm happy to do so.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants