Quiz questions Flashcards

1
Q

What characteristic is necessary to exist in the definition of an algorithm?

A

a. Execute a finite amount of instructions
b. Unambiguous instructions
c. Produce the required output

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

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

A

d. Euclid’s Method

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

What is the origin of the name “algorithm”?

A

From the name of a Persian mathematician called Al-Khwarizmi

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

Why is it so hard to use measure the performance of an algorithm using a standard unit of time?

A

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

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

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

a. Distributed Algorithms
b. Approximate Algorithms
d. Deterministic Algorithms
e. Recursive Algorithms

How well did you know this?
1
Not at all
2
3
4
5
Perfectly