Back to marketplace

Unit 10 - Recursion

No description yet. This curated deck is ready for daily study.

Total cards: 11•Content version: v4•Public deck•Updated: 8/1/2026

Card preview (11)

#1
Front (Question)

Recursive method

Back (Answer)

One that calls itself Contains at least one base case which halts the recursion and at least one recursive call -> conditional

#2
Front (Question)

Each recursive call contains

Back (Answer)

its own local variables, including formal parameters

#3
Front (Question)

Any recursive solution can be replicated through

Back (Answer)

use of iterative approach

#4
Front (Question)

Infinite recursion

Back (Answer)

Value is not changing in a way that allow base case to be reached -> CallStackOverFlowException

#5
Front (Question)

Parameter values capture

Back (Answer)

progress of recursive process

#6
Front (Question)

Recursion can be used to traverse

Back (Answer)

String, array, and ArrayList objects

#7
Front (Question)

Binary search algorithm

Back (Answer)

Data must be sorted Starts in middle of sorted array or ArrayList and eliminates half of the array or ArrayList in each iteration until desired value is found or all elements has been eliminated

#8
Front (Question)

Binary search algorithm can be written

Back (Answer)

both iteratively or recursively

#9
Front (Question)

What do we o when lowPosition > highPosition?

Back (Answer)

Return -1 Value does not lie within list

#10
Front (Question)

Merge sort

Back (Answer)

Recursive sorting algorithm that can be used to sort elements in an array or ArrayList mergeSort(myList) { mergeSort(left) mergeSort(right) mergeSort(left & right) }

#11
Front (Question)

Merge Method

Back (Answer)

Copy original elements to a temporary array and compares the two array to sort a list merge(myArray, low, middle, high)