In a work generally dated to around 825 CE, the Baghdad-based scholar Muhammad ibn Musa al-Khwarizmi explained calculation using Hindu numerals, including zero. Medieval Latin versions of his name helped give us “algorithm”; the title of another work, al-jabr, gave us “algebra.”Statue of al-Khwarizmi, whose name gave us 'algorithm'. (Source: Konstik / Getty Images)The etymology carries a warning. An algorithm is not an oracle, but a method for turning inputs into outputs—once through human-written rules and now, increasingly, through patterns learned from data.The recent machine-learning era of AI was largely about prediction: finding patterns in data. Generative AI made it...