Algorithms Flashcards
1
Q
What is an Algorithm (1)
A
1.) An algorithm is a finite number of steps/instructions which solve a particular problem or task.
2
Q
Properties of algorithms (7)
A
- ) Input.
- ) Output.
- ) Definitness.
- ) Correctness.
- ) Finitness.
- ) Effectiveness.
- ) Generality.
3
Q
Pseudocode (2)
A
- ) Pseudocode is a description of what the code will do.
2. ) It is written in English like syntax but using typical coding indentation.
4
Q
Big O (2)
A
- ) Classifies Algorithms based on how they react to a change in input size.
- ) Letter O means the order of the algorithm.
5
Q
Worst case time complexity (1)
A
1.) Maximum number of operations that can be performed, given a problem size.
6
Q
Difference between Performance and Time Complexity
A
- ) Performance refers to how much “computational power” is required and used by the algorithm.
- ) Time complexity refers to how the resource requirements of an algorithm scale with the problem size.