Lecture 0 and 1

 0    11 adatlap    kapi2304
letöltés mp3 Nyomtatás játszik ellenőrizze magát
 
kérdés język polski válasz język polski
What are algorithms?
kezdjen tanulni
Algorithms are some well-defined set of instructions, steps, or logic, written such that by following the steps, some specific task is accomplished.
The steps of algorithms design are:
kezdjen tanulni
Obtain a description of the problem, Analyze the problem, Develop a high-level algorithm, Refine the algorithm by adding more detail, Review the algorithm
The major factor in speeding up your getting results is:
kezdjen tanulni
The algorithm
Which is the most appropriate definition for recursion?
kezdjen tanulni
A function that calls another execution instance of the same function.
Problems that can only be defined recursively can be solved using recursion.
kezdjen tanulni
False
Which of the following statement is false?
kezdjen tanulni
Every recursive function must have a return value.
Factorial function
kezdjen tanulni
num * fact(num - 1)
Recursion is the process of describing an action in terms of itself.
kezdjen tanulni
True
A recursive function may or may not have a recursive case.
kezdjen tanulni
False
A factorial is the product of an integer and all the positive integers greater than it.
kezdjen tanulni
False
Only problems that are recursively defined can be solved using recursion.
kezdjen tanulni
False

Kommentár közzétételéhez be kell jelentkeznie.