# milanfusco/how-many-hashes architecture

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

- Interactive diagram: https://gitdiagram.com/milanfusco/how-many-hashes
- Repository: https://github.com/milanfusco/how-many-hashes

## Overview

This repository is a small first-collision waiting-time study. The principal workflow is to run notebook trials, save trial data as CSV, then analyze a selected CSV from R and receive an analysis result. The README documents these steps, but the notebook and R source were not excerpted, so implementation details beyond that workflow are not shown.

Main entry points: [`analysis.R`](https://github.com/milanfusco/how-many-hashes/blob/main/analysis.R) (Analyze trials), [`how-many-hashes.ipynb`](https://github.com/milanfusco/how-many-hashes/blob/main/how-many-hashes.ipynb) (Run trials)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_simulation["Collision simulation"]
  node_notebook["Run trials"]
  node_trial_csv["Trial CSV"]
end

subgraph group_analysis["Trial analysis"]
  node_r_analysis["Analyze trials<br/>[analysis.R]"]
  node_result["Analysis result"]
end

node_researcher(("Researcher"))

node_researcher -->|"runs cells"| node_notebook
node_notebook -->|"writes trials"| node_trial_csv
node_researcher -->|"runs analysis"| node_r_analysis
node_trial_csv -->|"provides trials"| node_r_analysis
node_r_analysis -->|"returns result"| node_result

click node_notebook "https://github.com/milanfusco/how-many-hashes/blob/main/how-many-hashes.ipynb"
click node_r_analysis "https://github.com/milanfusco/how-many-hashes/blob/main/analysis.R"

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,node_trial_csv toneBlue
class node_r_analysis,node_result toneAmber
class node_researcher toneIndigo
```

## Components

### Collision simulation

- [Run trials](https://github.com/milanfusco/how-many-hashes/blob/main/how-many-hashes.ipynb): `how-many-hashes.ipynb`
- **Trial CSV**

### Trial analysis

- [Analyze trials](https://github.com/milanfusco/how-many-hashes/blob/main/analysis.R): `analysis.R`
- **Analysis result**

### Other components

- **Researcher**

## Connections

- Researcher → Run trials: runs cells (evidence: `README.md`)
- Run trials → Trial CSV: writes trials (evidence: `README.md`)
- Researcher → Analyze trials: runs analysis (evidence: `README.md`)
- Trial CSV → Analyze trials: provides trials (evidence: `README.md`)
- Analyze trials → Analysis result: returns result (evidence: `README.md`)
