Lecture 0 and 1

 0    11 フィッシュ    kapi2304
mp3をダウンロードする 印刷 遊びます 自分をチェック
 
質問 język polski 答え język polski
What are algorithms?
学び始める
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:
学び始める
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:
学び始める
The algorithm
Which is the most appropriate definition for recursion?
学び始める
A function that calls another execution instance of the same function.
Problems that can only be defined recursively can be solved using recursion.
学び始める
False
Which of the following statement is false?
学び始める
Every recursive function must have a return value.
Factorial function
学び始める
num * fact(num - 1)
Recursion is the process of describing an action in terms of itself.
学び始める
True
A recursive function may or may not have a recursive case.
学び始める
False
A factorial is the product of an integer and all the positive integers greater than it.
学び始める
False
Only problems that are recursively defined can be solved using recursion.
学び始める
False

コメントを投稿するにはログインする必要があります。