# fsiddh/data-structures-in-real-life-projects architecture

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

- Interactive diagram: https://gitdiagram.com/fsiddh/data-structures-in-real-life-projects
- Repository: https://github.com/fsiddh/data-structures-in-real-life-projects

## Overview

This repository is a portfolio of independent browser projects demonstrating data structures and algorithms through small applications and games, rather than one integrated product. User-facing workflows range from editing text or images to solving financial balances and playing games. The graph preserves the major project branches visible in the tree; source excerpts support the component relationships shown for the chat list, editor, zipper, contacts, and cashflow demo. Other project internals were not sampled, so their runtime wiring is left unspecified.

Main entry points: [`12. File Zipper(Huffman Encoding)/huffman.js`](https://github.com/fsiddh/data-structures-in-real-life-projects/blob/main/12.%20File%20Zipper(Huffman%20Encoding)/huffman.js) (Huffman Codec), [`10. WhatsApp Chatlist (LRU Cache)/script.js`](https://github.com/fsiddh/data-structures-in-real-life-projects/blob/main/10.%20WhatsApp%20Chatlist%20(LRU%20Cache)/script.js) (Chatlist UI), [`11. Text Editor (Stack)(Undo functionality)/script.js`](https://github.com/fsiddh/data-structures-in-real-life-projects/blob/main/11.%20Text%20Editor%20(Stack)(Undo%20functionality)/script.js) (Editor UI), [`12. File Zipper(Huffman Encoding)/script.js`](https://github.com/fsiddh/data-structures-in-real-life-projects/blob/main/12.%20File%20Zipper(Huffman%20Encoding)/script.js) (Zipper UI)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_tools["Browser Tools"]
  node_chat_ui["Chatlist UI<br/>[script.js]"]
  node_chat_handler["LRU Chat Handler<br/>[ChatHandler.js]"]
  node_text_ui["Editor UI<br/>[script.js]"]
  node_undo_stack["Undo Stack<br/>[stack.js]"]
  node_zip_ui["Zipper UI<br/>[script.js]"]
  node_huffman["Huffman Codec<br/>[huffman.js]"]
  node_zip_heap["Codec Heap<br/>[heap.js]"]
  node_chatbot["Chatbot<br/>[script.js]"]
  node_photo_editor["Photo Editor<br/>[script.js]"]
  node_contact_ui["Contact Search UI<br/>[script.js]"]
end

subgraph group_algorithms["Algorithm Demos"]
  node_contact_trie["Contact Trie<br/>[Trie.js]"]
  node_sudoku["Sudoku Solver<br/>[script.js]"]
  node_splitwise_cpp["Splitwise Settlement<br/>[algo.cpp]"]
end

subgraph group_games["Games"]
  node_snake["Snake Game<br/>[snake.js]"]
  node_covid_game["Covid Fighter<br/>[fighter.js]"]
  node_spin_game["Spin and Win<br/>[game.js]"]
  node_mario_platformer["Mario Platformer<br/>[game.js]"]
  node_froggy["Jump Froggy<br/>[game.js]"]
  node_mario_game["Mario Game<br/>[game.js]"]
end

subgraph group_planning["Planning and Finance"]
  node_cashflow_ui["Cashflow Demo<br/>[script.js]"]
  node_cashflow_heap["Settlement Heap<br/>[heap.js]"]
  node_travel["Travel Planner<br/>[Dijkstra.js]"]
end

node_chat_ui -->|"uses handler"| node_chat_handler
node_text_ui -->|"uses stack"| node_undo_stack
node_zip_ui -->|"encodes and decodes"| node_huffman
node_huffman -->|"uses heap"| node_zip_heap
node_contact_ui -->|"uses trie"| node_contact_trie
node_cashflow_ui -->|"uses heap"| node_cashflow_heap

click node_chat_ui "https://github.com/fsiddh/data-structures-in-real-life-projects/blob/main/10.%20WhatsApp%20Chatlist%20(LRU%20Cache)/script.js"
click node_chat_handler "https://github.com/fsiddh/data-structures-in-real-life-projects/blob/main/10.%20WhatsApp%20Chatlist%20(LRU%20Cache)/ChatHandler.js"
click node_text_ui "https://github.com/fsiddh/data-structures-in-real-life-projects/blob/main/11.%20Text%20Editor%20(Stack)(Undo%20functionality)/script.js"
click node_undo_stack "https://github.com/fsiddh/data-structures-in-real-life-projects/blob/main/11.%20Text%20Editor%20(Stack)(Undo%20functionality)/stack.js"
click node_zip_ui "https://github.com/fsiddh/data-structures-in-real-life-projects/blob/main/12.%20File%20Zipper(Huffman%20Encoding)/script.js"
click node_huffman "https://github.com/fsiddh/data-structures-in-real-life-projects/blob/main/12.%20File%20Zipper(Huffman%20Encoding)/huffman.js"
click node_zip_heap "https://github.com/fsiddh/data-structures-in-real-life-projects/blob/main/12.%20File%20Zipper(Huffman%20Encoding)/heap.js"
click node_chatbot "https://github.com/fsiddh/data-structures-in-real-life-projects/blob/main/13.%20Chatbot(APIs)/script.js"
click node_photo_editor "https://github.com/fsiddh/data-structures-in-real-life-projects/blob/main/14.%20Photo_Editor/script.js"
click node_contact_ui "https://github.com/fsiddh/data-structures-in-real-life-projects/blob/main/15.%20Contact_List_Search/script.js"
click node_contact_trie "https://github.com/fsiddh/data-structures-in-real-life-projects/blob/main/15.%20Contact_List_Search/Trie.js"
click node_sudoku "https://github.com/fsiddh/data-structures-in-real-life-projects/blob/main/6.%20Sudoku%20(Backtracking)/script.js"
click node_splitwise_cpp "https://github.com/fsiddh/data-structures-in-real-life-projects/blob/main/8.%20Splitwise%20Algorithm%20Design%20(C%2B%2B)(Using%20Maps%20and%20Multisets)/algo.cpp"
click node_cashflow_ui "https://github.com/fsiddh/data-structures-in-real-life-projects/blob/main/9.%20Splitwise%20Cashflow%20Minimization%20(Heap)/script.js"
click node_cashflow_heap "https://github.com/fsiddh/data-structures-in-real-life-projects/blob/main/9.%20Splitwise%20Cashflow%20Minimization%20(Heap)/heap.js"
click node_travel "https://github.com/fsiddh/data-structures-in-real-life-projects/blob/main/7.%20Travel%20Plan(Graph)/Dijkstra.js"
click node_snake "https://github.com/fsiddh/data-structures-in-real-life-projects/blob/main/2.%20Snake%20Game(OOPs)/snake.js"
click node_covid_game "https://github.com/fsiddh/data-structures-in-real-life-projects/blob/main/3.%20Covid%20Fighter%20Game(Arrays)/fighter.js"
click node_spin_game "https://github.com/fsiddh/data-structures-in-real-life-projects/blob/main/4.%20Spin%20%26%20Win%20(Arrays%20and%20Maths)/JS/game.js"
click node_mario_platformer "https://github.com/fsiddh/data-structures-in-real-life-projects/blob/main/5.%20Interactive%20Mario%20Platformer/JS/game.js"
click node_froggy "https://github.com/fsiddh/data-structures-in-real-life-projects/blob/main/16.%20Jump_Froggy/game.js"
click node_mario_game "https://github.com/fsiddh/data-structures-in-real-life-projects/blob/main/17.%20Mario_Game/game.js"

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_chat_ui,node_chat_handler,node_text_ui,node_undo_stack,node_zip_ui,node_huffman,node_zip_heap,node_chatbot,node_photo_editor,node_contact_ui toneBlue
class node_contact_trie,node_sudoku,node_splitwise_cpp toneAmber
class node_snake,node_covid_game,node_spin_game,node_mario_platformer,node_froggy,node_mario_game toneMint
class node_cashflow_ui,node_cashflow_heap,node_travel toneRose
```

## Components

### Browser Tools

- [Chatlist UI](https://github.com/fsiddh/data-structures-in-real-life-projects/blob/main/10.%20WhatsApp%20Chatlist%20(LRU%20Cache)/script.js): `10. WhatsApp Chatlist (LRU Cache)/script.js`
- [LRU Chat Handler](https://github.com/fsiddh/data-structures-in-real-life-projects/blob/main/10.%20WhatsApp%20Chatlist%20(LRU%20Cache)/ChatHandler.js): `10. WhatsApp Chatlist (LRU Cache)/ChatHandler.js`
- [Editor UI](https://github.com/fsiddh/data-structures-in-real-life-projects/blob/main/11.%20Text%20Editor%20(Stack)(Undo%20functionality)/script.js): `11. Text Editor (Stack)(Undo functionality)/script.js`
- [Undo Stack](https://github.com/fsiddh/data-structures-in-real-life-projects/blob/main/11.%20Text%20Editor%20(Stack)(Undo%20functionality)/stack.js): `11. Text Editor (Stack)(Undo functionality)/stack.js`
- [Zipper UI](https://github.com/fsiddh/data-structures-in-real-life-projects/blob/main/12.%20File%20Zipper(Huffman%20Encoding)/script.js): `12. File Zipper(Huffman Encoding)/script.js`
- [Huffman Codec](https://github.com/fsiddh/data-structures-in-real-life-projects/blob/main/12.%20File%20Zipper(Huffman%20Encoding)/huffman.js): `12. File Zipper(Huffman Encoding)/huffman.js`
- [Codec Heap](https://github.com/fsiddh/data-structures-in-real-life-projects/blob/main/12.%20File%20Zipper(Huffman%20Encoding)/heap.js): `12. File Zipper(Huffman Encoding)/heap.js`
- [Chatbot](https://github.com/fsiddh/data-structures-in-real-life-projects/blob/main/13.%20Chatbot(APIs)/script.js): `13. Chatbot(APIs)/script.js`
- [Photo Editor](https://github.com/fsiddh/data-structures-in-real-life-projects/blob/main/14.%20Photo_Editor/script.js): `14. Photo_Editor/script.js`
- [Contact Search UI](https://github.com/fsiddh/data-structures-in-real-life-projects/blob/main/15.%20Contact_List_Search/script.js): `15. Contact_List_Search/script.js`

### Algorithm Demos

- [Contact Trie](https://github.com/fsiddh/data-structures-in-real-life-projects/blob/main/15.%20Contact_List_Search/Trie.js): `15. Contact_List_Search/Trie.js`
- [Sudoku Solver](https://github.com/fsiddh/data-structures-in-real-life-projects/blob/main/6.%20Sudoku%20(Backtracking)/script.js): `6. Sudoku (Backtracking)/script.js`
- [Splitwise Settlement](https://github.com/fsiddh/data-structures-in-real-life-projects/blob/main/8.%20Splitwise%20Algorithm%20Design%20(C%2B%2B)(Using%20Maps%20and%20Multisets)/algo.cpp): `8. Splitwise Algorithm Design (C++)(Using Maps and Multisets)/algo.cpp`

### Games

- [Snake Game](https://github.com/fsiddh/data-structures-in-real-life-projects/blob/main/2.%20Snake%20Game(OOPs)/snake.js): `2. Snake Game(OOPs)/snake.js`
- [Covid Fighter](https://github.com/fsiddh/data-structures-in-real-life-projects/blob/main/3.%20Covid%20Fighter%20Game(Arrays)/fighter.js): `3. Covid Fighter Game(Arrays)/fighter.js`
- [Spin and Win](https://github.com/fsiddh/data-structures-in-real-life-projects/blob/main/4.%20Spin%20%26%20Win%20(Arrays%20and%20Maths)/JS/game.js): `4. Spin & Win (Arrays and Maths)/JS/game.js`
- [Mario Platformer](https://github.com/fsiddh/data-structures-in-real-life-projects/blob/main/5.%20Interactive%20Mario%20Platformer/JS/game.js): `5. Interactive Mario Platformer/JS/game.js`
- [Jump Froggy](https://github.com/fsiddh/data-structures-in-real-life-projects/blob/main/16.%20Jump_Froggy/game.js): `16. Jump_Froggy/game.js`
- [Mario Game](https://github.com/fsiddh/data-structures-in-real-life-projects/blob/main/17.%20Mario_Game/game.js): `17. Mario_Game/game.js`

### Planning and Finance

- [Cashflow Demo](https://github.com/fsiddh/data-structures-in-real-life-projects/blob/main/9.%20Splitwise%20Cashflow%20Minimization%20(Heap)/script.js): `9. Splitwise Cashflow Minimization (Heap)/script.js`
- [Settlement Heap](https://github.com/fsiddh/data-structures-in-real-life-projects/blob/main/9.%20Splitwise%20Cashflow%20Minimization%20(Heap)/heap.js): `9. Splitwise Cashflow Minimization (Heap)/heap.js`
- [Travel Planner](https://github.com/fsiddh/data-structures-in-real-life-projects/blob/main/7.%20Travel%20Plan(Graph)/Dijkstra.js): `7. Travel Plan(Graph)/Dijkstra.js`

## Connections

- Chatlist UI → LRU Chat Handler: uses handler (evidence: `10. WhatsApp Chatlist (LRU Cache)/script.js`)
- Editor UI → Undo Stack: uses stack (evidence: `11. Text Editor (Stack)(Undo functionality)/script.js`)
- Zipper UI → Huffman Codec: encodes and decodes (evidence: `12. File Zipper(Huffman Encoding)/script.js`)
- Huffman Codec → Codec Heap: uses heap (evidence: `12. File Zipper(Huffman Encoding)/huffman.js`)
- Contact Search UI → Contact Trie: uses trie (evidence: `15. Contact_List_Search/script.js`)
- Cashflow Demo → Settlement Heap: uses heap (evidence: `9. Splitwise Cashflow Minimization (Heap)/script.js`)
