Group Work and Project
Experience the interactive Algorithm Explorer live on GitHub Pages:
https://commandline-protocol.github.io/Design-Analysis-Algorithms/algorithms_explorer/
Before running the project locally, ensure you have the following installed:
16.0.0 or higher (Recommended: Node.js v18.x or v20.x+ LTS)
http, fs, path, assert), so no npm install is required.The algorithms_explorer application is built with a modular, lightweight architecture split into four core application files and a dedicated automated test suite:
algorithms_explorer/index.html (Frontend UI & Visualizer)
algorithms_explorer/server.js (HTTP & API Backend Server)
http and fs modules with zero external dependencies. Serves static files (.html, .js, .css) and exposes the POST /api/run REST endpoint to execute algorithmic workloads and performance timings on the Node.js runtime.algorithms_explorer/algorithms.js (Algorithmic Logic & Execution Engine)
timeIt), and step-by-step state recording (Recorder) for frontend visual replay. Can execute in both Node.js and browser environments.algorithms_explorer/ds.js (Data Structures Implementations)
ArrayStack), Linear Queue with false-full behavior (ArrayLinearQueue), Circular Queue with modulo indexing (ArrayCircularQueue), Singly Linked List (SinglyLinkedList), Doubly Linked List (DoublyLinkedList), and a bracket balancing algorithm (checkBalancedBrackets).algorithms_explorer/test_algorithms.js (Automated Test Suite)
assert module to test recursive equivalence, stack overflow/underflow, linear vs circular queue full states, linked list head/tail/position insertions and deletions, and sorting algorithm correctness across randomized datasets.Navigate to the algorithms_explorer directory and start the server:
cd algorithms_explorer
node server.js
Or from the project root:
node algorithms_explorer/server.js
Open your browser and navigate to:
http://localhost:3000
To run the automated test suite and verify all algorithms and data structure operations:
node algorithms_explorer/test_algorithms.js