DSA Master Workbench - CodexSec Labs

CodexSec DSA Master Workbench

The Unified Computer Science Data Structures & Algorithms Laboratory

Active Integrated Laboratory: Binary Heap (HeapLab)

Binary Heap

Priority Queue

Max & Min heap complete binary trees with dual-representation array buffer, ShiftUp/Down mechanics, and Floyd's O(N) build.

Insert O(log N)Extract O(log N)Floyd O(N)

BST & AVL Tree

Self-Balancing

Binary Search Trees and AVL self-balancing trees with automated single (LL, RR) and double (LR, RL) rotations and live balance factor analysis.

Search O(log N)Insert O(log N)In-Order Sorted

Linked Lists

Singly & Doubly

Dynamic pointer chains in heap memory. Visualizes head/tail insertions, node deletions, search traversals, and in-place pointer reversal.

Insert Head O(1)Delete Tail O(N)/O(1)Reversal O(N)

Stack & Queue

LIFO / FIFO

Vertical LIFO cylinder and horizontal FIFO conveyor buffer with push, pop, enqueue, dequeue, peek, and overflow/underflow invariants.

Push/Pop O(1)Enqueue/Dequeue O(1)Peek O(1)

Sorting Lab

Algorithms

Real-time vertical bar chart visualizer for Bubble, Selection, Insertion, Merge, and Quick Sort with color-coded comparison and swap counters.

Quick O(N log N)Merge O(N log N)In-Place

Hash Table

Key-Value

Inspect hash function bucket mapping, collision resolution via Separate Chaining (linked buckets) vs Open Addressing (Linear Probing).

Lookup O(1)Insert O(1)Load Factor α

Graph Traversals

BFS & DFS

Breadth-First Search (queue-based level traversal) and Depth-First Search (stack/recursion branch traversal) on 2D network topologies.

Time O(V + E)Space O(V)Shortest Path (BFS)

Shortest Path

Dijkstra & Bellman

Dijkstra's greedy shortest path with min-priority queue edge relaxation and Bellman-Ford negative edge handling.

Dijkstra O(E log V)Distance MatrixRelaxation

Trie (Prefix Tree)

String Tree

Character-branching tree for dictionary words, prefix matching, and real-time autocompletion suggestions in O(L) time.

Search O(L)Insert O(L)Autocomplete

Disjoint Set (DSU)

Union-Find

Union-Find forest with path compression and rank optimization. Demonstrates near O(1) amortized inverse Ackermann α(N) operations.

α(N) ∼ O(1)Path CompressionCycle Detection

Minimum Spanning Tree

Kruskal & Prim

Greedy edge selection with Kruskal's algorithm, sorting weights, and using DSU cycle rejection to connect V nodes with V-1 minimal edges.

Kruskal O(E log E)V-1 EdgesGreedy Choice

Arrays & Matrices

Contiguous

1D linear arrays, 2D row/column-major matrices, dynamic growth, insertion/deletion shifting, and O(log N) binary search visualization.

Access O(1)Binary Search O(log N)Insert/Delete O(N)

Red-Black Tree

Balanced BST

Strict 5-rule self-balancing BST with automatic node recoloring, uncle-checking invariants, and single/double rotations.

Search O(log N)Insert O(log N)Black Height

Segment Tree & BIT

Range Queries

Divide-and-conquer range queries (Sum, Min, Max), leaf-to-root updates, and binary indexed tree (Fenwick lowbit) manipulations.

Range Query O(log N)Point Update O(log N)Build O(N)

Computer Science Algorithmic Complexity Matrix

Data Structure / Algorithm Access Search Insertion Deletion Space Complexity
Array (Linear)O(1)O(N)O(N)O(N)O(N)
Singly Linked ListO(N)O(N)O(1) HeadO(1) Head / O(N) TailO(N)
Doubly Linked ListO(N)O(N)O(1) Head/TailO(1) Head/TailO(N)
Stack (LIFO)O(N)O(N)O(1) PushO(1) PopO(N)
Queue (FIFO)O(N)O(N)O(1) EnqueueO(1) DequeueO(N)
Hash Table-O(1) avg / O(N)O(1) avg / O(N)O(1) avg / O(N)O(N)
Binary Search Tree (BST)O(log N)O(log N) / O(N)O(log N) / O(N)O(log N) / O(N)O(N)
AVL Tree (Balanced)O(log N)O(log N)O(log N)O(log N)O(N)
Binary Heap (Min/Max)O(1) PeekO(N)O(log N)O(log N) ExtractO(N)
Trie (Prefix Tree)O(L)O(L)O(L)O(L)O(N · L)
Disjoint Set (DSU)-α(N) Findα(N) Union-O(N)
Quick Sort / Merge SortSorting: O(N log N) average case executionO(log N) / O(N)
Dijkstra Shortest PathSingle-source shortest path: O(E log V)O(V)