My Docs
BlogGithubLinkedin
Cheat Sheets
Cheat Sheets
  • 📋Cheat Sheets
    • Files
    • Terminal Cheat Sheet
    • Flexbox Cheat Sheet
    • Common HTTP status codes Cheat Sheet
    • networking_cheatsheet
    • Regular Expressions Cheat Sheet
    • REGEX units Cheat Sheet
  • bash_cheatsheet
  • Google dork cheatsheet
  • Cheatsheet-v2
  • 🕸️💻 💻 Javascript
    • JavaScript
      • Javascript Python cheatsheet
      • General
        • JavaScript Promise API Cheat Sheet
        • Chai.js
        • Canvas
        • ES6 EXPORTS
        • Asynchronous JavaScript Cheat Sheet
      • React
        • React Cheat Sheet
          • React Component Guide
        • React Patterns:
        • react-examples
        • React.js
          • Bootstrap
        • React.js cheatsheet 2
        • React-router
        • React.js (v0.14)
        • React.js
        • React Patterns:
      • ⚖️Libraries & Frameworks
        • LOADASH Cheat Sheet
        • sequelize_cheatsheet
        • Sequelize Cheatsheet
      • Node & Express
        • ExpressJS Cheat Sheet
      • CHEATSHEET
      • NPM Cheat Sheet
        • NPM Command Line Cheat Sheet
      • Function Context Cheatsheet
      • js-model
  • 💻CS-Concepts
    • Computer Science Concepts
      • Data Structures
        • The Queue data structure
        • Cheat Sheet for Beginners: JavaScript Data Structures Methods
        • MDN Web Docs Glossary: Definitions of Web-related terms \| MDN
        • Data Structures Cheat Sheet
        • The Tree data structure
        • An Executable Data Structures Cheat Sheet for Interviews
      • networking_cheatsheet
  • Tools
    • 🛠️Tools
      • VSCODE Cheat Sheet
      • Emmet
  • 📼Guides-Tutorials
    • Tutorials
      • React.js
  • JavaScript Arrays
  • editorconfig
  • AWS CLI
  • ES6 EXPORTS
  • Flynn
  • Github
    • Github
      • Github Cheat Sheet
    • git log
    • GITHUB Cheat Sheet
      • An Executable Data Structures Cheat Sheet for Interviews
      • graphs_cheatsheet
  • General
    • General
  • 👨‍💻👨💻 👨💻 💻 Programming Languages
    • 🐍Python:
      • Python
        • What is Python
      • Regex In Python
    • HTML
  • EC2 API tools
    • MARKDOWN
    • 🧘♂ PSQL
      • POSTGRES
      • postgreSQL_cheatsheet
  • ES6 IMPORTS
    • bash_cheatsheet
    • cleancode
    • 🔨Bash
      • Bash Cheat Sheet
      • Learn Bash Scripting: Bash Scripting Cheatsheet
      • Curl
      • Bash Shortcuts Cheat Sheet
      • SSH Cheatsheet
      • Linux
    • CSS
      • CSS
        • CSS Grid
        • cssnext
        • CSS Cheat Sheet
        • CSS Flex Box
        • CSS tricks
        • CSS selectors
        • cssnext
        • CSS background
        • CSS animations
    • Typescript
  • Computer Science Concepts
    • An Executable Data Structures Cheat Sheet for Interviews
    • graphs_cheatsheet
    • networking_cheatsheet
    • Firebase
    • networking_cheatsheet
    • 🛐Heroku Cheat Sheet
    • Binary Tree
  • 📚Docs
    • Docs
      • editorconfig
      • EC2 API tools
      • Asynchronous JavaScript Cheat Sheet
      • CHEATSHEET (3)
      • js-model
      • Emmet
      • Binary Tree
      • Python
      • Contributor Covenant Code of Conduct
      • networking_cheatsheet
      • Common HTTP status codes Cheat Sheet
      • AWS CLI
      • Linux
      • networking_cheatsheet
      • React Patterns:
      • MDN Web Docs Glossary: Definitions of Web-related terms \| MDN
      • JavaScript Arrays
      • Linux
      • Javascript Python cheatsheet
      • Cheatsheet-v2
      • Binary Tree
      • Heroku Cheat Sheet
      • Asynchronous JavaScript Cheat Sheet
      • Cheatsheet Compilation
      • AWS CLI
      • EC2 API tools
      • Common HTTP status codes Cheat Sheet
      • Firebase
      • The Queue data structure
      • Cheat Sheet for Beginners: JavaScript Data Structures Methods
Powered by GitBook
On this page
  • ::: {.wiki-left-present .content-layout} ::: {.section .document-toc} On this Page
  • Learn more
  • ::: {.section .newsletter-container} :::
  • :::

Was this helpful?

Edit on GitHub
  1. CS-Concepts
  2. Computer Science Concepts
  3. Data Structures

MDN Web Docs Glossary: Definitions of Web-related terms \| MDN

PreviousCheat Sheet for Beginners: JavaScript Data Structures MethodsNextData Structures Cheat Sheet

Last updated 3 years ago

Was this helpful?

::: {#react-container data-component-name="SPA"} ::: {.loading-bar} :::

  • {#skip-main}

  • {#skip-language}

  • {#skip-search}

  • Technologies

    • Technologies Overview

    • HTML

    • CSS

    • JavaScript

    • Graphics

    • HTTP

    • APIs / DOM

    • Browser Extensions

    • MathML

  • References & Guides

    • Learn web development

    • Tutorials

    • References

    • Developer Guides

    • Accessibility

    • Game development

    • ...more docs

  • Feedback

    • Send Feedback

    • Get Firefox help 🌐

    • Get web development help 🌐

    • Join the MDN community

    • Report a content problem 🌐

    • Report an issue 🌐

::: {.header-search} Search MDN

Open search :::

::: {role="main"} ::: {.titlebar-container} ::: {.titlebar} ::: :::

::: {.full-width-row-container} ::: {.max-content-width-container}

  1. [See ]{.pre-text}[MDN Web Docs Glossary: Definitions of Web-related terms]{property="name"}{.breadcrumb-previous}

  2. [Algorithm]{property="name" aria-current="page"}{.crumb-current-page}

::: {.dropdown-container .language-menu} English[▼]{.dropdown-arrow-down aria-hidden="true"}

  • عربي

  • Deutsch

  • Español

  • Français

  • Bahasa Indonesia

  • 日本語

  • 한국어

  • Polski

  • Português (do Brasil)

  • Русский

  • Українська

  • Tiếng Việt

  • 中文 (简体)

  • 正體中文 (繁體)

  • Add a translation{#translations-add} ::: ::: :::

::: {.wiki-left-present .content-layout} ::: {.section .document-toc} On this Page

Jump to section

::: {#content .article .text-content} An algorithm is a self-contained series of instructions to perform a function.

In other words, an algorithm is a means of describing a way to solve a problem so that it can be solved repeatedly, by humans or machines. Computer scientists compare the efficiency of algorithms through the concept of "Algorithmic Complexity" or "Big O" notation.

For example:

  • A cooking recipe is a simple algorithm for humans.

  • A sorting algorithm is often used in computer programming to explain a machine how to sort data.

Common algorithms are Pathfinding algorithms such as the Traveling Salesman Problem, Tree Traversal algorithms and so on.

There are also Machine Learning algorithms such as Linear Regression, Logistic Regression, Decision Tree, Random Forest, Support Vector Machine, Recurrent Neural Network (RNN), Long Short Term Memory (LSTM) Neural Network, Convolutional Neural Network (CNN), Deep Convolutional Neural Network and so on.

Learn more

General knowledge

  • Algorithm{.external} on Wikipedia

Technical reference

  • Explanations of sorting algorithms{.external}

  • Explanations of algorithmic complexity{.external}

::: {.metadata} ::: {.section .document-meta}

Metadata

  • Last modified: Nov 23, 2019, by MDN contributors ::: ::: ::: ::: :::

::: {.section .newsletter-container} :::

Get the latest and greatest from MDN delivered straight to your inbox.

The newsletter is offered in English only at the moment. :::

::: {.form-group .newsletter-group-email} E-mail :::

::: {#newsletter-privacy .form-group .form-group-agree .newsletter-group-privacy aria-hidden="false"} I'm okay with Mozilla handling my info as explained in this Privacy Policy. :::

::: {.newsletter-group-submit} Sign up now :::

Hide Newsletter Sign-up ::: :::

::: {.content-container} MDN Web Docs{.nav-footer-logo}

  • Web Technologies

  • Learn Web Development

  • About MDN

  • Feedback

  • About

  • MDN Web Docs Store

  • Contact Us

  • Firefox

::: {.social .social-mdn}

MDN

:::

::: {.social .social-moz}

Mozilla

:::

© 2005-2020 Mozilla and individual contributors. Content is available under these licenses.

  • Terms

  • Privacy

  • Cookies ::: :::

:::

Sign in to enjoy the benefits of an MDN account. If you haven't already created an account, you will be prompted to do so after signing in.

::: {.auth-button-container} Sign in with Github{.github-auth} Sign in with Google{.google-auth} :::

Close modal ::: :::

:::

💻
Skip to main content
Select language
Skip to search
Learn more
Related topics