# smatthews75-hub/apa_escapade architecture

> Architecture diagram of the GitHub repository smatthews75-hub/apa_escapade, 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/smatthews75-hub/apa_escapade
- Repository: https://github.com/smatthews75-hub/apa_escapade

## Overview

APA_ESCAPADE is an educational collection of independent algorithm implementations and problem solutions, not a single application with a shared runtime pipeline. The principal workflow is to study or run a chosen standalone program, provide its input, and inspect its result. The graph groups the repository’s major algorithm areas and calls out the indexed core modules. Source excerpts show several programs’ input/output behavior; links for unsampled standalone programs are omitted rather than inferred.

Main entry points: [`lab04/1Dtreasure.cpp`](https://github.com/smatthews75-hub/apa_escapade/blob/main/lab04/1Dtreasure.cpp) (Treasure DFS), [`lab04/trial/treasure_naive_noob.cpp`](https://github.com/smatthews75-hub/apa_escapade/blob/main/lab04/trial/treasure_naive_noob.cpp) (Treasure traversal variants), [`lab05/prioritastugas.cpp`](https://github.com/smatthews75-hub/apa_escapade/blob/main/lab05/prioritastugas.cpp) (Task ordering), [`lab10/books.py`](https://github.com/smatthews75-hub/apa_escapade/blob/main/lab10/books.py) (Grouped book knapsack)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_fundamentals["Algorithm fundamentals"]
  node_search_sort["Search and sorting"]
  node_selection_sort["Selection sort<br/>[selection_sort.py]"]
end

subgraph group_numeric["Numeric computation"]
  node_bignum_compact["Compact big numbers<br/>[bignum_compact.hpp]"]
  node_bignum_fast["Fast big numbers<br/>[bignum_fast.hpp]"]
  node_matrix_algorithms["Matrix algorithms"]
  node_geometry["Computational geometry"]
end

subgraph group_graphs["Graph and traversal"]
  node_treasure_cpp["Treasure DFS<br/>[1Dtreasure.cpp]"]
  node_treasure_variants_cpp["Treasure traversal variants<br/>[treasure_naive.cpp]"]
  node_treasure_variants_py["Treasure traversal variants<br/>[treasure_naive.py]"]
  node_treasure_noob["Treasure traversal variants"]
  node_graph_search["Graph search"]
  node_topological_order["Task ordering<br/>[prioritastugas.cpp]"]
end

subgraph group_optimization["Optimization methods"]
  node_heap["Heap implementation<br/>[heap.cpp]"]
  node_hospital_queue["Priority hospital queue<br/>[clinic.cpp]"]
  node_dynamic_programming["Dynamic programming"]
  node_grouped_knapsack["Grouped book knapsack<br/>[books.py]"]
  node_greedy_dp_coins["Greedy / DP coins<br/>[greedy_coin.py]"]
end

subgraph group_strings["Strings and conversion"]
  node_string_search["String matching"]
  node_html_markdown["HTML to Markdown"]
end

node_learner(("Learner / operator"))

node_learner -->|"provides input"| node_treasure_cpp
node_learner -->|"reads result"| node_treasure_cpp
node_learner -->|"provides input"| node_treasure_noob
node_learner -->|"reads result"| node_treasure_noob
node_learner -->|"provides input"| node_topological_order
node_learner -->|"reads result"| node_topological_order
node_learner -->|"provides input"| node_grouped_knapsack
node_learner -->|"reads result"| node_grouped_knapsack
node_learner -->|"provides input"| node_greedy_dp_coins
node_learner -->|"reads result"| node_greedy_dp_coins

click node_search_sort "https://github.com/smatthews75-hub/apa_escapade/tree/main/collections"
click node_selection_sort "https://github.com/smatthews75-hub/apa_escapade/blob/main/naive/selection_sort.py"
click node_bignum_compact "https://github.com/smatthews75-hub/apa_escapade/blob/main/files/bignum_compact.hpp"
click node_bignum_fast "https://github.com/smatthews75-hub/apa_escapade/blob/main/files/bignum_fast.hpp"
click node_matrix_algorithms "https://github.com/smatthews75-hub/apa_escapade/tree/main/lab06"
click node_geometry "https://github.com/smatthews75-hub/apa_escapade/tree/main/lab03"
click node_treasure_cpp "https://github.com/smatthews75-hub/apa_escapade/blob/main/lab04/1Dtreasure.cpp"
click node_treasure_variants_cpp "https://github.com/smatthews75-hub/apa_escapade/blob/main/lab04/trial/cpp/treasure_naive.cpp"
click node_treasure_variants_py "https://github.com/smatthews75-hub/apa_escapade/blob/main/lab04/trial/py/treasure_naive.py"
click node_treasure_noob "https://github.com/smatthews75-hub/apa_escapade/blob/main/lab04/trial/treasure_naive_noob.cpp"
click node_graph_search "https://github.com/smatthews75-hub/apa_escapade/tree/main/lab04"
click node_topological_order "https://github.com/smatthews75-hub/apa_escapade/blob/main/lab05/prioritastugas.cpp"
click node_heap "https://github.com/smatthews75-hub/apa_escapade/blob/main/lab07/trial/heap.cpp"
click node_hospital_queue "https://github.com/smatthews75-hub/apa_escapade/blob/main/lab07/clinic.cpp"
click node_dynamic_programming "https://github.com/smatthews75-hub/apa_escapade/tree/main/lab09"
click node_grouped_knapsack "https://github.com/smatthews75-hub/apa_escapade/blob/main/lab10/books.py"
click node_greedy_dp_coins "https://github.com/smatthews75-hub/apa_escapade/blob/main/lab11/trial/greedy_coin.py"
click node_string_search "https://github.com/smatthews75-hub/apa_escapade/tree/main/lab08"
click node_html_markdown "https://github.com/smatthews75-hub/apa_escapade/blob/main/hackerrank_html_to_markdown.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_search_sort,node_selection_sort toneBlue
class node_bignum_compact,node_bignum_fast,node_matrix_algorithms,node_geometry toneAmber
class node_treasure_cpp,node_treasure_variants_cpp,node_treasure_variants_py,node_treasure_noob,node_graph_search,node_topological_order toneMint
class node_heap,node_hospital_queue,node_dynamic_programming,node_grouped_knapsack,node_greedy_dp_coins toneRose
class node_string_search,node_html_markdown,node_learner toneIndigo
```

## Components

### Algorithm fundamentals

- [Search and sorting](https://github.com/smatthews75-hub/apa_escapade/tree/main/collections): `collections`
- [Selection sort](https://github.com/smatthews75-hub/apa_escapade/blob/main/naive/selection_sort.py): `naive/selection_sort.py`

### Numeric computation

- [Compact big numbers](https://github.com/smatthews75-hub/apa_escapade/blob/main/files/bignum_compact.hpp): `files/bignum_compact.hpp`
- [Fast big numbers](https://github.com/smatthews75-hub/apa_escapade/blob/main/files/bignum_fast.hpp): `files/bignum_fast.hpp`
- [Matrix algorithms](https://github.com/smatthews75-hub/apa_escapade/tree/main/lab06): `lab06`
- [Computational geometry](https://github.com/smatthews75-hub/apa_escapade/tree/main/lab03): `lab03`

### Graph and traversal

- [Treasure DFS](https://github.com/smatthews75-hub/apa_escapade/blob/main/lab04/1Dtreasure.cpp): `lab04/1Dtreasure.cpp`
- [Treasure traversal variants](https://github.com/smatthews75-hub/apa_escapade/blob/main/lab04/trial/cpp/treasure_naive.cpp): `lab04/trial/cpp/treasure_naive.cpp`
- [Treasure traversal variants](https://github.com/smatthews75-hub/apa_escapade/blob/main/lab04/trial/py/treasure_naive.py): `lab04/trial/py/treasure_naive.py`
- [Treasure traversal variants](https://github.com/smatthews75-hub/apa_escapade/blob/main/lab04/trial/treasure_naive_noob.cpp): `lab04/trial/treasure_naive_noob.cpp`
- [Graph search](https://github.com/smatthews75-hub/apa_escapade/tree/main/lab04): `lab04`
- [Task ordering](https://github.com/smatthews75-hub/apa_escapade/blob/main/lab05/prioritastugas.cpp): `lab05/prioritastugas.cpp`

### Optimization methods

- [Heap implementation](https://github.com/smatthews75-hub/apa_escapade/blob/main/lab07/trial/heap.cpp): `lab07/trial/heap.cpp`
- [Priority hospital queue](https://github.com/smatthews75-hub/apa_escapade/blob/main/lab07/clinic.cpp): `lab07/clinic.cpp`
- [Dynamic programming](https://github.com/smatthews75-hub/apa_escapade/tree/main/lab09): `lab09`
- [Grouped book knapsack](https://github.com/smatthews75-hub/apa_escapade/blob/main/lab10/books.py): `lab10/books.py`
- [Greedy / DP coins](https://github.com/smatthews75-hub/apa_escapade/blob/main/lab11/trial/greedy_coin.py): `lab11/trial/greedy_coin.py`

### Strings and conversion

- [String matching](https://github.com/smatthews75-hub/apa_escapade/tree/main/lab08): `lab08`
- [HTML to Markdown](https://github.com/smatthews75-hub/apa_escapade/blob/main/hackerrank_html_to_markdown.py): `hackerrank_html_to_markdown.py`

### Other components

- **Learner / operator**

## Connections

- Learner / operator → Treasure DFS: provides input (evidence: `lab04/1Dtreasure.cpp`)
- Learner / operator → Treasure DFS: reads result (evidence: `lab04/1Dtreasure.cpp`)
- Learner / operator → Treasure traversal variants: provides input (evidence: `lab04/trial/treasure_naive_noob.cpp`)
- Learner / operator → Treasure traversal variants: reads result (evidence: `lab04/trial/treasure_naive_noob.cpp`)
- Learner / operator → Task ordering: provides input (evidence: `lab05/prioritastugas.cpp`)
- Learner / operator → Task ordering: reads result (evidence: `lab05/prioritastugas.cpp`)
- Learner / operator → Grouped book knapsack: provides input (evidence: `lab10/books.py`)
- Learner / operator → Grouped book knapsack: reads result (evidence: `lab10/books.py`)
- Learner / operator → Greedy / DP coins: provides input (evidence: `lab11/trial/greedy_coin.py`)
- Learner / operator → Greedy / DP coins: reads result (evidence: `lab11/trial/greedy_coin.py`)
