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
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
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