An algorithm is a set of step-by-step instructions to complete a specific task or solve a problem. Algorithms are use in both traditional computer programming and machine learning.
Traditional Programming:
- The programmer explicitly codes a set of fixed rules and logic to process input and produce output.
- The programmer designs the algorithm step-by-step, and the program always follows these predefined instructions exactly.
- Changes or new scenarios require manual code modification.
- Traditional programming is ideal for tasks with clear, predictable logic.
- Calculating taxes
- Compiling computer code
- Formatting a document
Machine Learning:
- Machine learning algorithms do not rely on explicit instructions. Instead, they learn patterns and relationships from large datasets during a training process.
- The algorithm creates a model that can make predictions or decisions on new data
- Machine learning excels in environments with complex, evolving patterns that cannot easily be captured by explicit rules
- Providing movie recommendations from Netflix or Hulu
- Recognizing voices to use tools such as Siri or Alex
- Unlocking a phone through facial recognition