np-completeness

← ~/visualizations

np-completeness #

Shows polynomial-time many-one reductions (<=_p) as moving “instance packets” along arrows: NP problems reduce to SAT (Cook–Levin), SAT reduces to 3-SAT, and NP-completeness as (in NP) + (every NP problem reduces to it). Final phase illustrates the key consequence: if A <=_p B and B is in P, then A would also be in P - polynomial-time solvability propagates backward through reductions.

canvasclick to interact

⏮◀◀▶▶STEP0.25x1xZOOM

t=0s

practical uses #

technical notes #

Single 4.2s cycle with 4 stages; eased motion of a blocky “packet” represents the instance transformation. Grid-snapped coordinates create a retro block aesthetic; subtle background grid and panel text are drawn with monospace fonts; all rendering uses the Canvas 2D API with provided GREEN/GREEN_DIM constants.

← network-flowbayesian-inference →