Chapter 2 : Recursion

studied byStudied by 11 people
0.0(0)
Get a hint
Hint

Factorials

1 / 3

flashcard set

Earn XP

Description and Tags

4 Terms

1

Factorials

________ are often used in mathematics and computer science.

New cards
2

Recursion

________ is a method of problem- solving where you solve smaller instances of the problem until you arrive at a solution.

New cards
3

base case

The ________ is usually a simple, easily solvable case that serves as the starting point for the recursive algorithm.

New cards
4

Because of this, the function must have a base case

a condition that ends a recursive algorithm to stop it from continuing forever

New cards

Explore top notes

note Note
studied byStudied by 37 people
... ago
4.0(1)
note Note
studied byStudied by 22 people
... ago
5.0(1)
note Note
studied byStudied by 23 people
... ago
5.0(1)
note Note
studied byStudied by 6 people
... ago
5.0(1)
note Note
studied byStudied by 5 people
... ago
5.0(1)
note Note
studied byStudied by 19 people
... ago
5.0(1)
note Note
studied byStudied by 43 people
... ago
5.0(1)
note Note
studied byStudied by 455 people
... ago
5.0(2)

Explore top flashcards

flashcards Flashcard (122)
studied byStudied by 10 people
... ago
4.0(1)
flashcards Flashcard (105)
studied byStudied by 20 people
... ago
5.0(1)
flashcards Flashcard (76)
studied byStudied by 1 person
... ago
5.0(1)
flashcards Flashcard (51)
studied byStudied by 4 people
... ago
5.0(1)
flashcards Flashcard (77)
studied byStudied by 6 people
... ago
5.0(1)
flashcards Flashcard (45)
studied byStudied by 2 people
... ago
5.0(1)
flashcards Flashcard (31)
studied byStudied by 5 people
... ago
5.0(1)
flashcards Flashcard (162)
studied byStudied by 42 people
... ago
5.0(1)
robot