For Educators · Convex Hull
Convex Hull for a regex matcher
Built for educators teaching it to a class. Drop a live demo into a lecture or assign it as a shareable link — no lab installs. Simulate a regex matcher live below — adjust the inputs and watch it respond, right in your browser.
Convex HullLive
Andrew's monotone chain
Controls
Presets
The convex hull is the smallest convex polygon containing every point — the shape a rubber band snaps to. Drag any point on the canvas to reshape the set and watch the hull recompute live. Computed here with Andrew's monotone-chain algorithm in O(n log n).
Data Inspector
Points30
Hull vertices0
ComplexityO(n log n)
Governing equation
Reading this result: Add points and a boundary polygon appears — the hull is the smallest convex shape wrapping them all.
Runs locally in your browser — free forever. Scale to the cloud when reality gets heavy.
Also for:StudentsResearchersEngineersHobbyists & MakersK-12 StudentsFirst RespondersGeneral version →
More with Convex Hull
Frequently asked questions
- Is this good for educators?
- Yes — this version of "Convex Hull for a regex matcher" is framed for educators teaching it to a class. Drop a live demo into a lecture or assign it as a shareable link — no lab installs.
- Do I need to install anything?
- No. It runs in any modern browser, free, with no account required.