Pseudo-Hilbert Curve

Pseudo-Hilbert Curve
Loading the math board and drawing, please wait…
2020-04-16 12:05
This example demonstrates the construction of a pseudo-Hilbert curve. The Hilbert curve is a space-filling curve with significant mathematical importance. Using the GeoGebra command Sequence, we can construct Hilbert curves of different orders. The example involves concepts such as piecewise functions, right triangles, and geometric construction. Suitable for high school mathematics education and research.

GeoGebra Commands & Parameters

  1. Sequence(A + Sum[((Max[Min[tt - ((2 * k) - 1), 1], 0] * r / 2^(k - 1)) * Rotate[v, 225° + (Sum[StartP(Mod[Div[q - 1, 4^(n - t)], 4] + 1), t, 1, k - 1] * 180°) + (((-1)^(1 + Sum[Or(Mod[Div[q - 1, 4^(n - s)], 4] + 1), s, 1, k - 1]) * (Mod[Div[q - 1, 4^(n - k)], 4] + 1 - 1)) * 90°)]), k, 1, n], q, 1, 4^(n)) → HCP
  2. Sequence(Segment[HCP(k), HCP(k + 1)], k, 1, 4^(n) - 1) → HCS

AI Drawing Prompt Reference

Draw a pseudo-Hilbert curve, a space-filling fractal. Generate a sequence of points starting from an initial point, where each subsequent point is obtained by adding a rotated vector whose direction depends on the current order and position. Connect consecutive points with straight segments to form a polyline. The curve features right-angle turns and symmetric spiral patterns, filling a square grid. Construct all vertices first, then join them in order to reveal the complete curve.
The prompt above was compiled from the original drawing commands and is for reference only.