-
Notifications
You must be signed in to change notification settings - Fork 0
Project Architecture
GarvxT edited this page Mar 26, 2026
·
1 revision
The project is divided into two main parts:
- Algorithms
- Data Structures
Each part has:
- Logic (Algorithms/Data Structure operations)
- Hooks (State + Controller)
- Components (UI)
- Utils (Generators, helpers)
- Global Store (Context API)
src/
- algorithms/ → Algorithm logic
- hooks/Algorithms → Algorithm state management
- hooks/DataStructures → Data structure state management
- components/ → Reusable UI components
- pages/ → Pages for each visualization
- utils/ → Generators and helper functions
- store/ → Global state (Context API)
User Action → Hook → Algorithm Logic → Update State → UI Re-render → Animation
This separation ensures:
- Clean code
- Reusability
- Easy to add new algorithms
- Easy to add new data structures