13 May 2023

学计算机的同学都知道,算法是解决领域问题的一个关键工具。算法 Algorithm is a step-wise representation of a solution to a given problem. In Algorithm the problem is broken down into smaller pieces or steps hence, it is easier for the programmer to convert it into an actual program.

那么,算法这个词是怎么来的呢?故事要从公元 780 年说起,这一年,波斯帝国大呼罗珊地区的花剌子模诞生了一位数学家,名叫阿尔·花拉子模(Abu Abdulloh Muhammad ibn Muso al-Xorazmiy)。花剌子模位于当时波斯帝国的东部,现为乌兹别克花拉子模州。

阿尔·花剌子模写了本书叫《代数学》(Kitab al-Jabr wa-l-Muqabala)是第一本解决一次方程及一元二次方程的系统著作,他因而被称为代数的创造者。所以,英语中的 algebra 就是从 al-Jabr 转来的。al-jabr 是解决一元二次方程的两个办法之一。

而 algorithm 则是从 algoritmi 演化而来。Algoritmi 是花剌子模的阿拉伯文 Al-khwarizmi 转变而来。意思是来自(al)花剌子模(Xorazmiy)的人。

所以说,英语中算法 algorithm 其实是一个数学家名字的错误拼写形式。

德语保留了一些拉丁语后缀:Algorithmus,法语意大利语则为了读音习惯改为 algorithme 和 algoritmo。瑞典语比较接近拉丁语,写作 algoritm。