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

您必须登录才能发表评论。