Hept Tree
This visualization demonstrates how a Gosper Map can be constructed using a hept tree, where each node has exactly 7 children, based on the base-7 representation of a random number. The tree layout maps each digit of the base-7 number to a level, with nodes colored blue (full), white (empty), or light blue (partially full) to represent the recursive subdivision of hexagonal tiles. Each level of the tree corresponds to an iteration of the Gosper Space Filling Curve, and the diagram uses D3's tree layout with SVG rendering to show how a GosperMap can be built from islands of increasing order—from single hexagons at the leaves to compositions of 7^i hexagons at higher levels. The visualization is generated with D3 v3 and CoffeeScript, displaying the random number conversion and its corresponding hept tree structure.
AI-generated descriptionThis visualization shows a hept tree that is a particular kind of tree having nodes with exactly 7 children. The hept tree is constructed starting from a random number converted to (→) base 7.
The experiment tries to explain how it is possible to create a Gosper Map, that is a particular kind of Treemap used in our Linked Data Maps approach. Each level of the tree, corresponds to an iteration of the Gosper Space Filling Curve that generates islands. Each island corresponds to a tile: at the first iteration is an hexagon, at the second one is the composition of 7 hexagons, at the thid one the composition of 49 hexagons and so on. Hence, the number hexagons composing an island at the ith iteration is equal to 7^i.
<img src="https://upload.wikimedia.org/wikipedia/commons/3/3f/Gosper_Island_0.svg" width="100"> <img src="https://upload.wikimedia.org/wikipedia/commons/9/97/Gosper_Island_1.svg" width="100"> <img src="https://upload.wikimedia.org/wikipedia/commons/c/c5/Gosper_Island_2.svg" width="100"> <img src="https://upload.wikimedia.org/wikipedia/commons/9/98/Gosper_Island_3.svg" width="100">In the diagram, each iteration is reported directly above its corresponding level in the tree. The first iteration is the rightmost corresponding to the leaves of the hept tree.
So, this diagram allows to understand how a GosperMap composed by N hexagons can be constructed in term of islands/tiles. For instance, a GosperMap:
- where N = 6 (base10) → 6 (base7), will have 6 tile of order zero;
- where N = 13 (base10) → 16 (base7), will have 1 tile of order one (= 7 tiles of order zero) and 6 tile of order zero;
- where N = 58 (base10) → 112 (base7), will have 1 tile of order two (= 49 tiles of order zero), one tile of order 1 (= 7 tiles of order zero) and 2 tile of order zero.
Blue, white and lightblue hexagons respectevely represent a full, empty and partially full island.
forked from <a href='http://bl.ocks.org/fabiovalse/'>fabiovalse</a>'s block: <a href='http://bl.ocks.org/fabiovalse/06865431390fa7bb1fcb'>Hept Tree</a>
forked from <a href='http://bl.ocks.org/anonymous/'>anonymous</a>'s block: <a href='http://bl.ocks.org/anonymous/68b9693ee4c3e9a0fd5173bfad14e21b'>Hept Tree</a>
forked from <a href='http://bl.ocks.org/anonymous/'>anonymous</a>'s block: <a href='http://bl.ocks.org/anonymous/90e52d2320044c67b9b1fab4458c557e'>Hept Tree</a>
forked from <a href='http://bl.ocks.org/anonymous/'>anonymous</a>'s block: <a href='http://bl.ocks.org/anonymous/044dd2d5775d12d171f1aa5cf8c84032'>Hept Tree</a>