An algorithm is a defined procedure or set of rules for solving a problem, processing data, or making a calculation.
In AI and machine learning, algorithms shape how data is analyzed, how models are trained, and how predictions or recommendations are produced.