Algorithms

Overview

An algorithm is a series of steps for completing a task. Broadly, this includes everything from the instructions in a recipe and the procedures used to solve mathematical problems to the software underlying search engines and the ways AI systems identify patterns in data. Colloquially, algorithms are associated with recommendation systems that provide users with personalized content based on their preferences, as seen in social media feeds.

1440 Findings

Hours of research by our editors, distilled into minutes of clarity.

  • A breakdown of algorithms, how they are constructed, and their applications

    Algorithms are instructions for accomplishing a goal and typically take the form of a step-by-step procedure. Given the conditions, these procedures can take various paths, increasing an algorithm's complexity. While traditional computer algorithms are programmed to account for all possible scenarios within a given process, machine learning systems build their own rules from data-driven patterns.

  • An overview of 12 fundamental types of algorithms and the uses for each

    These include search algorithms to quickly process and find important information, cryptographic algorithms to secure communications, randomized algorithms—such as Monte Carlo simulations for estimating probabilities of outcomes—and greedy algorithms, which make optimal choices based on available data in a step-by-step fashion, as seen in navigation apps.

  • The origin of the term 'algorithm' and how it relates to the numerals used today

    Muhammad ibn Mūsā al-Khwārizmī was a 9th-century mathematician whose works introduced Arabic numerals and the decimal-based numeral system to Europe. The term "algebra" came from the name of his mathematical treatise, "Al-Jabr," and the term "algorithm" came from his Latinized name, Algoritmi.

  • How Ada Lovelace designed the first computer algorithm a century before computers existed

    When translating a description of the Analytical Engine—a machine designed by English mathematician Charles Babbage to handle data entered via punch cards—Lovelace added her own notes, which included a procedure for calculating a sequence of values called Bernoulli numbers. She believed such a device could one day perform computations on non-numeric quantities and even compose music.

  • An explanation of Turing machines—the foundations of digital algorithms and computers

    The device reads data, overwrites or ignores it, and then moves on to the next piece of data based on a set of programmed rules. By imagining this data as zeros and ones—binary that makes up computer code—Turing machines became the theoretical models for how any algorithm could be run on a computer if the procedure could be coded into a set of digital rules.

  • The origin of shortest-path algorithms and how they became optimized for navigation apps

    In 1956, Dutch programmer Edsger Dijkstra spent about 20 minutes developing an algorithm to demonstrate how computers could quickly determine the shortest route between Rotterdam and Groningen. Since then, modified versions of Dijkstra's formulation comprise the processing backbone of systems such as Google Maps and Apple Maps.

  • How algorithms can learn from themselves to become more efficient without human input

    Algorithms can be designed to achieve a specific goal and gradually iterate on themselves based on how well they achieve it. Over time, these iterations transform the original algorithms as they become increasingly efficient, sometimes to the point where the optimized code is too complex to understand.

  • Understanding the causes, effects, and prevalence of algorithmic bias

    Found in search engines, hiring and college admissions tools, facial recognition systems, and other software, algorithms act on the rules they are programmed with, which may be authored by individuals unaware of their own biases. Algorithms based on limited, incomplete, or inaccurate data are more likely to inherit and propagate existing biases.

  • How quantum computers can empower Shor's algorithm to break digital encryption

    Secure communications rely on numeric keys generated by multiplying two enormous prime numbers together, and it is computationally impractical to determine these primes by trying every possible prime number. While Shor's algorithm can provide better guesses for this brute-force approach, it relies on a number that is difficult to determine on classical computers but easier to calculate using the simultaneous computations enabled by quantum superposition.

Explore Science & Technology

Dive into the dynamic world of science and technology, where curiosity has brought about extraordinary understandings of the universe and creativity has led to the breakthroughs and innovations that have transformed our world. Explore a wide range of topics, from the natural and physical sciences to cutting-edge technologies and the people who shaped them, each of which is accompanied by carefully curated resources meant to inform, engage, and inspire those eager to uncover the nature of reality.

View All Science & Technology