Algorithms Illuminated: Part 1: The Basics

What Is an Algorithm? | Definition & Examples Published on by Kassiani Nikolopoulou. Revised on . An algorithm is a set of steps for accomplishing a task or solving a problem. Typically, algorithms are executed by computers, but we also rely on algorithms in our daily lives. Each time we follow a particular step-by-step process, like making coffee in the morning ...

Algorithms Illuminated: Part 1: The Basics 1

We've partnered with Dartmouth college professors Tom Cormen and Devin Balkcom to teach introductory computer science algorithms, including searching, sorting, recursion, and graph theory.

Algorithms Illuminated: Part 1: The Basics 2

Algorithms are everywhere — from sorting social media feeds to guiding self-driving cars. But what exactly is an algorithm? In this tutorial, we’ll break it down in simple terms. You’ll learn what an algorithm is, how it works, and explore different types of algorithms used in technology and everyday life. Whether you’re just starting or looking to strengthen your basics, this guide ...

Algorithms Illuminated: Part 1: The Basics 3

Flowchart of using successive subtractions to find the greatest common divisor of number r and s In mathematics and computer science, an algorithm (/ ˈælɡərɪðəm / ⓘ) is a finite sequence of mathematically rigorous instructions, typically used to solve a class of specific problems or to perform a computation. [1] Algorithms are used as specifications for performing calculations and ...

Algorithms Illuminated: Part 1: The Basics 4

Algorithms can be simple or complex, depending on the task. Think of it like following a recipe: step-by-step instructions lead to the desired outcome. Properties of an Algorithm An algorithm is a precise set of instructions to solve a problem. For a set of instructions to qualify as an algorithm, it must have the following properties:

Algorithms Illuminated: Part 1: The Basics 5