Skip to content

Harvard CS50 AI Synthesis (2): Project Portfolio — All 12 Projects Compared, Difficulty Tiered & Skill Mapped

Aug 30, 2026 1 min
TL;DR Synthesis 2: Complete comparison of 12 projects — core algorithms, LOC estimates, difficulty tiers, check50 acceptance criteria, transferable skills. With difficulty grading and learning sequence advice.
Table of Contents
  1. TL;DR
  2. Complete 12-Project Comparison Table
  3. Difficulty Tier Details
    1. ⭐ Entry Tier (Warm-up, Confidence Building)
    2. ⭐⭐ Core Tier (Must Master, Interview Staples)
    3. ⭐⭐⭐ Challenge Tier (Most Time-Consuming, Integration Test)
  4. Suggested Learning Sequence & Time Estimates
  5. Project Skill Transfer Map
  6. Common Sticking Points & Fixes
  7. Series Links
  8. References

🌏 中文版

⚠️ Version note: Lecture videos are Spring 2020 recordings (Weeks 0–5) and 2023 re-record (Week 6); project specs, distribution code, and check50 slugs follow the 2026 OCW site.

TL;DR

Twelve projects span search, logic, probability, optimization, ML, RL, CNN, NLP — seven domains. Three difficulty tiers: Entry (Degrees, Shopping), Core (Tic-Tac-Toe, Knights, Minesweeper, Heredity, PageRank, Nim, Parser, Questions), Challenge (Crossword, Traffic). Strict week-order with immediate project parallelism recommended.

Complete 12-Project Comparison Table

#ProjectWeekCore Algorithm/TechEst. Core LOCDifficultycheck50 Key VerificationTransferable Core Skills
1Degrees0BFS Graph Search, Path Reconstruction30-50⭐ EntryShortest path correctness, large dataset perfGraph search abstraction, Frontier pattern, Path reconstruction
2Tic-Tac-Toe0Minimax + Alpha-Beta60-90⭐⭐ CoreUnbeatable strategy, deepcopy correctness, terminal detectionAdversarial tree search, Pruning, Recursive evaluation
3Knights1Model Checking (Logic Inference)40-60⭐⭐ CoreAll 4 puzzles solved, logic encoding correctPropositional logic modeling, Model checking, Knowledge engineering
4Minesweeper1Sentence KB + Subset Inference80-120⭐⭐ CoreSafe/mine inference accuracy, AI win rateDynamic KB, Forward chaining, Subset resolution
5Heredity2Likelihood Weighting Sampling70-100⭐⭐ CoreProbability convergence, prior/inheritance switchingBayesian net sampling, Probabilistic inheritance calc
6PageRank2Power Iteration + Random Walk50-80⭐⭐ CoreIteration convergence, sampling approx match, dampingMarkov chain stationary dist, Random walk, PageRank
7Crossword3AC-3 + Backtracking (MRV/LCV)150-250⭐⭐⭐ ChallengeLarge crossword solved, constraint propagation correctCSP modeling, Arc consistency, Heuristic backtracking
8Shopping4k-NN + StandardScaler40-60⭐ EntrySensitivity/Specificity targets, feature encodingSupervised classification pipeline, Feature preprocessing, Metrics
9Nim4Q-learning (Table-based)60-90⭐⭐ CoreConverged optimal policy, ε-greedy balance, Q-table updateMDP modeling, Tabular RL, Exploration/Exploitation
10Traffic5CNN (Keras/TensorFlow)80-120⭐⭐⭐ ChallengeTest accuracy, model save/load formatCNN architecture design, Training loop, Regularization, Transfer learning basics
11Parser6CYK + Recursive Generation60-90⭐⭐ CoreSyntax judgment correct, generated sentences validCFG parsing, Dynamic programming, Ambiguity handling
12Questions6TF-IDF + Cosine Similarity80-110⭐⭐ CoreDoc/sentence retrieval accuracy, Answer extractionStatistical NLP pipeline, Vector space model, Information retrieval

Difficulty Tier Details

⭐ Entry Tier (Warm-up, Confidence Building)

DegreesBFS Shortest Path

  • Why Simple: Distribution provides Node, QueueFrontier, neighbors_for_person; just implement standard BFS loop
  • Key Pitfall: result no deepcopy needed (single path); Goal check at enqueue optimizes
  • Verification: check50 tests small/large datasets; large must complete within time limit

Shoppingk-NN Classification

  • Why Simple: sklearn.neighbors.KNeighborsClassifier one-liner; focus on data cleaning & evaluate implementation
  • Key Pitfall: Month→numeric, VisitorType/Weekend→bool; Must use StandardScaler or distance distorted
  • Verification: evaluate returns (sensitivity, specificity) not accuracy

⭐⭐ Core Tier (Must Master, Interview Staples)

Tic-Tac-ToeMinimax + αβ

  • Core Challenge: result MUST deepcopy (copy.deepcopy), else parallel board exploration corrupts state
  • Alpha-Beta Key: alpha init -inf, beta init +inf; Prune when v >= beta / v <= alpha
  • Verification: check50 tests all legal positions; AI must never lose (draw or win)

KnightsLogic Puzzle Encoding

  • Core Challenge: Puzzle 3 trickiest — A's utterance unknown, but logical constraints still encodable
  • Encoding Pattern: Identity Or(AKnight, AKnave) ∧ ¬(AKnight ∧ AKnave) + Utterance Implication(AKnight, stmt) ∧ Implication(AKnave, ¬stmt)
  • Verification: Requires 100% pass (not 70%), all four puzzles solved

MinesweeperDynamic KB Inference

  • Core Challenge: add_knowledge iterates to fixpoint; Subset inference S1 ⊂ S2 → S2-S1 = c2-c1 easily missed
  • Key Detail: mark_mine removes cell → count -= 1; mark_safe removes cell → count unchanged
  • Verification: AI auto-infers safe cells & mines across board configurations

HeredityBayesian Net Sampling

  • Core Challenge: Likelihood weighting weight: weight = ∏ P(evidence | parents); Prior vs inheritance probability switching
  • Mutation Handling: Parent gene transmission flips with mutation probability
  • Verification: Probability distributions converge, marginals reasonable

PageRankMarkov Chain Stationary Distribution

  • Core Challenge: No-outlink pages treated as linking to all; Iteration threshold 0.001; Sampling needs large N
  • Two Algorithm Consistency: check50 compares Iterative vs Sampling result closeness
  • Verification: PageRank values sum to 1 (normalized)

NimQ-learning

  • Core Challenge: State as tuple(piles) for Q-table key; Update Q ← Q + α(R + γ max Q' - Q); γ=1 (finite horizon)
  • Exploration: Training ε=0.1, Inference ε=0 pure greedy
  • Verification: Trained AI beats human/random with near-100% win rate

ParserCYK Syntax Parsing

  • Core Challenge: Grammar must be CNF (distribution handles); CYK table fill order: length 1→n, split point k
  • Generation Logic: Recursive random production choice; Terminals emit directly
  • Verification: Valid/invalid sentence judgment correct, generated sentences grammatical

QuestionsTF-IDF QA

  • Core Challenge: TF normalized (divide by max TF), IDF log(N/df), Cosine similarity sparse vectors
  • Two-Stage Retrieval: Find doc → Find sentence; Sentence-level uses "query term coverage density" tie-break
  • Verification: Output best answer sentence per question

⭐⭐⭐ Challenge Tier (Most Time-Consuming, Integration Test)

CrosswordComplete CSP Solver

  • Why Hardest: Must correctly chain AC-3 → MRV → LCV → Forward Checking → Backtracking; Any broken link causes exponential blowup
  • Key Optimizations:
    • add_constraints builds all overlap constraints
    • forward_check filters neighbor domains immediately after assignment
    • count_conflicts implements LCV ordering
  • Verification: Large structures (e.g., structure3.txt) must solve in reasonable time

TrafficCNN Training

  • Why Hard: Not algorithmic — Deep Learning Engineering — Architecture design, Hyperparameter tuning, Training stability
  • Key Decisions:
    • How many Conv2D layers, filters, kernel sizes
    • BatchNorm placement (Post-Conv vs Post-ReLU debate)
    • Dropout rates, Learning Rate, Early Stopping patience
  • Verification: check50 loads traffic_model.h5 on hidden test set, Accuracy threshold high (~95%+)

Suggested Learning Sequence & Time Estimates

Week 0: Degrees (2-4h) → Tic-Tac-Toe (4-6h)
Week 1: Knights (3-5h) → Minesweeper (6-10h)
Week 2: Heredity (4-6h) → PageRank (3-5h)
Week 3: Crossword (10-20h) ⚠️ Reserve ample time
Week 4: Shopping (2-3h) → Nim (4-8h)
Week 5: Traffic (6-15h) ⚠️ GPU/CPU dependent, includes tuning
Week 6: Parser (3-5h) → Questions (4-7h)

Total Estimate: 60-100 hours (incl. debugging, refactoring, check50 iterations)

Project Skill Transfer Map

Graph Search Foundation (Degrees)

    ├─► Adversarial Search (Tic-Tac-Toe)
    │     │
    │     └─► Roots of MCTS, AlphaZero


Logic Inference (Knights, Minesweeper)

    ├─► SAT/SMT Solver Foundations


Probabilistic Inference (Heredity, PageRank)

    ├─► Variational Inference, MCMC, Bayesian Optimization


Constraint Solving (Crossword)

    ├─► Scheduling, Path Planning, Combinatorial Optimization


Traditional ML (Shopping)
    │     │
    │     └─► Feature Engineering, Model Selection, Evaluation


Tabular RL (Nim)
    │     │
    │     └─► Deep Q-Network (DQN), Actor-Critic


Deep Learning (Traffic)
    │     │
    │     └─► ResNet, EfficientNet, ViT, Object Detection


Statistical/Symbolic NLP (Parser, Questions)

          └─► Transformer, BERT, GPT, RAG

Common Sticking Points & Fixes

ProjectCommon BlockFix
Tic-Tac-ToeAI sometimes losesCheck result uses deepcopy; Alpha-Beta bound updates correct
MinesweeperInfinite loopadd_knowledge inferred flag logic; Clean empty sentences
CrosswordToo slow/unsolvableVerify AC-3 correct; MRV/LCV heuristics active; Forward Checking pruning
HeredityProbabilities don't convergeIncrease sample N; Check weight calc; Prior/Inheritance logic
TrafficAccuracy below thresholdDeepen net; Increase Dropout; Tune LR; Data Augmentation; Verify normalization

References