MakarovSuites
English
EnglishDeutschРусскийУкраїнськаFrançaisEspañolItalianoPolski
Contact & licences

Math

Convex hull

Construct convex hulls with Jarvis wrapping, Graham scan and QuickHull, add points and compare orientation-test counts.

Convex hull — Actual application image
Actual application image

Try this

Click to add a point. Compare three exact orientation-based algorithms on the same seed. The animation reveals the computed boundary; the counter records orientation tests during computation.

Equations used in the module
Equations
orient(A,B,C) = (Bx−Ax)(Cy−Ay) − (By−Ay)(Cx−Ax)
Jarvis: O(nh); Graham: O(n log n)
QuickHull recursively selects the farthest exterior point
Area = ½ |Σ(xᵢyᵢ₊₁ − yᵢxᵢ₊₁)|

Related experiments

Back to catalogue
Elliptic curves — Actual application image

Math

Elliptic curves

Visualize the elliptic-curve group law with real chords and tangents, and calculate exact point sums in small prime fields.

Enigma — Actual application image

Math

Enigma

Operate a historically wired three-rotor Enigma with visible signal paths, plugboard pairs, reversible encryption and correct double stepping.

Genetic algorithm — Actual application image

Math

Genetic algorithm

Experiment with selection, crossover, mutation and elitism in a working genetic algorithm on multimodal fitness landscapes.