ADV SYSTEMS DEVELOPMENT I Chapter 12

Pataasin ang iyong marka sa homework at exams ngayon gamit ang Quizwiz!

What is referred to as the recursive case?

A way to solve the problem in all other circumstances using recursion

What is the first step that needs to be taken in order to apply a recursive approach?

Identify at least one case in which the problem can be solved without recursion.

Function A calls function B, which calls function C, which calls function A. This is called _____ recursion.

indirect

Recursive functions are _____ iterative algorithms.

less efficient than

Recursion is _____.

never required to solve a problem

A recursive function includes _____ which are not necessary in a loop structure.

overhead actions

A problem can be solved with recursion if it can be broken down into _____ problems.

smaller

If the problem can be solved immediately without recursion, then the recursive function _____.

solves it and returns

What is referred to as the base case?

At least one case in which the problem can be solved without recursion

If the problem cannot be solved now, then a recursive function reduces it to a smaller but similar problem and _____.

calls itself to solve the smaller problem


Kaugnay na mga set ng pag-aaral

CoursePoint examples fluid balance, electrolytes, acid/base

View Set

Making Tough Choices: Writing for Your Audience

View Set

NUR112: Fundamentals Test 1: Chapters 1,2,22,23,30,& 44

View Set

Chapter 17 Preoperative Nursing Management

View Set