Algorithms Flashcards

1
Q

what is an algorithm?

A

an ordered list of actions that describe how to perform a task or solve a problem

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

what should an action be?

A
  • imperative: it is a command to do something
  • feasible: the algorithm’s recipient has the ability to perform it
  • self-explanatory: the algorithm’s recipient knows how to perform it without further elaboration
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

what is the difference between a problem and an algorithm?

A

a problem is a task to be carried out while an algorithm is a specific set of steps for how to carry out a task

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