1/13
These flashcards cover essential vocabulary relevant to the Analysis and Design of Algorithms, focusing on definitions and key concepts discussed in the lecture.
Algorithm
A set of computational steps for solving a well-specified computational problem.
Input
Values that an algorithm receives from a specified set.
Output
Values that an algorithm produces from input values, representing the solution to the problem.
Definiteness
The steps of the algorithm must be defined precisely.
Correctness
An algorithm should produce the correct output values for every set of input values.
Finiteness
An algorithm must produce the desired output after a finite number of steps.
Effectiveness
Each step of an algorithm must be performed exactly and in a finite amount of time.
Generality
The algorithm should apply to all problems of the desired form, not just a specific set of inputs.
Time Complexity
A function that describes the amount of time required to run an algorithm in relation to the size of the input.
Space Complexity
A function that describes the amount of memory an algorithm uses in relation to the size of the input.
Worst-case analysis
The scenario that requires the maximum number of operations to be executed.
Best-case analysis
The scenario that requires the minimum number of operations to be executed.
Insertion Sort
An efficient algorithm for sorting a small number of elements, resembling how people sort playing cards.
Sieve of Eratosthenes
An algorithm for finding all prime numbers up to a specified integer n.