# nyisai02/cs50 architecture

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

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

## Overview

This repository is a collection of independent CS50x 2018 exercise solutions, not one integrated application. Users run a selected exercise to solve a small programming task; the collection spans command-line utilities, media/file processing, spell-checking, and web applications. The graph groups those standalone products by domain and shows only relationships supported by the README or sampled source. Many exercise implementations were not sampled, so their internal steps and connections are intentionally not inferred.

Main entry points: [`pset8/mashup/application.py`](https://github.com/nyisai02/cs50/blob/main/pset8/mashup/application.py) (Map and places), [`pset7/finance/application.py`](https://github.com/nyisai02/cs50/blob/main/pset7/finance/application.py) (Stock trading), [`pset8/mashup/helpers.py`](https://github.com/nyisai02/cs50/blob/main/pset8/mashup/helpers.py) (Article lookup), [`pset1/hello/hello.c`](https://github.com/nyisai02/cs50/blob/main/pset1/hello/hello.c) (Hello)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_fundamentals["C Fundamentals"]
  node_hello["Hello<br/>[hello.c]"]
  node_cash["Cash<br/>[cash.c]"]
  node_credit["Credit<br/>[credit.c]"]
  node_mario1less["Mario less<br/>[mario.c]"]
  node_mario1more["Mario more<br/>[mario.c]"]
  node_sentimental["Python versions"]
end

subgraph group_crypto["Cryptography"]
  node_caesar["Caesar<br/>[caesar.c]"]
  node_vigenere["Vigenère<br/>[vigenere.c]"]
  node_crack["Crack<br/>[crack.c]"]
end

subgraph group_media["Media and Files"]
  node_music["Music synthesis<br/>[wav.c]"]
  node_whodunit["Whodunit BMP<br/>[copy.c]"]
  node_resize["BMP resizing"]
  node_recover["File recovery<br/>[recover.c]"]
end

subgraph group_spelling["Spell-Checking"]
  node_speller["Spell-check variants"]
end

subgraph group_web["Web Applications"]
  node_similarities["Text similarities"]
  node_finance["Stock trading<br/>[application.py]"]
  node_finance_helpers["Finance helpers<br/>[helpers.py]"]
  node_mashup["Map and places<br/>[application.py]"]
  node_mashup_helpers["Article lookup<br/>[helpers.py]"]
  node_mashup_db[("Places database<br/>[application.py]")]
end

node_user(("Exercise user"))
node_map_browser(("Map browser"))
node_news_feeds["News feeds"]

node_user -->|"runs exercise"| node_hello
node_user -->|"runs exercise"| node_cash
node_user -->|"runs exercise"| node_credit
node_user -->|"runs exercise"| node_mario1less
node_user -->|"runs exercise"| node_mario1more
node_user -->|"runs exercise"| node_sentimental
node_user -->|"runs exercise"| node_caesar
node_user -->|"runs exercise"| node_vigenere
node_user -->|"runs exercise"| node_crack
node_user -->|"runs exercise"| node_music
node_user -->|"runs exercise"| node_whodunit
node_user -->|"runs exercise"| node_resize
node_user -->|"runs exercise"| node_recover
node_user -->|"runs exercise"| node_speller
node_user -->|"uses web app"| node_similarities
node_user -->|"uses web app"| node_finance
node_user -->|"uses web app"| node_mashup
node_finance -->|"calls helpers"| node_finance_helpers
node_mashup -->|"calls lookup"| node_mashup_helpers
node_mashup -->|"queries places"| node_mashup_db
node_map_browser -.->|"requests map"| node_mashup
node_mashup_helpers -->|"fetches feeds"| node_news_feeds

click node_hello "https://github.com/nyisai02/cs50/blob/main/pset1/hello/hello.c"
click node_cash "https://github.com/nyisai02/cs50/blob/main/pset1/cash/cash.c"
click node_credit "https://github.com/nyisai02/cs50/blob/main/pset1/credit/credit.c"
click node_mario1less "https://github.com/nyisai02/cs50/blob/main/pset1/mario/less/mario.c"
click node_mario1more "https://github.com/nyisai02/cs50/blob/main/pset1/mario/more/mario.c"
click node_sentimental "https://github.com/nyisai02/cs50/tree/main/pset6/sentimental"
click node_caesar "https://github.com/nyisai02/cs50/blob/main/pset2/caesar/caesar.c"
click node_vigenere "https://github.com/nyisai02/cs50/blob/main/pset2/vigenere/vigenere.c"
click node_crack "https://github.com/nyisai02/cs50/blob/main/pset2/crack/crack.c"
click node_music "https://github.com/nyisai02/cs50/blob/main/pset3/music/wav.c"
click node_whodunit "https://github.com/nyisai02/cs50/blob/main/pset4/whodunit/copy.c"
click node_resize "https://github.com/nyisai02/cs50/tree/main/pset4/resize"
click node_recover "https://github.com/nyisai02/cs50/blob/main/pset4/recover/recover.c"
click node_speller "https://github.com/nyisai02/cs50/tree/main/pset5/speller"
click node_similarities "https://github.com/nyisai02/cs50/tree/main/pset6/similarities"
click node_finance "https://github.com/nyisai02/cs50/blob/main/pset7/finance/application.py"
click node_finance_helpers "https://github.com/nyisai02/cs50/blob/main/pset7/finance/helpers.py"
click node_mashup "https://github.com/nyisai02/cs50/blob/main/pset8/mashup/application.py"
click node_mashup_helpers "https://github.com/nyisai02/cs50/blob/main/pset8/mashup/helpers.py"
click node_mashup_db "https://github.com/nyisai02/cs50/blob/main/pset8/mashup/application.py"

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_hello,node_cash,node_credit,node_mario1less,node_mario1more,node_sentimental,node_user,node_map_browser toneBlue
class node_caesar,node_vigenere,node_crack toneAmber
class node_music,node_whodunit,node_resize,node_recover toneMint
class node_speller toneRose
class node_similarities,node_finance,node_finance_helpers,node_mashup,node_mashup_helpers,node_mashup_db,node_news_feeds toneIndigo
```

## Components

### C Fundamentals

- [Hello](https://github.com/nyisai02/cs50/blob/main/pset1/hello/hello.c): `pset1/hello/hello.c`
- [Cash](https://github.com/nyisai02/cs50/blob/main/pset1/cash/cash.c): `pset1/cash/cash.c`
- [Credit](https://github.com/nyisai02/cs50/blob/main/pset1/credit/credit.c): `pset1/credit/credit.c`
- [Mario less](https://github.com/nyisai02/cs50/blob/main/pset1/mario/less/mario.c): `pset1/mario/less/mario.c`
- [Mario more](https://github.com/nyisai02/cs50/blob/main/pset1/mario/more/mario.c): `pset1/mario/more/mario.c`
- [Python versions](https://github.com/nyisai02/cs50/tree/main/pset6/sentimental): `pset6/sentimental`

### Cryptography

- [Caesar](https://github.com/nyisai02/cs50/blob/main/pset2/caesar/caesar.c): `pset2/caesar/caesar.c`
- [Vigenère](https://github.com/nyisai02/cs50/blob/main/pset2/vigenere/vigenere.c): `pset2/vigenere/vigenere.c`
- [Crack](https://github.com/nyisai02/cs50/blob/main/pset2/crack/crack.c): `pset2/crack/crack.c`

### Media and Files

- [Music synthesis](https://github.com/nyisai02/cs50/blob/main/pset3/music/wav.c): `pset3/music/wav.c`
- [Whodunit BMP](https://github.com/nyisai02/cs50/blob/main/pset4/whodunit/copy.c): `pset4/whodunit/copy.c`
- [BMP resizing](https://github.com/nyisai02/cs50/tree/main/pset4/resize): `pset4/resize`
- [File recovery](https://github.com/nyisai02/cs50/blob/main/pset4/recover/recover.c): `pset4/recover/recover.c`

### Spell-Checking

- [Spell-check variants](https://github.com/nyisai02/cs50/tree/main/pset5/speller): `pset5/speller`

### Web Applications

- [Text similarities](https://github.com/nyisai02/cs50/tree/main/pset6/similarities): `pset6/similarities`
- [Stock trading](https://github.com/nyisai02/cs50/blob/main/pset7/finance/application.py): `pset7/finance/application.py`
- [Finance helpers](https://github.com/nyisai02/cs50/blob/main/pset7/finance/helpers.py): `pset7/finance/helpers.py`
- [Map and places](https://github.com/nyisai02/cs50/blob/main/pset8/mashup/application.py): `pset8/mashup/application.py`
- [Article lookup](https://github.com/nyisai02/cs50/blob/main/pset8/mashup/helpers.py): `pset8/mashup/helpers.py`
- [Places database](https://github.com/nyisai02/cs50/blob/main/pset8/mashup/application.py): `pset8/mashup/application.py`

### Other components

- **Exercise user**
- **Map browser**
- **News feeds**

## Connections

- Exercise user → Hello: runs exercise
- Exercise user → Cash: runs exercise
- Exercise user → Credit: runs exercise
- Exercise user → Mario less: runs exercise
- Exercise user → Mario more: runs exercise
- Exercise user → Python versions: runs exercise
- Exercise user → Caesar: runs exercise
- Exercise user → Vigenère: runs exercise
- Exercise user → Crack: runs exercise
- Exercise user → Music synthesis: runs exercise
- Exercise user → Whodunit BMP: runs exercise
- Exercise user → BMP resizing: runs exercise
- Exercise user → File recovery: runs exercise
- Exercise user → Spell-check variants: runs exercise
- Exercise user → Text similarities: uses web app
- Exercise user → Stock trading: uses web app
- Exercise user → Map and places: uses web app
- Stock trading → Finance helpers: calls helpers (evidence: `pset7/finance/application.py`)
- Map and places → Article lookup: calls lookup (evidence: `pset8/mashup/application.py`)
- Map and places → Places database: queries places (evidence: `pset8/mashup/application.py`)
- Map browser → Map and places: requests map
- Article lookup → News feeds: fetches feeds (evidence: `pset8/mashup/helpers.py`)
