# abdiasnanko/tpe_algo architecture

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

- Interactive diagram: https://gitdiagram.com/abdiasnanko/tpe_algo
- Repository: https://github.com/abdiasnanko/tpe_algo

## Overview

A small, single-file C student-records console application. The user selects menu actions to register, edit, find, delete, sort, calculate an age, or display students held in dynamically allocated memory. All behavior is implemented in one source file; the graph reflects the visible menu dispatch and function calls.

Main entry points: [`TPE_Algo_G10.c`](https://github.com/abdiasnanko/tpe_algo/blob/main/TPE_Algo_G10.c) (Menu loop)

## Diagram (Mermaid)

```mermaid
flowchart TD

node_user(("User"))
node_menu["Menu loop<br/>[TPE_Algo_G10.c]"]
node_records[("Student records<br/>[TPE_Algo_G10.c]")]
node_register["Register students<br/>[TPE_Algo_G10.c]"]
node_edit["Modify student<br/>[TPE_Algo_G10.c]"]
node_findid["Find by ID<br/>[TPE_Algo_G10.c]"]
node_delete["Delete student<br/>[TPE_Algo_G10.c]"]
node_sortname["Sort by name<br/>[TPE_Algo_G10.c]"]
node_findname["Binary name search<br/>[TPE_Algo_G10.c]"]
node_age["Calculate age<br/>[TPE_Algo_G10.c]"]
node_sortfield["Sort by program<br/>[TPE_Algo_G10.c]"]
node_display["Display students<br/>[TPE_Algo_G10.c]"]
node_list["Print record list<br/>[TPE_Algo_G10.c]"]

node_user -->|"chooses action"| node_menu
node_menu -->|"dispatches"| node_register
node_menu -->|"dispatches"| node_edit
node_menu -->|"dispatches"| node_findid
node_menu -->|"dispatches"| node_delete
node_menu -->|"dispatches"| node_sortname
node_menu -->|"dispatches"| node_findname
node_menu -->|"dispatches"| node_age
node_menu -->|"dispatches"| node_sortfield
node_menu -->|"dispatches"| node_display
node_register -->|"adds records"| node_records
node_edit -->|"updates records"| node_records
node_findid -->|"searches records"| node_records
node_delete -->|"removes record"| node_records
node_sortname -->|"reorders records"| node_records
node_findname -->|"searches records"| node_records
node_age -->|"matches student"| node_records
node_sortfield -->|"reorders records"| node_records
node_display -->|"calls"| node_list
node_sortname -->|"calls"| node_list
node_sortfield -->|"calls"| node_list
node_findid -->|"calls"| node_list
node_findname -->|"calls"| node_list
node_list -->|"reads records"| node_records

click node_menu "https://github.com/abdiasnanko/tpe_algo/blob/main/TPE_Algo_G10.c"
click node_records "https://github.com/abdiasnanko/tpe_algo/blob/main/TPE_Algo_G10.c"
click node_register "https://github.com/abdiasnanko/tpe_algo/blob/main/TPE_Algo_G10.c"
click node_edit "https://github.com/abdiasnanko/tpe_algo/blob/main/TPE_Algo_G10.c"
click node_findid "https://github.com/abdiasnanko/tpe_algo/blob/main/TPE_Algo_G10.c"
click node_delete "https://github.com/abdiasnanko/tpe_algo/blob/main/TPE_Algo_G10.c"
click node_sortname "https://github.com/abdiasnanko/tpe_algo/blob/main/TPE_Algo_G10.c"
click node_findname "https://github.com/abdiasnanko/tpe_algo/blob/main/TPE_Algo_G10.c"
click node_age "https://github.com/abdiasnanko/tpe_algo/blob/main/TPE_Algo_G10.c"
click node_sortfield "https://github.com/abdiasnanko/tpe_algo/blob/main/TPE_Algo_G10.c"
click node_display "https://github.com/abdiasnanko/tpe_algo/blob/main/TPE_Algo_G10.c"
click node_list "https://github.com/abdiasnanko/tpe_algo/blob/main/TPE_Algo_G10.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_user toneBlue
class node_menu,node_register,node_edit,node_findid,node_delete,node_sortname,node_findname,node_age,node_sortfield,node_display,node_list toneTeal
class node_records toneAmber
```

## Components

### Other components

- **User**
- [Menu loop](https://github.com/abdiasnanko/tpe_algo/blob/main/TPE_Algo_G10.c): `TPE_Algo_G10.c`
- [Student records](https://github.com/abdiasnanko/tpe_algo/blob/main/TPE_Algo_G10.c): `TPE_Algo_G10.c`
- [Register students](https://github.com/abdiasnanko/tpe_algo/blob/main/TPE_Algo_G10.c): `TPE_Algo_G10.c`
- [Modify student](https://github.com/abdiasnanko/tpe_algo/blob/main/TPE_Algo_G10.c): `TPE_Algo_G10.c`
- [Find by ID](https://github.com/abdiasnanko/tpe_algo/blob/main/TPE_Algo_G10.c): `TPE_Algo_G10.c`
- [Delete student](https://github.com/abdiasnanko/tpe_algo/blob/main/TPE_Algo_G10.c): `TPE_Algo_G10.c`
- [Sort by name](https://github.com/abdiasnanko/tpe_algo/blob/main/TPE_Algo_G10.c): `TPE_Algo_G10.c`
- [Binary name search](https://github.com/abdiasnanko/tpe_algo/blob/main/TPE_Algo_G10.c): `TPE_Algo_G10.c`
- [Calculate age](https://github.com/abdiasnanko/tpe_algo/blob/main/TPE_Algo_G10.c): `TPE_Algo_G10.c`
- [Sort by program](https://github.com/abdiasnanko/tpe_algo/blob/main/TPE_Algo_G10.c): `TPE_Algo_G10.c`
- [Display students](https://github.com/abdiasnanko/tpe_algo/blob/main/TPE_Algo_G10.c): `TPE_Algo_G10.c`
- [Print record list](https://github.com/abdiasnanko/tpe_algo/blob/main/TPE_Algo_G10.c): `TPE_Algo_G10.c`

## Connections

- User → Menu loop: chooses action (evidence: `TPE_Algo_G10.c`)
- Menu loop → Register students: dispatches (evidence: `TPE_Algo_G10.c`)
- Menu loop → Modify student: dispatches (evidence: `TPE_Algo_G10.c`)
- Menu loop → Find by ID: dispatches (evidence: `TPE_Algo_G10.c`)
- Menu loop → Delete student: dispatches (evidence: `TPE_Algo_G10.c`)
- Menu loop → Sort by name: dispatches (evidence: `TPE_Algo_G10.c`)
- Menu loop → Binary name search: dispatches (evidence: `TPE_Algo_G10.c`)
- Menu loop → Calculate age: dispatches (evidence: `TPE_Algo_G10.c`)
- Menu loop → Sort by program: dispatches (evidence: `TPE_Algo_G10.c`)
- Menu loop → Display students: dispatches (evidence: `TPE_Algo_G10.c`)
- Register students → Student records: adds records (evidence: `TPE_Algo_G10.c`)
- Modify student → Student records: updates records (evidence: `TPE_Algo_G10.c`)
- Find by ID → Student records: searches records (evidence: `TPE_Algo_G10.c`)
- Delete student → Student records: removes record (evidence: `TPE_Algo_G10.c`)
- Sort by name → Student records: reorders records (evidence: `TPE_Algo_G10.c`)
- Binary name search → Student records: searches records (evidence: `TPE_Algo_G10.c`)
- Calculate age → Student records: matches student (evidence: `TPE_Algo_G10.c`)
- Sort by program → Student records: reorders records (evidence: `TPE_Algo_G10.c`)
- Display students → Print record list: calls (evidence: `TPE_Algo_G10.c`)
- Sort by name → Print record list: calls (evidence: `TPE_Algo_G10.c`)
- Sort by program → Print record list: calls (evidence: `TPE_Algo_G10.c`)
- Find by ID → Print record list: calls (evidence: `TPE_Algo_G10.c`)
- Binary name search → Print record list: calls (evidence: `TPE_Algo_G10.c`)
- Print record list → Student records: reads records (evidence: `TPE_Algo_G10.c`)
