Algorithms Flashcards
1
Q
What is an algorithm?
A
A step-by-step procedure or a set of rules to solve specific problems expressed in basic or natural language.
2
Q
What purposes does an algorithm have?
A
Defines how the program will achieve its intended outcome and the logic behind the code.
3
Q
Name 5 purposes of algorithms
A
- Problem solving
- Automation of tedious tasks
- Efficiency of computer resources
- Accuracy and reliability
- Innovation
4
Q
Name 3 examples of algorithms
A
- Search engines
- E commerce
- Social media networks
5
Q
What are the key characteristics of a good algorithm?
A
- Clear and precise
- Well ordered
- Finite
- Input and output
- Effective
6
Q
What are some examples of algorithms in programming?
A
- Search
- Sorting
- Mathematical
- Machine learning