Back to Projects
ActiveLLM Project

Big-O Visualizer

Plot and evaluate algorithmic growth curves dynamically. Toggle curves and slide input size N to compare operations steps.

Target Learning Outcome

Evaluate asymptotic boundaries, complexity comparisons, and scaling limits for different algorithms.

Active Lab TerminalRUNNING LIVE
O(100)O(50)01N = 50100
Input Size (N)N = 10
Toggle Complexity Curves
Operation steps for N = 10
O(1)1 ops
O(log n)3.3 ops
O(n)10 ops
O(n log n)33.2 ops
O(n²)100 ops
01. Problem it solves

Theoretical Complexity Confusion

Asymptotic complexity is typically taught via pure formulas without physical/visual references. This creates confusion around why certain algorithms (like $O(N \log N)$ sorting) are significantly better than $O(N^2)$ loops at scale, or how fast $O(2^N)$ algorithms run out of CPU execution steps.

This visualizer makes algorithmic scaling limits visible, displaying exact operation steps relative to input size sliders.

02. Concept it teaches

Asymptotic Math Scaling

This interactive tool clarifies the scaling profiles of different complexities:

  • Big-O, Big-Theta, and Big-Omega notation scales
  • Comparison of constant O(1) vs. quadratic O(n^2)
  • Growth limits under varying input size N
  • Time-space execution bottlenecks
  • Asymptotic analysis boundaries
03. What I built

Asymptotic Plotter Workspace

A dynamic visualizer featuring:

  • Interactive SVG graph plotter plotting curves dynamically.
  • Input size N slider (1 to 100) highlighting relative operation steps.
  • Curves toggle matrix to isolate and compare specific complexity scales.
  • Comparative statistics panel showing exact operations counts.
  • Responsive, high-contrast visual glassmorphic layout.
04. Architecture

Asymptotic Data Flow

Input size N slider
SVG Plot coordinate mapper
Operations counts table
05. Tech Stack

Built With

TypeScriptReact 19Tailwind CSSCanvas APIGitHub
06 & 07. Links

Source & Deploy

GitHub Repository:big-o-benchmarker
Live Lab Endpoint:/labs/big-o-visualizer
08. Interview Explanation

Defending the Design

Interview Defense Strategy

I built the Big-O Visualizer to bridge the gap between abstract mathematical complexities and concrete operations steps. By letting users adjust N and instantly see the intersection points of curves, they can understand why logarithmic and linearithmic algorithms scale gracefully while quadratic and exponential operations quickly collapse under large datasets.
09. Future Improvements

Roadmap Extensions

  • Integrate space complexity curve comparisons.
  • Add custom code upload to automatically estimate Big-O.
  • Include real-time execution CPU benchmarker triggers.