# mochenxx/data-structures-mini-projects architecture

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

- Interactive diagram: https://gitdiagram.com/mochenxx/data-structures-mini-projects
- Repository: https://github.com/mochenxx/data-structures-mini-projects

## Overview

This repository is a collection of independent, Windows-oriented C console programs for learning data structures and sorting algorithms, not one integrated application. In each program, the user selects operations through a menu; the corresponding main routine dispatches to implementation helpers and presents results. The graph retains the README’s principal capabilities, including time-aware lists, both linked-list variants and stack implementations, queue operations, four sorting methods, and BST traversal and mutation. Some subsystem links are documented rather than verified in unsampled source, so those edges are dashed.

Main entry points: [`Sorting/main.c`](https://github.com/mochenxx/data-structures-mini-projects/blob/master/Sorting/main.c) (Sorting menu), [`Linked-List/Singly-Linked-List/main.c`](https://github.com/mochenxx/data-structures-mini-projects/blob/master/Linked-List/Singly-Linked-List/main.c) (Singly-list menu), [`Linked-List/Doubly-Linked-List/main.c`](https://github.com/mochenxx/data-structures-mini-projects/blob/master/Linked-List/Doubly-Linked-List/main.c) (Doubly-list menu), [`Sorting/BubbleSort.c`](https://github.com/mochenxx/data-structures-mini-projects/blob/master/Sorting/BubbleSort.c) (Sort algorithms)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_lists["Lists"]
  node_intarray["Integer array<br/>[main.c]"]
  node_structarray["Timed array<br/>[main.c]"]
  node_simpleint["Integer simple list<br/>[main.c]"]
  node_simpletimed["Timed simple list<br/>[main.c]"]
end

subgraph group_linked["Linked Lists"]
  node_singlyapp["Singly-list menu<br/>[main.c]"]
  node_singlyops["Singly-list operations<br/>[SinglyLinkedList.c]"]
  node_singlyfree["Singly-list cleanup<br/>[FreeList.c]"]
  node_doublyapp["Doubly-list menu<br/>[main.c]"]
  node_doublyops["Doubly-list operations<br/>[DoublyLinkedList.c]"]
end

subgraph group_linear["Stacks and Queue"]
  node_stackarray["Array stack<br/>[main.c]"]
  node_stacklinked["Linked stack<br/>[main.c]"]
  node_queue["Circular queue<br/>[main.c]"]
end

subgraph group_sorting["Sorting"]
  node_sortingapp["Sorting menu<br/>[main.c]"]
  node_sortalgorithms["Sort algorithms<br/>[BubbleSort.c]"]
  node_sortinput["Array input<br/>[SortHelper.c]"]
  node_sortlog["Sort logging<br/>[LogFile.c]"]
end

subgraph group_trees["Trees"]
  node_bstapp["BST menu<br/>[main.c]"]
  node_bstops["BST operations<br/>[BSTHelper.c]"]
end

node_user(("Console user"))

node_user -.->|"uses"| node_intarray
node_user -.->|"uses"| node_structarray
node_user -.->|"uses"| node_simpleint
node_user -.->|"uses"| node_simpletimed
node_user -.->|"selects operations"| node_singlyapp
node_user -.->|"selects operations"| node_doublyapp
node_user -.->|"selects operations"| node_stackarray
node_user -.->|"selects operations"| node_stacklinked
node_user -.->|"selects operations"| node_queue
node_user -.->|"selects sort"| node_sortingapp
node_user -.->|"selects operations"| node_bstapp
node_singlyapp -->|"dispatches"| node_singlyops
node_singlyapp -->|"clears list"| node_singlyfree
node_doublyapp -->|"dispatches"| node_doublyops
node_sortingapp -->|"chooses algorithm"| node_sortalgorithms
node_sortingapp -->|"reads arrays"| node_sortinput
node_sortingapp -.->|"uses logging"| node_sortlog
node_sortalgorithms -.->|"sorts input"| node_sortingapp
node_bstapp -->|"dispatches"| node_bstops

click node_intarray "https://github.com/mochenxx/data-structures-mini-projects/blob/master/Array/01-Array-of-Integers/main.c"
click node_structarray "https://github.com/mochenxx/data-structures-mini-projects/blob/master/Array/02-Array-of-Structures/main.c"
click node_simpleint "https://github.com/mochenxx/data-structures-mini-projects/blob/master/Simple-List/01-Simple-List-of-Integers/main.c"
click node_simpletimed "https://github.com/mochenxx/data-structures-mini-projects/blob/master/Simple-List/02-Simple-List-of-Structures/main.c"
click node_singlyapp "https://github.com/mochenxx/data-structures-mini-projects/blob/master/Linked-List/Singly-Linked-List/main.c"
click node_singlyops "https://github.com/mochenxx/data-structures-mini-projects/blob/master/Linked-List/Singly-Linked-List/SinglyLinkedList.c"
click node_singlyfree "https://github.com/mochenxx/data-structures-mini-projects/blob/master/Linked-List/Singly-Linked-List/FreeList.c"
click node_doublyapp "https://github.com/mochenxx/data-structures-mini-projects/blob/master/Linked-List/Doubly-Linked-List/main.c"
click node_doublyops "https://github.com/mochenxx/data-structures-mini-projects/blob/master/Linked-List/Doubly-Linked-List/DoublyLinkedList.c"
click node_stackarray "https://github.com/mochenxx/data-structures-mini-projects/blob/master/Stack/Stack-using-array/main.c"
click node_stacklinked "https://github.com/mochenxx/data-structures-mini-projects/blob/master/Stack/Stack-using-linked-list/main.c"
click node_queue "https://github.com/mochenxx/data-structures-mini-projects/blob/master/Queue/main.c"
click node_sortingapp "https://github.com/mochenxx/data-structures-mini-projects/blob/master/Sorting/main.c"
click node_sortalgorithms "https://github.com/mochenxx/data-structures-mini-projects/blob/master/Sorting/BubbleSort.c"
click node_sortinput "https://github.com/mochenxx/data-structures-mini-projects/blob/master/Sorting/SortHelper.c"
click node_sortlog "https://github.com/mochenxx/data-structures-mini-projects/blob/master/Sorting/LogFile.c"
click node_bstapp "https://github.com/mochenxx/data-structures-mini-projects/blob/master/Binary-Search-Tree/main.c"
click node_bstops "https://github.com/mochenxx/data-structures-mini-projects/blob/master/Binary-Search-Tree/BSTHelper.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_intarray,node_structarray,node_simpleint,node_simpletimed,node_user toneBlue
class node_singlyapp,node_singlyops,node_singlyfree,node_doublyapp,node_doublyops toneAmber
class node_stackarray,node_stacklinked,node_queue toneMint
class node_sortingapp,node_sortalgorithms,node_sortinput,node_sortlog toneRose
class node_bstapp,node_bstops toneIndigo
```

## Components

### Lists

- [Integer array](https://github.com/mochenxx/data-structures-mini-projects/blob/master/Array/01-Array-of-Integers/main.c): `Array/01-Array-of-Integers/main.c`
- [Timed array](https://github.com/mochenxx/data-structures-mini-projects/blob/master/Array/02-Array-of-Structures/main.c): `Array/02-Array-of-Structures/main.c`
- [Integer simple list](https://github.com/mochenxx/data-structures-mini-projects/blob/master/Simple-List/01-Simple-List-of-Integers/main.c): `Simple-List/01-Simple-List-of-Integers/main.c`
- [Timed simple list](https://github.com/mochenxx/data-structures-mini-projects/blob/master/Simple-List/02-Simple-List-of-Structures/main.c): `Simple-List/02-Simple-List-of-Structures/main.c`

### Linked Lists

- [Singly-list menu](https://github.com/mochenxx/data-structures-mini-projects/blob/master/Linked-List/Singly-Linked-List/main.c): `Linked-List/Singly-Linked-List/main.c`
- [Singly-list operations](https://github.com/mochenxx/data-structures-mini-projects/blob/master/Linked-List/Singly-Linked-List/SinglyLinkedList.c): `Linked-List/Singly-Linked-List/SinglyLinkedList.c`
- [Singly-list cleanup](https://github.com/mochenxx/data-structures-mini-projects/blob/master/Linked-List/Singly-Linked-List/FreeList.c): `Linked-List/Singly-Linked-List/FreeList.c`
- [Doubly-list menu](https://github.com/mochenxx/data-structures-mini-projects/blob/master/Linked-List/Doubly-Linked-List/main.c): `Linked-List/Doubly-Linked-List/main.c`
- [Doubly-list operations](https://github.com/mochenxx/data-structures-mini-projects/blob/master/Linked-List/Doubly-Linked-List/DoublyLinkedList.c): `Linked-List/Doubly-Linked-List/DoublyLinkedList.c`

### Stacks and Queue

- [Array stack](https://github.com/mochenxx/data-structures-mini-projects/blob/master/Stack/Stack-using-array/main.c): `Stack/Stack-using-array/main.c`
- [Linked stack](https://github.com/mochenxx/data-structures-mini-projects/blob/master/Stack/Stack-using-linked-list/main.c): `Stack/Stack-using-linked-list/main.c`
- [Circular queue](https://github.com/mochenxx/data-structures-mini-projects/blob/master/Queue/main.c): `Queue/main.c`

### Sorting

- [Sorting menu](https://github.com/mochenxx/data-structures-mini-projects/blob/master/Sorting/main.c): `Sorting/main.c`
- [Sort algorithms](https://github.com/mochenxx/data-structures-mini-projects/blob/master/Sorting/BubbleSort.c): `Sorting/BubbleSort.c`
- [Array input](https://github.com/mochenxx/data-structures-mini-projects/blob/master/Sorting/SortHelper.c): `Sorting/SortHelper.c`
- [Sort logging](https://github.com/mochenxx/data-structures-mini-projects/blob/master/Sorting/LogFile.c): `Sorting/LogFile.c`

### Trees

- [BST menu](https://github.com/mochenxx/data-structures-mini-projects/blob/master/Binary-Search-Tree/main.c): `Binary-Search-Tree/main.c`
- [BST operations](https://github.com/mochenxx/data-structures-mini-projects/blob/master/Binary-Search-Tree/BSTHelper.c): `Binary-Search-Tree/BSTHelper.c`

### Other components

- **Console user**

## Connections

- Console user → Integer array: uses (evidence: `README.md`)
- Console user → Timed array: uses (evidence: `README.md`)
- Console user → Integer simple list: uses
- Console user → Timed simple list: uses
- Console user → Singly-list menu: selects operations (evidence: `README.md`)
- Console user → Doubly-list menu: selects operations (evidence: `README.md`)
- Console user → Array stack: selects operations (evidence: `README.md`)
- Console user → Linked stack: selects operations (evidence: `README.md`)
- Console user → Circular queue: selects operations (evidence: `README.md`)
- Console user → Sorting menu: selects sort (evidence: `README.md`)
- Console user → BST menu: selects operations (evidence: `README.md`)
- Singly-list menu → Singly-list operations: dispatches (evidence: `Linked-List/Singly-Linked-List/main.c`)
- Singly-list menu → Singly-list cleanup: clears list (evidence: `Linked-List/Singly-Linked-List/main.c`)
- Doubly-list menu → Doubly-list operations: dispatches (evidence: `Linked-List/Doubly-Linked-List/main.c`)
- Sorting menu → Sort algorithms: chooses algorithm (evidence: `Sorting/main.c`)
- Sorting menu → Array input: reads arrays (evidence: `Sorting/main.c`)
- Sorting menu → Sort logging: uses logging (evidence: `Sorting/main.c`)
- Sort algorithms → Sorting menu: sorts input (evidence: `README.md`)
- BST menu → BST operations: dispatches (evidence: `Binary-Search-Tree/main.c`)
