Classic AI with CS50 AI

Months 4–50/8

CS50's Introduction to AI with Python: search, logic, probability, optimization, learning, neural networks and language.

This is the core of the path: seven weeks that cover the big ideas of AI from search to language models, each with hands-on Python projects. Budget 10–15 hours a week (about 7–10 weeks total). Prerequisite, in the course's words: "CS50x or at least one year of experience with Python."

WeekTopicCore ideas to masterCheck yourself: can you explain…
0SearchStates, actions, goal tests; depth-first vs breadth-first search; greedy best-first and A* with heuristics; adversarial search with minimax and alpha-beta pruningWhy A* finds the shortest path when its heuristic never overestimates?
1KnowledgePropositional logic, entailment, model checking, inference rules, resolution; a glimpse of first-order logicHow a program can deduce a fact it was never told?
2UncertaintyProbability, conditional probability, Bayes' rule, Bayesian networks, sampling, Markov chains and hidden Markov modelsHow to update a belief when new evidence arrives?
3OptimizationLocal search (hill climbing, simulated annealing), linear programming, constraint satisfaction with backtracking and arc consistencyWhy hill climbing can get stuck, and how annealing escapes?
4LearningNearest-neighbor, perceptron, support vector machines, regression; loss functions; overfitting and regularization; Q-learning; k-means clusteringThe difference between training error and test error?
5Neural networksNeurons, activation functions, gradient descent, backpropagation, multilayer, convolutional and recurrent networks; TensorFlow/KerasWhat backpropagation actually computes?
6LanguageSyntax and parsing, n-grams, bag-of-words and Naive Bayes, word embeddings, attention and the transformerWhy attention let models handle long text better than recurrent networks?

How to get the most out of it

  • Do every project. They are where the ideas click: you build a game-playing AI, a logic puzzle solver, a probability model, a crossword solver, an image classifier and a language model component, among others.
  • Write a one-paragraph summary of each week in your own words before moving on. If you can't, rewatch the part you can't explain.
  • Draw the algorithms. Trace BFS, minimax and backpropagation by hand on a tiny example once each.
  • Notice the arc: weeks 0–3 are symbolic AI (humans write the rules and the search); weeks 4–6 are machine learning (the system learns from data). Modern AI is mostly the second, but the first still powers planning, games, scheduling and verification.

Week topics from the course site, checked November 2026; check the current syllabus at cs50.harvard.edu/ai.

Phase 2 checklist0 of 8 done · saved in this browser