Lecture 0 and 1

 0    11 tarjetas    kapi2304
descargar mp3 imprimir jugar test de práctica
 
término język polski definición język polski
What are algorithms?
empezar lección
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:
empezar lección
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:
empezar lección
The algorithm
Which is the most appropriate definition for recursion?
empezar lección
A function that calls another execution instance of the same function.
Problems that can only be defined recursively can be solved using recursion.
empezar lección
False
Which of the following statement is false?
empezar lección
Every recursive function must have a return value.
Factorial function
empezar lección
num * fact(num - 1)
Recursion is the process of describing an action in terms of itself.
empezar lección
True
A recursive function may or may not have a recursive case.
empezar lección
False
A factorial is the product of an integer and all the positive integers greater than it.
empezar lección
False
Only problems that are recursively defined can be solved using recursion.
empezar lección
False

Debes iniciar sesión para poder comentar.