# zubinch/harvard-cs50 architecture

> Architecture diagram of the GitHub repository zubinch/harvard-cs50, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-11-23). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/zubinch/harvard-cs50
- Repository: https://github.com/zubinch/harvard-cs50

## Overview

This is a portfolio of independent Harvard CS50 coursework programs and learning examples, not one integrated application. A learner runs individual programs to produce results such as an election winner, filtered image, spell-check report, or exercise output. The graph preserves the major problem-set areas and the reusable CS50 C input library. Internal calls are shown only where sampled source establishes them; most unsampled assignments remain standalone because their runtime links cannot be verified.

Main entry points: [`notable_projects/tideman/tideman.c`](https://github.com/zubinch/harvard-cs50/blob/main/notable_projects/tideman/tideman.c) (Tideman election), [`week_4/problem_sets/filter-more/filter.c`](https://github.com/zubinch/harvard-cs50/blob/main/week_4/problem_sets/filter-more/filter.c) (BMP filter program), [`week_5/problem_sets/speller_hash/speller.c`](https://github.com/zubinch/harvard-cs50/blob/main/week_5/problem_sets/speller_hash/speller.c) (Hash spell checker), [`week_5/problem_sets/speller_trie/speller.c`](https://github.com/zubinch/harvard-cs50/blob/main/week_5/problem_sets/speller_trie/speller.c) (Trie spell checker)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_learning["Learning examples"]
  node_c_examples["C examples"]
  node_early_exercises["Early exercises"]
  node_language_exercises["Language exercises"]
  node_search_sort["Search and sorting"]
  node_memory_exercises["Memory exercises"]
  node_data_structures["Data structures"]
  node_python_exercises["Python exercises"]
end

subgraph group_elections["Election programs"]
  node_tideman["Tideman election<br/>[tideman.c]"]
  node_plurality["Plurality election<br/>[plurality.c]"]
  node_runoff["Runoff election<br/>[runoff.c]"]
end

subgraph group_images["Image processing"]
  node_filter_app["BMP filter program<br/>[filter.c]"]
  node_filter_helpers["Image filters<br/>[helpers.c]"]
  node_volume["Audio volume<br/>[volume.c]"]
  node_recover["Image recovery<br/>[recover.c]"]
end

subgraph group_spelling["Spell checking"]
  node_speller_hash["Hash spell checker<br/>[speller.c]"]
  node_hash_dictionary["Hash dictionary<br/>[dictionary.c]"]
  node_speller_trie["Trie spell checker<br/>[speller.c]"]
  node_trie_dictionary["Trie dictionary<br/>[dictionary.c]"]
end

subgraph group_library["C input library"]
  node_cs50_api["Input API<br/>[cs50.h]"]
  node_cs50_runtime["Input implementation<br/>[cs50.c]"]
end

node_learner(("Learner"))

node_learner -->|"studies"| node_c_examples
node_learner -->|"runs exercises"| node_early_exercises
node_learner -->|"runs exercises"| node_language_exercises
node_learner -->|"runs exercises"| node_search_sort
node_learner -->|"runs exercises"| node_memory_exercises
node_learner -->|"runs exercises"| node_data_structures
node_learner -->|"runs exercises"| node_python_exercises
node_learner -->|"runs election"| node_tideman
node_learner -->|"runs election"| node_plurality
node_learner -->|"runs election"| node_runoff
node_learner -->|"runs program"| node_filter_app
node_learner -->|"runs program"| node_volume
node_learner -->|"runs program"| node_recover
node_learner -->|"runs checker"| node_speller_hash
node_learner -->|"runs checker"| node_speller_trie
node_filter_app -->|"calls filters"| node_filter_helpers
node_speller_hash -->|"calls dictionary API"| node_hash_dictionary
node_speller_trie -->|"calls dictionary API"| node_trie_dictionary
node_tideman -->|"includes API"| node_cs50_api
node_cs50_api -->|"implemented by"| node_cs50_runtime

click node_c_examples "https://github.com/zubinch/harvard-cs50/tree/main/additional_learning/learn-c"
click node_early_exercises "https://github.com/zubinch/harvard-cs50/tree/main/week_1"
click node_language_exercises "https://github.com/zubinch/harvard-cs50/tree/main/week_2"
click node_search_sort "https://github.com/zubinch/harvard-cs50/tree/main/week_3"
click node_memory_exercises "https://github.com/zubinch/harvard-cs50/tree/main/week_4/notes"
click node_data_structures "https://github.com/zubinch/harvard-cs50/tree/main/week_5/notes"
click node_python_exercises "https://github.com/zubinch/harvard-cs50/tree/main/week_6"
click node_tideman "https://github.com/zubinch/harvard-cs50/blob/main/notable_projects/tideman/tideman.c"
click node_plurality "https://github.com/zubinch/harvard-cs50/blob/main/week_3/problem_sets/plurality/plurality.c"
click node_runoff "https://github.com/zubinch/harvard-cs50/blob/main/week_3/notes/runoff.c"
click node_filter_app "https://github.com/zubinch/harvard-cs50/blob/main/week_4/problem_sets/filter-more/filter.c"
click node_filter_helpers "https://github.com/zubinch/harvard-cs50/blob/main/week_4/problem_sets/filter-more/helpers.c"
click node_volume "https://github.com/zubinch/harvard-cs50/blob/main/week_4/problem_sets/volume/volume.c"
click node_recover "https://github.com/zubinch/harvard-cs50/blob/main/week_4/problem_sets/recover/recover.c"
click node_speller_hash "https://github.com/zubinch/harvard-cs50/blob/main/week_5/problem_sets/speller_hash/speller.c"
click node_hash_dictionary "https://github.com/zubinch/harvard-cs50/blob/main/week_5/problem_sets/speller_hash/dictionary.c"
click node_speller_trie "https://github.com/zubinch/harvard-cs50/blob/main/week_5/problem_sets/speller_trie/speller.c"
click node_trie_dictionary "https://github.com/zubinch/harvard-cs50/blob/main/week_5/problem_sets/speller_trie/dictionary.c"
click node_cs50_api "https://github.com/zubinch/harvard-cs50/blob/main/libraries/cs50/src/cs50.h"
click node_cs50_runtime "https://github.com/zubinch/harvard-cs50/blob/main/libraries/cs50/src/cs50.c"

classDef toneNeutral fill:#f8fafc,stroke:#334155,stroke-width:1.5px,color:#0f172a
classDef toneBlue fill:#dbeafe,stroke:#2563eb,stroke-width:1.5px,color:#172554
classDef toneAmber fill:#fef3c7,stroke:#d97706,stroke-width:1.5px,color:#78350f
classDef toneMint fill:#dcfce7,stroke:#16a34a,stroke-width:1.5px,color:#14532d
classDef toneRose fill:#ffe4e6,stroke:#e11d48,stroke-width:1.5px,color:#881337
classDef toneIndigo fill:#e0e7ff,stroke:#4f46e5,stroke-width:1.5px,color:#312e81
classDef toneTeal fill:#ccfbf1,stroke:#0f766e,stroke-width:1.5px,color:#134e4a
class node_c_examples,node_early_exercises,node_language_exercises,node_search_sort,node_memory_exercises,node_data_structures,node_python_exercises toneBlue
class node_tideman,node_plurality,node_runoff toneAmber
class node_filter_app,node_filter_helpers,node_volume,node_recover toneMint
class node_speller_hash,node_hash_dictionary,node_speller_trie,node_trie_dictionary toneRose
class node_cs50_api,node_cs50_runtime,node_learner toneIndigo
```

## Components

### Learning examples

- [C examples](https://github.com/zubinch/harvard-cs50/tree/main/additional_learning/learn-c): `additional_learning/learn-c`
- [Early exercises](https://github.com/zubinch/harvard-cs50/tree/main/week_1): `week_1`
- [Language exercises](https://github.com/zubinch/harvard-cs50/tree/main/week_2): `week_2`
- [Search and sorting](https://github.com/zubinch/harvard-cs50/tree/main/week_3): `week_3`
- [Memory exercises](https://github.com/zubinch/harvard-cs50/tree/main/week_4/notes): `week_4/notes`
- [Data structures](https://github.com/zubinch/harvard-cs50/tree/main/week_5/notes): `week_5/notes`
- [Python exercises](https://github.com/zubinch/harvard-cs50/tree/main/week_6): `week_6`

### Election programs

- [Tideman election](https://github.com/zubinch/harvard-cs50/blob/main/notable_projects/tideman/tideman.c): `notable_projects/tideman/tideman.c`
- [Plurality election](https://github.com/zubinch/harvard-cs50/blob/main/week_3/problem_sets/plurality/plurality.c): `week_3/problem_sets/plurality/plurality.c`
- [Runoff election](https://github.com/zubinch/harvard-cs50/blob/main/week_3/notes/runoff.c): `week_3/notes/runoff.c`

### Image processing

- [BMP filter program](https://github.com/zubinch/harvard-cs50/blob/main/week_4/problem_sets/filter-more/filter.c): `week_4/problem_sets/filter-more/filter.c`
- [Image filters](https://github.com/zubinch/harvard-cs50/blob/main/week_4/problem_sets/filter-more/helpers.c): `week_4/problem_sets/filter-more/helpers.c`
- [Audio volume](https://github.com/zubinch/harvard-cs50/blob/main/week_4/problem_sets/volume/volume.c): `week_4/problem_sets/volume/volume.c`
- [Image recovery](https://github.com/zubinch/harvard-cs50/blob/main/week_4/problem_sets/recover/recover.c): `week_4/problem_sets/recover/recover.c`

### Spell checking

- [Hash spell checker](https://github.com/zubinch/harvard-cs50/blob/main/week_5/problem_sets/speller_hash/speller.c): `week_5/problem_sets/speller_hash/speller.c`
- [Hash dictionary](https://github.com/zubinch/harvard-cs50/blob/main/week_5/problem_sets/speller_hash/dictionary.c): `week_5/problem_sets/speller_hash/dictionary.c`
- [Trie spell checker](https://github.com/zubinch/harvard-cs50/blob/main/week_5/problem_sets/speller_trie/speller.c): `week_5/problem_sets/speller_trie/speller.c`
- [Trie dictionary](https://github.com/zubinch/harvard-cs50/blob/main/week_5/problem_sets/speller_trie/dictionary.c): `week_5/problem_sets/speller_trie/dictionary.c`

### C input library

- [Input API](https://github.com/zubinch/harvard-cs50/blob/main/libraries/cs50/src/cs50.h): `libraries/cs50/src/cs50.h`
- [Input implementation](https://github.com/zubinch/harvard-cs50/blob/main/libraries/cs50/src/cs50.c): `libraries/cs50/src/cs50.c`

### Other components

- **Learner**

## Connections

- Learner → C examples: studies
- Learner → Early exercises: runs exercises
- Learner → Language exercises: runs exercises
- Learner → Search and sorting: runs exercises
- Learner → Memory exercises: runs exercises
- Learner → Data structures: runs exercises
- Learner → Python exercises: runs exercises
- Learner → Tideman election: runs election
- Learner → Plurality election: runs election
- Learner → Runoff election: runs election
- Learner → BMP filter program: runs program
- Learner → Audio volume: runs program
- Learner → Image recovery: runs program
- Learner → Hash spell checker: runs checker
- Learner → Trie spell checker: runs checker
- BMP filter program → Image filters: calls filters (evidence: `week_4/problem_sets/filter-more/filter.c`)
- Hash spell checker → Hash dictionary: calls dictionary API (evidence: `week_5/problem_sets/speller_hash/speller.c`)
- Trie spell checker → Trie dictionary: calls dictionary API (evidence: `week_5/problem_sets/speller_trie/speller.c`)
- Tideman election → Input API: includes API (evidence: `notable_projects/tideman/tideman.c`)
- Input API → Input implementation: implemented by (evidence: `libraries/cs50/src/cs50.c`)
