MIT · on MIT OpenCourseWare

Introduction to Algorithms (6.006)

4.9(8,000) on MIT OpenCourseWare·2M enrolled
Intermediate 45 hours EnglishFREE
Our recommendation
MIT's rigorous introduction to algorithms and data structures, free on OpenCourseWare. It covers the essential algorithms with real mathematical analysis, using Python. Excellent and demanding, though with no certificate and no graded feedback from the free materials.

Good for: Programmers who want a rigorous, university-level grounding in algorithms.

Less suitable if: You are new to programming, or you need a certificate.

Skills you'll gain

AlgorithmsData structuresComplexity analysisSortingGraphsDynamic programming

Is this course right for you?

A good fit if you…

You can already program
You want rigorous algorithms with analysis
You can study independently

Consider something else if you…

You are new to programming
You need a certificate
You want a gentle applied course

Requirements: Programming experience and some maths; intermediate.

Realistic time: About 45 hours of lectures, plus practice.

About this course

6.006 is the undergraduate algorithms course at MIT — the same material, at the same pace, with the same problem sets and exams that MIT students take for credit. Taught by Erik Demaine and Jason Ku, it covers the algorithms and data structures foundational to computer science and software engineering interviews: sequence data structures, sorting algorithms, binary search trees, graphs, BFS and DFS, Dijkstra's and Bellman-Ford, dynamic programming, and complexity analysis.

What you'll learn

Analyze algorithm correctness and time/space complexity rigorously
Implement and compare sorting algorithms and understand their trade-offs
Work with binary search trees, heaps, and hash tables
Apply graph algorithms: BFS, DFS, Dijkstra's, and Bellman-Ford
Design dynamic programming solutions to optimization problems

This course includes

45h
On-demand video
Yes
Mobile access
English
Language

What it costs

Completely free through MIT OpenCourseWare, including lectures and assignments. There is no certificate.

Comparison · LBS

Compare alternatives for Introduction to Algorithms (6.006)

Same topic, different options. We surface the trade-offs others hide so you can pick the course that actually fits your time, budget, and goals.
MIT OpenCourseWare4.9(8,000)
Introduction to Algorithms (6.006)
Price
Free
Completely free, openly licensed — no certificate
Duration
45 hrs
Level
Intermediate
Certificate
freeCodeCamp4.8(15,000)
JavaScript Algorithms and Data Structures Certification
Price
Free
Completely free, forever
Duration
300 hrs
Level
Intermediate
Certificate
Course Certificate
Stanford Online4.8(4,500)
CS107: Programming Paradigms
Price
Free
Free lecture materials available online
Duration
45 hrs
Level
Intermediate
Certificate
freeCodeCamp4.7(3,900)
Relational Database Certification
Price
Free
Completely free, forever
Duration
300 hrs
Level
Intermediate
Certificate
Course Certificate
Prices & availability can change — confirm on the provider's site. We're not affiliated with any single provider.

Instructor

ED
Erik Demaine / Jason Ku
MIT OpenCourseWare instructor
2M+ learners12 courses4.9 instructor rating

Taught by Erik Demaine and Jason Ku, MIT faculty in theoretical computer science. Demaine is known for recreational mathematics and origami-inspired algorithms research.

About this provider

MO
MIT OpenCourseWare
MIT OpenCourseWare — free, openly licensed course materials from MIT's actual courses, including lecture notes, problem sets, and exams. No certificate.
Visit MIT OpenCourseWare

Frequently asked questions

No. OpenCourseWare provides the materials free but does not certify completion.
Completely. All lectures and assignments are open.
Python for the examples, with real mathematical analysis of the algorithms.
Yes. It is rigorous and analysis-heavy, which is also why it teaches so well.
Princeton's uses Java and is on Coursera; MIT 6.006 uses Python and is on OpenCourseWare. Both are excellent — pick by language and platform.
Free
to audit
Enroll now