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.

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

Properties of algorithms (7)

A
  1. ) Input.
  2. ) Output.
  3. ) Definitness.
  4. ) Correctness.
  5. ) Finitness.
  6. ) Effectiveness.
  7. ) Generality.
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

Pseudocode (2)

A
  1. ) Pseudocode is a description of what the code will do.

2. ) It is written in English like syntax but using typical coding indentation.

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

Big O (2)

A
  1. ) Classifies Algorithms based on how they react to a change in input size.
  2. ) Letter O means the order of the algorithm.
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

Worst case time complexity (1)

A

1.) Maximum number of operations that can be performed, given a problem size.

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

Difference between Performance and Time Complexity

A
  1. ) Performance refers to how much “computational power” is required and used by the algorithm.
  2. ) Time complexity refers to how the resource requirements of an algorithm scale with the problem size.
How well did you know this?
1
Not at all
2
3
4
5
Perfectly