Lecture 0 and 1

 0    11 informačný list    kapi2304
stiahnuť mp3 vytlačiť hrať Skontrolujte sa
 
otázka język polski Odpoveď język polski
What are algorithms?
začať sa učiť
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:
začať sa učiť
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:
začať sa učiť
The algorithm
Which is the most appropriate definition for recursion?
začať sa učiť
A function that calls another execution instance of the same function.
Problems that can only be defined recursively can be solved using recursion.
začať sa učiť
False
Which of the following statement is false?
začať sa učiť
Every recursive function must have a return value.
Factorial function
začať sa učiť
num * fact(num - 1)
Recursion is the process of describing an action in terms of itself.
začať sa učiť
True
A recursive function may or may not have a recursive case.
začať sa učiť
False
A factorial is the product of an integer and all the positive integers greater than it.
začať sa učiť
False
Only problems that are recursively defined can be solved using recursion.
začať sa učiť
False

Ak chcete pridať komentár, musíte byť prihlásený.