Recursion Flashcards

0.0(0)
studied byStudied by 0 people
learnLearn
examPractice Test
spaced repetitionSpaced Repetition
heart puzzleMatch
flashcardsFlashcards
Card Sorting

1/7

flashcard set

Earn XP

Description and Tags

Flashcards on the topic of Recursion in Java

Study Analytics
Name
Mastery
Learn
Test
Matching
Spaced

No study sessions yet.

8 Terms

1
New cards

Recursion

The process of defining the solution to a problem in terms of itself.

2
New cards

Recursive Method

A method that calls itself.

3
New cards

Base Case

The case in which the problem can be solved without recursion.

4
New cards

Recursive Case

How to solve the problem in all other circumstances using recursion.

5
New cards

Direct Recursion

When recursive methods directly call themselves

6
New cards

Indirect Recursion

When method A calls method B, which in turn calls method A.

7
New cards

rangeSum Method

A method that takes an int array, an int specifying the starting element of the range, and an int specifying the ending element of the range.

8
New cards

Towers of Hanoi

A mathematical game that uses three pegs and a set of discs with holes through their centers.