# norvig/pytudes architecture

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

- Interactive diagram: https://gitdiagram.com/norvig/pytudes
- Repository: https://github.com/norvig/pytudes

## Overview

pytudes is a collection of short Python programs and Jupyter notebooks for practicing programming, not a single application with a shared runtime. The main user workflow is to choose a notebook from the README, open it in a notebook viewer or Colab, work through its programming study or puzzle, and inspect the result. The graph also preserves notable standalone Python studies and the interpreter examples. Most notebooks and utility scripts were not sampled, so their internal dependencies and execution details are not inferred.

Main entry points: [`ipynb`](https://github.com/norvig/pytudes/tree/main/ipynb) (Programming Studies), [`README.md`](https://github.com/norvig/pytudes/blob/main/README.md) (Notebook Index), [`ipynb/euler_data.py`](https://github.com/norvig/pytudes/blob/main/ipynb/euler_data.py) (Euler Harness), [`py/lis.py`](https://github.com/norvig/pytudes/blob/main/py/lis.py) (Scheme Interpreter)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_notebooks["Notebook Studies"]
  node_notebook_index["Notebook Index<br/>[README.md]"]
  node_notebook_studies["Programming Studies"]
  node_euler_harness["Euler Harness<br/>[euler_data.py]"]
  node_euler_data["Euler Data<br/>[euler_data.py]"]
end

subgraph group_solvers["Puzzle Solvers"]
  node_sudoku_java["Sudoku Solver<br/>[Sudoku.java]"]
  node_sudoku_python["Sudoku Solver<br/>[sudoku.py]"]
  node_sudoku_studies["Sudoku Studies"]
end

subgraph group_language["Language Tools"]
  node_scheme_lis["Scheme Interpreter<br/>[lis.py]"]
  node_scheme_lispy["Scheme Interpreter<br/>[lispy.py]"]
  node_language_studies["Language Studies"]
  node_ngram_tools["N-gram Analysis<br/>[lettercount.py]"]
  node_ngram_data[("N-gram Data")]
  node_word_tools["Word Studies<br/>[ngrams.py]"]
  node_portman["Portmantout Generator<br/>[portman.py]"]
end

subgraph group_utilities["Python Utilities"]
  node_code_studies["Python Studies"]
  node_palindrome_search["Palindrome Search<br/>[pal2.py]"]
  node_example_runner["Docex Runner<br/>[docex.py]"]
end

node_learner(("Learner"))
node_notebook_host(("Colab or Viewer"))
node_study_result["Study Results"]

node_learner -->|"browses"| node_notebook_index
node_notebook_index -->|"indexes"| node_notebook_studies
node_learner -->|"opens notebook"| node_notebook_host
node_notebook_host -->|"opens"| node_notebook_studies
node_notebook_studies -->|"explores examples"| node_study_result
node_euler_harness -->|"reads data"| node_euler_data
node_sudoku_studies -.->|"includes solver study"| node_sudoku_java
node_scheme_lis -.->|"supports interpreter study"| node_language_studies
node_scheme_lispy -.->|"supports interpreter study"| node_language_studies
node_ngram_tools -.->|"processes corpus"| node_ngram_data

click node_notebook_index "https://github.com/norvig/pytudes/blob/main/README.md"
click node_notebook_studies "https://github.com/norvig/pytudes/tree/main/ipynb"
click node_euler_harness "https://github.com/norvig/pytudes/blob/main/ipynb/euler_data.py"
click node_euler_data "https://github.com/norvig/pytudes/blob/main/ipynb/euler_data.py"
click node_sudoku_java "https://github.com/norvig/pytudes/blob/main/ipynb/Sudoku.java"
click node_sudoku_python "https://github.com/norvig/pytudes/blob/main/py/sudoku.py"
click node_sudoku_studies "https://github.com/norvig/pytudes/tree/main/ipynb"
click node_scheme_lis "https://github.com/norvig/pytudes/blob/main/py/lis.py"
click node_scheme_lispy "https://github.com/norvig/pytudes/blob/main/py/lispy.py"
click node_language_studies "https://github.com/norvig/pytudes/tree/main/ipynb"
click node_ngram_tools "https://github.com/norvig/pytudes/blob/main/py/lettercount.py"
click node_ngram_data "https://github.com/norvig/pytudes/tree/main/data/ngrams"
click node_word_tools "https://github.com/norvig/pytudes/blob/main/py/ngrams.py"
click node_portman "https://github.com/norvig/pytudes/blob/main/ipynb/portman.py"
click node_code_studies "https://github.com/norvig/pytudes/tree/main/py"
click node_palindrome_search "https://github.com/norvig/pytudes/blob/main/py/pal2.py"
click node_example_runner "https://github.com/norvig/pytudes/blob/main/py/docex.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_notebook_index,node_notebook_studies,node_euler_harness,node_euler_data,node_notebook_host toneBlue
class node_sudoku_java,node_sudoku_python,node_sudoku_studies toneAmber
class node_scheme_lis,node_scheme_lispy,node_language_studies,node_ngram_tools,node_ngram_data,node_word_tools,node_portman toneMint
class node_code_studies,node_palindrome_search,node_example_runner toneRose
class node_learner,node_study_result toneIndigo
```

## Components

### Notebook Studies

- [Notebook Index](https://github.com/norvig/pytudes/blob/main/README.md): `README.md`
- [Programming Studies](https://github.com/norvig/pytudes/tree/main/ipynb): `ipynb`
- [Euler Harness](https://github.com/norvig/pytudes/blob/main/ipynb/euler_data.py): `ipynb/euler_data.py`
- [Euler Data](https://github.com/norvig/pytudes/blob/main/ipynb/euler_data.py): `ipynb/euler_data.py`

### Puzzle Solvers

- [Sudoku Solver](https://github.com/norvig/pytudes/blob/main/ipynb/Sudoku.java): `ipynb/Sudoku.java`
- [Sudoku Solver](https://github.com/norvig/pytudes/blob/main/py/sudoku.py): `py/sudoku.py`
- [Sudoku Studies](https://github.com/norvig/pytudes/tree/main/ipynb): `ipynb`

### Language Tools

- [Scheme Interpreter](https://github.com/norvig/pytudes/blob/main/py/lis.py): `py/lis.py`
- [Scheme Interpreter](https://github.com/norvig/pytudes/blob/main/py/lispy.py): `py/lispy.py`
- [Language Studies](https://github.com/norvig/pytudes/tree/main/ipynb): `ipynb`
- [N-gram Analysis](https://github.com/norvig/pytudes/blob/main/py/lettercount.py): `py/lettercount.py`
- [N-gram Data](https://github.com/norvig/pytudes/tree/main/data/ngrams): `data/ngrams`
- [Word Studies](https://github.com/norvig/pytudes/blob/main/py/ngrams.py): `py/ngrams.py`
- [Portmantout Generator](https://github.com/norvig/pytudes/blob/main/ipynb/portman.py): `ipynb/portman.py`

### Python Utilities

- [Python Studies](https://github.com/norvig/pytudes/tree/main/py): `py`
- [Palindrome Search](https://github.com/norvig/pytudes/blob/main/py/pal2.py): `py/pal2.py`
- [Docex Runner](https://github.com/norvig/pytudes/blob/main/py/docex.py): `py/docex.py`

### Other components

- **Learner**
- **Colab or Viewer**
- **Study Results**

## Connections

- Learner → Notebook Index: browses (evidence: `README.md`)
- Notebook Index → Programming Studies: indexes (evidence: `README.md`)
- Learner → Colab or Viewer: opens notebook (evidence: `README.md`)
- Colab or Viewer → Programming Studies: opens (evidence: `README.md`)
- Programming Studies → Study Results: explores examples (evidence: `README.md`)
- Euler Harness → Euler Data: reads data (evidence: `ipynb/euler_data.py`)
- Sudoku Studies → Sudoku Solver: includes solver study
- Scheme Interpreter → Language Studies: supports interpreter study
- Scheme Interpreter → Language Studies: supports interpreter study
- N-gram Analysis → N-gram Data: processes corpus
