# maxidevv/proyectointegrador-informatica2 architecture

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

- Interactive diagram: https://gitdiagram.com/maxidevv/proyectointegrador-informatica2
- Repository: https://github.com/maxidevv/proyectointegrador-informatica2

## Overview

##### Project type and purpose
- This is a small command-line data-analysis tool written in C.
- Its goal is to load a CSV dataset (lithium reserves), push the records onto a Stack ADT, traverse and compare data, then output results to the console.

##### File structure
- Top-level:
- README.md – project description
- main/ – directory containing C sources and resources
- main/ contains:
- backup.c – backup or utility routines (likely earlier version)
- codigoVersionFinal.c – the finalized implementation: CSV parser, Stack operations, comparison logic, main() driver
- resources/Recursos-reservas.csv – the raw dataset file

##### README for additional insights
- Implements a Stack abstract data type in C, using dynamic memory.
- Loads CSV lines into the stack, processes them to compare values.
- No external libraries beyond the C standard library.

## Diagram (Mermaid)

```mermaid
flowchart TB
    README["README.md"]:::doc
    CSV["Recursos-reservas.csv"]:::dataSource
    subgraph "Core Modules"
        Loader["CSV Loader/Parser\n(parseLine())"]:::module
        Stack["Stack ADT\n(push, pop, peek, isEmpty)"]:::module
        Comparator["Comparator/Analysis\n(compareRecords())"]:::module
        CLI["CLI / Output\n(main(), printResults)"]:::module
    end
    Backup["Backup/Utility\n(backup.c routines)"]:::utility

    README -->|"documents project"| CLI
    CLI -->|"invokes"| Loader
    CSV -->|"reads data from"| Loader
    Loader -->|"pushes records to"| Stack
    Stack -->|"provides records to"| Comparator
    Comparator -->|"sends results to"| CLI
    Backup -.->|"legacy utility support"| Loader

    click README "https://github.com/maxidevv/proyectointegrador-informatica2/blob/main/README.md"
    click CSV "https://github.com/maxidevv/proyectointegrador-informatica2/blob/main/main/resources/Recursos-reservas.csv"
    click Loader "https://github.com/maxidevv/proyectointegrador-informatica2/blob/main/main/codigoVersionFinal.c"
    click Stack "https://github.com/maxidevv/proyectointegrador-informatica2/blob/main/main/codigoVersionFinal.c"
    click Comparator "https://github.com/maxidevv/proyectointegrador-informatica2/blob/main/main/codigoVersionFinal.c"
    click CLI "https://github.com/maxidevv/proyectointegrador-informatica2/blob/main/main/codigoVersionFinal.c"
    click Backup "https://github.com/maxidevv/proyectointegrador-informatica2/blob/main/main/backup.c"

    classDef dataSource fill:#f9f,stroke:#333,stroke-width:1px
    classDef module fill:#bbf,stroke:#333,stroke-width:1px
    classDef utility fill:#bfb,stroke:#333,stroke-width:1px
    classDef doc fill:#ffd,stroke:#333,stroke-width:1px
```
