Quiz questions Flashcards
What characteristic is necessary to exist in the definition of an algorithm?
a. Execute a finite amount of instructions
b. Unambiguous instructions
c. Produce the required output
What is the method for the GCD of two numbers (a and b) that defines it as GCD(a,b) = GCD(b, a mod b), where a>=b?
Select one:
a. Consecutive Integer Checking
b. Factorisation Method (Middle-school Procedure) Incorrect
c. Reverse Consecutive Integer Checking
d. Euclid’s Method
d. Euclid’s Method
What is the origin of the name “algorithm”?
From the name of a Persian mathematician called Al-Khwarizmi
Why is it so hard to use measure the performance of an algorithm using a standard unit of time?
Dependence on the speed of a particular computer, Dependence on the quality of the program implementing the algorithm,
Dependence on the quality of the compiler used to generate the executable,
Difficulty of clocking the time precisely
Algorithms may be classified in many ways. Which item below consists of a category of algorithms?
a. Distributed Algorithms
b. Approximate Algorithms
c. Random Algorithms Correct
d. Deterministic Algorithms
e. Recursive Algorithms
a. Distributed Algorithms
b. Approximate Algorithms
d. Deterministic Algorithms
e. Recursive Algorithms