ELI5
Explain it like I’m five日本語English
In one lineAn algorithm is a clearly defined set of steps or method of calculation for solving a problem or reaching a goal.
An algorithm is a set of steps for solving a problem or doing a job. Think of a recipe. “First do this, then do that,” in order. The word comes from al-Khwarizmi, a Persian mathematician who worked around the 800s. The same problem can be solved fast or slow. It depends on how clever the steps are. Looking for a name in a phone book? If you open it in the middle first, that is a fine algorithm too. You use algorithms every day without knowing. Getting dressed has one. Socks before shoes.
Around 825, al-Khwarizmi, a Persian scholar working in Baghdad, wrote a book on calculating with the numerals that came from India, the ancestors of our 0 to 9. When the book was translated into Latin, his name was written something like “Algorithmi,” and the word algorithm grew from it. In medieval Europe, “algorism” meant doing arithmetic with those new numbers.
One of the oldest recorded algorithms is Euclid’s method for finding the greatest common divisor of two numbers, from his Elements, around 300 BC. A favorite today is binary search: look at the middle of a sorted list, decide whether what you want is in the first or second half, and keep cutting in half. Even with a million items, it takes only about 20 steps. One good idea can change the time needed by huge amounts.
Sources:Wikipedia: Algorithm、Wikipedia: Binary search、Wikipedia (ja): アルゴリズム
Could you explain “algorithm”?
Tap to see what everyone said.
Machine learningQ. Do people write all the rules in machine learning?
Deep learning
BinaryBinary is a way to write every number with just two digits, 0 and 1.
Claude Code
Muse (Meta’s AI)Muse is an AI agent from Meta, the company behind Instagram and Facebook.
Generative AIQ. Does generative AI just copy and paste from the internet?
Large language model (LLM)Q. Does an LLM memorize its answers?
Prompt (AI)A prompt is the instruction or question you type into a generative AI.
AI hallucination
AI image generation
Deepfake
AI agentQ. Is an AI agent just a chat AI?Source (in Japanese): Wikipediaで「アルゴリズム」を調べる