# elivanjr/estrutura_dados2 architecture

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

- Interactive diagram: https://gitdiagram.com/elivanjr/estrutura_dados2
- Repository: https://github.com/elivanjr/estrutura_dados2

## Overview

This repository is a small collection of standalone C exercises rather than one integrated product. Its most developed workflow is GenericList V2: a user chooses actions in the terminal, the menu dispatches to registration or list operations, and records are created as typed objects and stored in a doubly linked list. V1 demonstrates an earlier generic list with discipline records; separate directories contain recursion exercises and a process-execution simulation. The README is only a project description, so relationships below are based on the sampled source; no persistent storage or external services are shown.

Main entry points: [`GenericList__V2/capsula.h`](https://github.com/elivanjr/estrutura_dados2/blob/main/GenericList__V2/capsula.h) (Record registration), [`GenericList__V2/main.c`](https://github.com/elivanjr/estrutura_dados2/blob/main/GenericList__V2/main.c) (Program entry), [`GenericList__V2/menu.h`](https://github.com/elivanjr/estrutura_dados2/blob/main/GenericList__V2/menu.h) (Menu interface), [`GenericList__V1/project.c`](https://github.com/elivanjr/estrutura_dados2/blob/main/GenericList__V1/project.c) (Example program)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_v2["Generic List V2"]
  node_v2main["Program entry<br/>[main.c]"]
  node_v2menu["Menu interface<br/>[menu.h]"]
  node_registration["Record registration<br/>[capsula.h]"]
  node_discipline["Discipline records<br/>[disciplina.h]"]
  node_student["Student records<br/>[aluno.h]"]
  node_v2object["Typed object nodes<br/>[object.h]"]
  node_v2list["Linked list<br/>[lista.h]"]
end

subgraph group_v1["Generic List V1"]
  node_v1entry["Example program<br/>[project.c]"]
  node_v1discipline["Discipline records<br/>[entidade.h]"]
  node_v1list["Generic list<br/>[list.h]"]
  node_v1object["Object node<br/>[object.h]"]
end

subgraph group_exercises["C Exercises"]
  node_process["Process simulation<br/>[so_atividade.c]"]
  node_recursion["Recursion examples"]
end

node_user(("Terminal user"))

node_user -->|"starts"| node_v2main
node_v2main -->|"calls menu"| node_v2menu
node_v2main -->|"dispatches registration"| node_registration
node_v2main -->|"dispatches list view"| node_v2menu
node_v2menu -->|"calls registration"| node_registration
node_v2menu -->|"invokes list operations"| node_v2list
node_registration -->|"constructs discipline"| node_discipline
node_registration -->|"constructs student"| node_student
node_registration -->|"inserts records"| node_v2list
node_discipline -->|"creates typed node"| node_v2object
node_student -->|"creates typed node"| node_v2object
node_v2list -->|"stores and traverses"| node_v2object
node_user -->|"runs example"| node_v1entry
node_v1entry -->|"creates and prints"| node_v1discipline
node_v1entry -->|"pushes and removes"| node_v1list
node_v1discipline -->|"wraps record"| node_v1object
node_v1list -->|"links nodes"| node_v1object
node_user -->|"runs simulation"| node_process
node_user -.->|"runs examples"| node_recursion

click node_v2main "https://github.com/elivanjr/estrutura_dados2/blob/main/GenericList__V2/main.c"
click node_v2menu "https://github.com/elivanjr/estrutura_dados2/blob/main/GenericList__V2/menu.h"
click node_registration "https://github.com/elivanjr/estrutura_dados2/blob/main/GenericList__V2/capsula.h"
click node_discipline "https://github.com/elivanjr/estrutura_dados2/blob/main/GenericList__V2/disciplina.h"
click node_student "https://github.com/elivanjr/estrutura_dados2/blob/main/GenericList__V2/aluno.h"
click node_v2object "https://github.com/elivanjr/estrutura_dados2/blob/main/GenericList__V2/object.h"
click node_v2list "https://github.com/elivanjr/estrutura_dados2/blob/main/GenericList__V2/lista.h"
click node_v1entry "https://github.com/elivanjr/estrutura_dados2/blob/main/GenericList__V1/project.c"
click node_v1discipline "https://github.com/elivanjr/estrutura_dados2/blob/main/GenericList__V1/entidade.h"
click node_v1list "https://github.com/elivanjr/estrutura_dados2/blob/main/GenericList__V1/list.h"
click node_v1object "https://github.com/elivanjr/estrutura_dados2/blob/main/GenericList__V1/object.h"
click node_process "https://github.com/elivanjr/estrutura_dados2/blob/main/Random/so_atividade.c"
click node_recursion "https://github.com/elivanjr/estrutura_dados2/tree/main/Recursividade"

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_v2main,node_v2menu,node_registration,node_discipline,node_student,node_v2object,node_v2list,node_user toneBlue
class node_v1entry,node_v1discipline,node_v1list,node_v1object toneAmber
class node_process,node_recursion toneMint
```

## Components

### Generic List V2

- [Program entry](https://github.com/elivanjr/estrutura_dados2/blob/main/GenericList__V2/main.c): `GenericList__V2/main.c`
- [Menu interface](https://github.com/elivanjr/estrutura_dados2/blob/main/GenericList__V2/menu.h): `GenericList__V2/menu.h`
- [Record registration](https://github.com/elivanjr/estrutura_dados2/blob/main/GenericList__V2/capsula.h): `GenericList__V2/capsula.h`
- [Discipline records](https://github.com/elivanjr/estrutura_dados2/blob/main/GenericList__V2/disciplina.h): `GenericList__V2/disciplina.h`
- [Student records](https://github.com/elivanjr/estrutura_dados2/blob/main/GenericList__V2/aluno.h): `GenericList__V2/aluno.h`
- [Typed object nodes](https://github.com/elivanjr/estrutura_dados2/blob/main/GenericList__V2/object.h): `GenericList__V2/object.h`
- [Linked list](https://github.com/elivanjr/estrutura_dados2/blob/main/GenericList__V2/lista.h): `GenericList__V2/lista.h`

### Generic List V1

- [Example program](https://github.com/elivanjr/estrutura_dados2/blob/main/GenericList__V1/project.c): `GenericList__V1/project.c`
- [Discipline records](https://github.com/elivanjr/estrutura_dados2/blob/main/GenericList__V1/entidade.h): `GenericList__V1/entidade.h`
- [Generic list](https://github.com/elivanjr/estrutura_dados2/blob/main/GenericList__V1/list.h): `GenericList__V1/list.h`
- [Object node](https://github.com/elivanjr/estrutura_dados2/blob/main/GenericList__V1/object.h): `GenericList__V1/object.h`

### C Exercises

- [Process simulation](https://github.com/elivanjr/estrutura_dados2/blob/main/Random/so_atividade.c): `Random/so_atividade.c`
- [Recursion examples](https://github.com/elivanjr/estrutura_dados2/tree/main/Recursividade): `Recursividade`

### Other components

- **Terminal user**

## Connections

- Terminal user → Program entry: starts (evidence: `GenericList__V2/main.c`)
- Program entry → Menu interface: calls menu (evidence: `GenericList__V2/main.c`)
- Program entry → Record registration: dispatches registration (evidence: `GenericList__V2/main.c`)
- Program entry → Menu interface: dispatches list view (evidence: `GenericList__V2/main.c`)
- Menu interface → Record registration: calls registration (evidence: `GenericList__V2/menu.h`)
- Menu interface → Linked list: invokes list operations (evidence: `GenericList__V2/menu.h`)
- Record registration → Discipline records: constructs discipline (evidence: `GenericList__V2/capsula.h`)
- Record registration → Student records: constructs student (evidence: `GenericList__V2/capsula.h`)
- Record registration → Linked list: inserts records (evidence: `GenericList__V2/capsula.h`)
- Discipline records → Typed object nodes: creates typed node (evidence: `GenericList__V2/disciplina.h`)
- Student records → Typed object nodes: creates typed node (evidence: `GenericList__V2/aluno.h`)
- Linked list → Typed object nodes: stores and traverses (evidence: `GenericList__V2/lista.h`)
- Terminal user → Example program: runs example (evidence: `GenericList__V1/project.c`)
- Example program → Discipline records: creates and prints (evidence: `GenericList__V1/project.c`)
- Example program → Generic list: pushes and removes (evidence: `GenericList__V1/project.c`)
- Discipline records → Object node: wraps record (evidence: `GenericList__V1/entidade.h`)
- Generic list → Object node: links nodes (evidence: `GenericList__V1/list.h`)
- Terminal user → Process simulation: runs simulation (evidence: `Random/so_atividade.c`)
- Terminal user → Recursion examples: runs examples
