Skip to content

The Story of Algorithms: Where did Algorithms come from

Algorithms go back thousands of years, from ancient Babylonian square-root methods through Al-Khwarizmi and Babbage to modern computing.

Eyeglasses in front of a computer screen displaying lines of code.

Algorithms are an integral part of modern life, playing a critical role in everything from online shopping to self-driving cars. While we tend to associate algorithms with computers and mathematics, the concept of an algorithm dates back thousands of years to the ancient world.

One of the earliest examples of an algorithm is the ancient Babylonian method of computing square roots, known as the Heron's method. This technique involved a series of approximations to calculate the square root of a number. Another early example is the Euclidean algorithm, set out by the Greek mathematician Euclid for finding the greatest common divisor of two numbers.

In the Middle Ages, the development of algebra and trigonometry led to the creation of more complex algorithms, such as the algorithm for solving quadratic equations developed by the mathematician Al-Khwarizmi. This algorithm, which involved completing the square, is still used today in various forms.

The 17th and 18th centuries saw significant advances in the development of algorithms, particularly in the areas of calculus and number theory. The French mathematician Pierre de Fermat, for example, developed an algorithm for finding the maximum and minimum values of a function. Another notable algorithm is the Sieve of Eratosthenes, developed by the Greek mathematician Eratosthenes for finding prime numbers.

The Industrial Revolution brought about significant advances in algorithm development, as well as the creation of the first mechanical computers. Charles Babbage, known as the father of computing, designed the first mechanical computer in the mid-1800s. His Analytical Engine was designed to be run by punched cards holding a "program," which is a series of instructions for a computer to follow, and Ada Lovelace published programs for it in 1843.

In the 20th century, electronic computers revolutionized the field of algorithm development. Computer scientists developed algorithms for sorting, searching, and other fundamental operations, which formed the basis for modern computer science. Today, algorithms are used in a wide range of applications, from data analysis to machine learning to cryptography.

In conclusion, the history of algorithm development is a fascinating journey that spans thousands of years and encompasses diverse fields of study. While we tend to think of algorithms in the context of mathematics and computers, their origins lie in ancient civilizations and the human quest for knowledge and problem-solving. By understanding the history of algorithms, we can appreciate their essential role in human progress and innovation.

Key facts

Earliest example
The Babylonian method of computing square roots, known as Heron's method
Quadratic equations
Al-Khwarizmi's algorithm involved completing the square
Prime numbers
The Sieve of Eratosthenes finds prime numbers
Maxima and minima
Pierre de Fermat developed an algorithm for finding the maximum and minimum values of a function
Mechanical computer
Charles Babbage designed the first mechanical computer in the mid-1800s
Modern era
Electronic computers in the 20th century drove algorithms for sorting and searching

Questions people ask

Where does the word "algorithm" come from?

It comes from the name of the mathematician Al-Khwarizmi. The Latin version of his work on Hindu-Arabic numerals was titled Algoritmi de numero Indorum, and the word grew out of that name.

What is the Euclidean algorithm?

It is a method for finding the greatest common divisor of two numbers. It appears in Book VII of the Elements by Euclid, who taught at Alexandria and lived from about 325 to 265 BC.

What is the Sieve of Eratosthenes?

It is a method for finding prime numbers, devised by the Greek scholar Eratosthenes, who lived from about 276 to 194 BC.

Did Babbage ever build his machines?

Not in his lifetime. His Analytical Engine never got beyond detailed drawings from around 1834. His Difference Engine No. 2 design was finally built in London in 2002.

Who wrote the first computer program?

Ada Lovelace is widely credited with it. Her 1843 notes on Babbage's Analytical Engine described how the machine could be programmed and included a program to calculate the Bernoulli numbers.

Sources

  1. Al-Khwarizmi (MacTutor, University of St Andrews) · mathshistory.st-andrews.ac.uk
  2. Euclid of Alexandria (MacTutor, University of St Andrews) · mathshistory.st-andrews.ac.uk
  3. Eratosthenes of Cyrene (MacTutor, University of St Andrews) · mathshistory.st-andrews.ac.uk
  4. Heron of Alexandria (MacTutor, University of St Andrews) · mathshistory.st-andrews.ac.uk
  5. Pierre de Fermat (MacTutor, University of St Andrews) · mathshistory.st-andrews.ac.uk
  6. Charles Babbage (MacTutor, University of St Andrews) · mathshistory.st-andrews.ac.uk
  7. Babbage Engine (Computer History Museum) · computerhistory.org
  8. Ada Lovelace (MacTutor, University of St Andrews) · mathshistory.st-andrews.ac.uk

More in Information Technology

All 17 articles

What is Web 1.0, Web 2.0, and Web 3.0?

Web 1.0 was the static, one-way Web of the 1990s, Web 2.0 added user-generated content and social media, and Web 3.0 aims for a more intelligent, decentralized Web.

What is Artificial Intelligence (AI)

Artificial intelligence is the development of computer systems that perform tasks that usually require human intelligence, such as learning, problem-solving, perception, and decision-making.

Top 5 Hot and Trending Technology Topics

Five hot and trending technology topics, counted down from five to one, starting with cloud computing. Each is having a significant impact on industries and society.