If you're seeing this message, it means we're having trouble loading external resources for Khan Academy.

If you're behind a web filter, please make sure that the domains *.kastatic.org and *.kasandbox.org are unblocked.

Skip to main content
Subjects
  • Math by subject
    • Early math
    • Arithmetic
    • Algebra
    • Geometry
    • Trigonometry
    • Probability & statistics
    • Calculus
    • Differential equations
    • Linear algebra
    • Math for fun and glory
  • Math by grade
    • K–2nd
    • 3rd
    • 4th
    • 5th
    • 6th
    • 7th
    • 8th
  • Science & engineering
    • Physics
    • Chemistry
    • Organic Chemistry
    • Biology
    • Health & medicine
    • Electrical engineering
  • Computing
    • Computer programming
    • Computer science
    • Hour of Code
    • Computer animation
  • Arts & humanities
    • Art history
    • Grammar
    • Music
    • US history
    • World history
  • Economics & finance
    • Microeconomics
    • Macroeconomics
    • Finance & capital markets
    • Entrepreneurship
  • Test prep
    • SAT
    • MCAT
    • GMAT
    • IIT JEE
    • NCLEX-RN
    • CAHSEE
    • AP* Art History
  • College Admissions
    DonateSign in / Sign up
    Search for subjects, skills, and videos
    Main content
    Computer science
    Algorithms

    Intro to Algorithms

    3 articles
    1 video
    What are algorithms and why should you care? We'll start with an overview of algorithms and then discuss two games that you could use an algorithm to solve more efficiently - the number guessing game and a route-finding game.
    4:39

    What is an algorithm and why should you care?

    A guessing game

    Route-finding

    Discuss: Algorithms in your life