banner

What is an algorithm?Last updated: Sep 19, 2025

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 based on fixed rules.

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 HuluRecognizing voices to use tools such as Siri or Alexa

  • Unlocking a phone through facial recognition

  • Making traffic predictions on a GPS app

  • Filtering spam emails

 



  • search

    chat widget