algorithm
News •
-
What is an algorithm in mathematics?
An algorithm in mathematics is a systematic procedure that produces the answer to a question or the solution to a problem in a finite number of steps. Algorithms exist for many infinite classes of questions; Euclid's Elements, published about 300 BCE, contained one for finding the greatest common divisor of two natural numbers.
The word algorithm originally referred to the Arabic numeral system and was derived from the Latin form of al-Khwarizmi's name.
3 Britannica SourcesCreated from Britannica articles using AI. AI can make mistakes, so verify using Britannica articles. -
Why are algorithms important in solving math problems?
Algorithms are essential in solving math problems because they provide a systematic procedure that leads to an answer in a finite number of steps. They are not just for computers; they can also describe the steps to solve a Rubik's Cube or make a pizza.
For problems with a finite set of values, an algorithm always exists. Algorithms also exist for infinite classes of questions, like determining the greatest common divisor of two numbers.
In computer science, the development and analysis of algorithms is crucial for solving computational problems efficiently. The simplex method, for example, is a highly efficient algorithm used to solve optimization problems on computers.
4 Britannica SourcesCreated from Britannica articles using AI. AI can make mistakes, so verify using Britannica articles. -
What are some simple examples of algorithms in math?
An algorithm in mathematics is a step-by-step procedure for solving a problem.
Some simple examples include:
* The Euclidean algorithm is a method for finding the greatest common divisor (GCD) of two numbers. For instance, to find the GCD of 56 and 12, divide 56 by 12 to get a quotient of 4 and a remainder of 8, expressed as 56 = 4 Ă 12 + 8. Next, divide the divisor (12) by the remainder (8) to get 12 = 1 Ă 8 + 4. Then, divide the previous divisor (8) by the previous remainder (4) to get 8 = 2 Ă 4 + 0. The GCD is 4.
* Gauss elimination is a technique in algebra used to solve systems of linear equations by reducing them to a simpler form.
* Synthetic division provides a shortcut for dividing a polynomial by another of a lesser degree.
* Sorting algorithms order elements in a list.5 Britannica SourcesCreated from Britannica articles using AI. AI can make mistakes, so verify using Britannica articles. -
How does following the steps of an algorithm help in getting the correct answer?
Following the steps of an algorithm ensures a systematic procedure is followed to solve a problem or answer a question. An algorithm is a finite sequence of well-defined, computer-implementable instructions, typically to solve a class of problems.
Algorithms break down complex problems into manageable steps. Each step is precisely defined, reducing ambiguity and potential errors. By following the algorithm, you proceed logically, step-by-step, toward the correct solution. The systematic nature of algorithms also makes it easier to identify and correct errors, as each step can be independently verified.
2 Britannica SourcesCreated from Britannica articles using AI. AI can make mistakes, so verify using Britannica articles. -
What is the difference between an algorithm and a formula?
An algorithm is a systematic procedure that solves a problem through a finite number of steps, applicable in math, computer science, and everyday problem-solving. It contrasts with a formula, which is a concise expression, often mathematical, that describes a relationship or rule. For example, the area of a rectangle is width multiplied by the height. While a formula provides a direct calculation or relationship, an algorithm outlines a step-by-step method to achieve a result.
4 Britannica SourcesCreated from Britannica articles using AI. AI can make mistakes, so verify using Britannica articles. -
How can creating your own algorithm help solve a new math problem?
Creating your own algorithm can be a powerful approach to solving new math problems. An algorithm is a step-by-step procedure for solving a problem.
By developing a novel algorithm, you're essentially designing a specific method tailored to the unique characteristics of the problem you're tackling. This involves understanding the problem's constraints, identifying patterns, and devising a series of operations that lead to a solution. The process might involve adapting existing algorithms or inventing entirely new approaches. The efficiency of algorithms is measured by the computing resources (time and space) that the algorithm consumes when it runs.
4 Britannica SourcesCreated from Britannica articles using AI. AI can make mistakes, so verify using Britannica articles.
algorithm, systematic procedure that producesâin a finite number of stepsâthe answer to a question or the solution of a problem. The name derives from the Latin translation, Algoritmi de numero Indorum, of the 9th-century Muslim mathematician al-Khwarizmiâs arithmetic treatise âAl-Khwarizmi Concerning the Hindu Art of Reckoning.â
For questions or problems with only a finite set of cases or values an algorithm always exists (at least in principle); it consists of a table of values of the answers. In general, it is not such a trivial procedure to answer questions or problems that have an infinite number of cases or values to consider, such as âIs the natural number (1, 2, 3,âŠ) a prime?â or âWhat is the greatest common divisor of the natural numbers a and b?â The first of these questions belongs to a class called decidable; an algorithm that produces a yes or no answer is called a decision procedure. The second question belongs to a class called computable; an algorithm that leads to a specific number answer is called a computation procedure.
Algorithms exist for many such infinite classes of questions; Euclidâs Elements, published about 300 bce, contained one for finding the greatest common divisor of two natural numbers. Every elementary-school student is drilled in long division, which is an algorithm for the question âUpon dividing a natural number a by another natural number b, what are the quotient and the remainder?â Use of this computational procedure leads to the answer to the decidable question âDoes b divide a?â (the answer is yes if the remainder is zero). Repeated application of these algorithms eventually produces the answer to the decidable question âIs a prime?â (the answer is no if a is divisible by any smaller natural number besides 1).
Sometimes an algorithm cannot exist for solving an infinite class of problems, particularly when some further restriction is made upon the accepted method. For instance, two problems from Euclidâs time requiring the use of only a compass and a straightedge (unmarked ruler)âtrisecting an angle and constructing a square with an area equal to a given circleâwere pursued for centuries before they were shown to be impossible. At the turn of the 20th century, the influential German mathematician David Hilbert proposed 23 problems for mathematicians to solve in the coming century. The second problem on his list asked for an investigation of the consistency of the axioms of arithmetic. Most mathematicians had little doubt of the eventual attainment of this goal until 1931, when the Austrian-born logician Kurt Gödel demonstrated the surprising result that there must exist arithmetic propositions (or questions) that cannot be proved or disproved. Essentially, any such proposition leads to a determination procedure that never ends (a condition known as the halting problem). In an unsuccessful effort to ascertain at least which propositions are unsolvable, the English mathematician and logician Alan Turing rigorously defined the loosely understood concept of an algorithm. Although Turing ended up proving that there must exist undecidable propositions, his description of the essential features of any general-purpose algorithm machine, or Turing machine, became the foundation of computer science. Today the issues of decidability and computability are central to the design of a computer programâa special type of algorithm.

" height="20" alt="HEW Logo">