CSCI 112 — Recursion Quiz Study Guide

0.0(0)
Studied by 0 people
call kaiCall Kai
learnLearn
examPractice Test
spaced repetitionSpaced Repetition
heart puzzleMatch
flashcardsFlashcards
GameKnowt Play
Card Sorting

1/14

flashcard set

Earn XP

Description and Tags

These flashcards cover key vocabulary and concepts related to recursion from the study guide.

Last updated 1:40 PM on 3/31/26
Name
Mastery
Learn
Test
Matching
Spaced
Call with Kai

No analytics yet

Send a link to your students to track their progress

15 Terms

1
New cards

Recursion

The process of solving a problem by solving smaller instances of the same problem.

2
New cards

Recursive method

A method that calls itself as part of its own execution.

3
New cards

Base case

The condition in a recursive algorithm that can be solved directly, without further recursion. Stops the chain.

4
New cards

Recursive case

The part of a recursive algorithm that reduces the problem to a smaller version and calls the method again.

5
New cards

Depth of recursion

The number of times a recursive method calls itself, not counting the original call.

6
New cards

Overhead

The extra work (memory allocation, storing return addresses) associated with each method call.

7
New cards

Factorial (n!)

The product of all positive integers up to n. Defined as: 0! = 1 and n! = n × (n−1)! for n > 0.

8
New cards

Fibonacci series

A sequence where each number is the sum of the two preceding numbers: 0, 1, 1, 2, 3, 5, 8, …

9
New cards

Directory

A folder in a file system that can contain files and other directories (subdirectories).

10
New cards

File object

A Java object representing either a file or a directory in the file system.

11
New cards

listFiles()

Java method that returns an array of File objects for the contents of a directory.

12
New cards

list()

Java method that returns an array of String names for the contents of a directory.

13
New cards

DFS (Depth-First Search)

A traversal strategy that goes as deep as possible into one branch before backtracking to explore others. Naturally implemented with recursion.

14
New cards

BFS (Breadth-First Search)

A traversal strategy that visits all nodes at the current depth level before moving to the next level. Requires a queue data structure.

15
New cards

Iterative algorithm

An algorithm that uses loops (for, while) to repeat operations, as opposed to recursion.

Explore top notes

note
Unit 1 Health
Updated 454d ago
0.0(0)
note
Design and Tech - Electricity
Updated 1583d ago
0.0(0)
note
The Hate U Give
Updated 1255d ago
0.0(0)
note
Chapter 2: States
Updated 1093d ago
0.0(0)
note
Glaciation
Updated 580d ago
0.0(0)
note
The Geography of Food and Health
Updated 107d ago
0.0(0)
note
unit 7 study guide
Updated 415d ago
0.0(0)
note
Unit 1 Health
Updated 454d ago
0.0(0)
note
Design and Tech - Electricity
Updated 1583d ago
0.0(0)
note
The Hate U Give
Updated 1255d ago
0.0(0)
note
Chapter 2: States
Updated 1093d ago
0.0(0)
note
Glaciation
Updated 580d ago
0.0(0)
note
The Geography of Food and Health
Updated 107d ago
0.0(0)
note
unit 7 study guide
Updated 415d ago
0.0(0)

Explore top flashcards

flashcards
TEST no10 CAPITALS
126
Updated 24d ago
0.0(0)
flashcards
AP Human Geography Unit 4b
40
Updated 365d ago
0.0(0)
flashcards
Professionalism and Ethics
25
Updated 919d ago
0.0(0)
flashcards
exam 2 - id
48
Updated 171d ago
0.0(0)
flashcards
Les Français et les loisirs
37
Updated 956d ago
0.0(0)
flashcards
A. [Practice Questions] Part 1
111
Updated 123d ago
0.0(0)
flashcards
Ch. 8 "The Civil War"
45
Updated 419d ago
0.0(0)
flashcards
TEST no10 CAPITALS
126
Updated 24d ago
0.0(0)
flashcards
AP Human Geography Unit 4b
40
Updated 365d ago
0.0(0)
flashcards
Professionalism and Ethics
25
Updated 919d ago
0.0(0)
flashcards
exam 2 - id
48
Updated 171d ago
0.0(0)
flashcards
Les Français et les loisirs
37
Updated 956d ago
0.0(0)
flashcards
A. [Practice Questions] Part 1
111
Updated 123d ago
0.0(0)
flashcards
Ch. 8 "The Civil War"
45
Updated 419d ago
0.0(0)