encyclopegia.org

Implicit k-d tree

An implicit k-d tree is a k-d tree defined implicitly above a rectilinear grid.[src] Its split planes' positions and orientations are not given explicitly but implicitly by some recursive splitting-function defined on the hyperrectangles belonging to the tree's nodes.[src] Each inner node's split plane is positioned on a grid plane of the underlying grid, partitioning the node's grid into two subgrids.[src]

An implicit k-d tree is a k-d tree defined implicitly above a rectilinear grid.[src] Its split planes' positions and orientations are not given explicitly but implicitly by some recursive splitting-function defined on the hyperrectangles belonging to the tree's nodes.[src] Each inner node's split plane is positioned on a grid plane of the underlying grid, partitioning the node's grid into two subgrids.[src] ==Nomenclature and references== The terms "min/max k-d tree" and "implicit k-d tree" are sometimes mixed up.[src] This is because the first publication using the term "implicit k-d tree" did actually use explicit min/max k-d trees but referred to them as "implicit k-d trees" to indicate that they may be used to ray trace implicitly given iso surfaces.[src] Nevertheless, this publication used also slim k-d trees which are a subset of the implicit k-d trees with the restriction that they can only be built over integer hyperrectangles with sidelengths that are powers of two.[src] In the 00s, implicit k-d trees as defined here were introduced, with applications in computer graphics.[src] As it is possible to assign attributes to implicit k-d tree nodes, one may refer to an implicit k-d tree which has min/max values assigned to its nodes as an "implicit min/max k-d tree".[src] ==Construction== Implicit k-d trees are generally not constructed explicitly.[src] When accessing a node, its split plane orientation and position are evaluated using the specific splitting-function defining the tree.[src] Different splitting-functions may result in different trees for the same underlying grid.[src] ===Splitting-functions=== Splitting-functions may be adapted to special purposes.[src] Underneath two specifications of special splitting-function classes.[src] Non-degenerated splitting-functions do not allow the creation of degenerated nodes (nodes whose corresponding integer hyperrectangle's volume is equal zero).[src] Their corresponding implicit k-d trees are full binary trees, which have for n leaf nodes n - 1 inner nodes.[src] Their corresponding implicit k-d trees are non-degenerated implicit k-d trees.[src] complete splitting-functions are non-degenerated splitting-functions whose corresponding implicit k-d tree's leaf nodes are single grid cells such that they have one inner node less than the amount of gridcells given in the grid.[src] The corresponding implicit k-d trees are complete implicit k-d trees.[src] A complete splitting function is for example the grid median splitting-function.[src] It creates fairly balanced implicit k-d trees by using k-dimensional integer hyperrectangles hyprec[2][k] belonging to each node of the implicit k-d tree.[src] The hyperrectangles define which gridcells of the rectilinear grid belong to their corresponding node.[src] If the volume of this hyperrectangle equals one, the corresponding node is a single grid cell and is therefore not further subdivided and marked as leaf node.[src] Otherwise the hyperrectangle's longest extent is chosen as orientation o.[src] The corresponding split plane p is positioned onto the grid plane that is closest to the hyperrectangle's grid median along that orientation.[src] Split plane orientation o: o = min{argmax(i = 1 ...[src] k: (hyprec[1][i] - hyprec[0][i]))} Split plane position p: p = roundDown((hyprec[0][o] + hyprec[1][o]) / 2) ===Assigning attributes to implicit k-d tree nodes=== An advantage of implicit k-d trees is that their split plane's orientations and positions need not to be stored explicitly.[src] But some applications require besides the split plane's orientations and positions further attributes at the inner tree nodes.[src] These attributes may be for example single bits or single scalar values, defining if the subgrids belonging to the nodes are of interest or not.[src] For complete implicit k-d trees it is possible to pre-allocate a correctly sized array of attributes and to assign each inner node of the tree to a unique element in that allocated array.[src] The amount of gridcells in the grid is equal the volume of the integer hyperrectangle belonging to the grid.[src] As a complete implicit k-d tree has one inner node less than grid cells, it is known in advance how many attributes need to be stored.[src] The relation "Volume of integer hyperrectangle to inner nodes" defines together with the complete splitting-function a recursive formula assigning to each split plane a unique element in the allocated array.[src] The corresponding algorithm is given in C-pseudo code underneath.[src] // Assigning attributes to inner nodes of a complete implicit k-d tree // create an integer help hyperrectangle hyprec (its volume vol(hyprec) is equal the amount of leaves) int hyprec[2][k] = { { 0, ..., 0 }, { length_1, ..., length_k } }; // allocate once the array of attributes for the entire implicit k-d tree attr *a = new attr[volume(hyprec) - 1]; attr implicitKdTreeAttributes(int hyprec[2][k], attr *a) { if (vol(hyprec) > 1) // the current node is an inner node { // evaluate the split plane's orientation o and its position p using the underlying complete split-function int o, p; completeSplittingFunction(hyprec, &o, &p); // evaluate the children's integer hyperrectangles hyprec_l and hyprec_r int hyprec_l[2][k], hyprec_r[2][k]; hyprec_l = hyprec; hyprec_l[1][o] = p; hyprec_r = hyprec; hyprec_r[0][o] = p; // evaluate the children's memory location a_l and a_r attr* a_l = a + 1; attr* a_r = a + vol(hyprec_l); // evaluate recursively the children's attributes c_l and c_r attr c_l = implicitKdTreeAttributes(hyprec_l, a_l); attr c_r = implicitKdTreeAttributes(hyprec_r, a_r); // merge the children's attributes to the current attribute c attr c = merge(c_l, c_r); // store the current attribute and return it a[0] = c; return c; } // The current node is a leaf node.[src] Return the attribute belonging to the corresponding gridcell return attribute(hyprec); } It is worth mentioning that this algorithm works for all rectilinear grids.[src] The corresponding integer hyperrectangle does not necessarily have to have sidelengths that are powers of two.[src] ==Applications== Implicit max-k-d trees are used for ray casting isosurfaces/MIP (maximum intensity projection).[src] The attribute assigned to each inner node is the maximal scalar value given in the subgrid belonging to the node.[src] Nodes are not traversed if their scalar values are smaller than the searched iso-value/current maximum intensity along the ray.[src] The low storage requirements of the implicit max kd-tree and the favorable visualization complexity of ray casting allow to ray cast (and even change the isosurface for) very large scalar fields at interactive framerates on commodity PCs.[src] Similarly an implicit min/max kd-tree may be used to efficiently evaluate queries such as terrain line of sight.[src] ==Complexity== Given an implicit k-d tree spanned over a k-dimensional grid with n gridcells.[src] Assigning attributes to the nodes of the tree takes \mathrm{O}(kn) time.[src] Storing attributes to the nodes takes \mathrm{O}(n) memory.[src] Ray casting iso-surfaces/MIP an underlying scalar field using the corresponding implicit max k-d tree takes roughly \mathrm{O}(\log(n)) time.[src] ==See also== k-d tree min/max k-d tree ==References==[src]

49 sentences · 49 cited inline · 0 references stored

References

No reference rows published for this article.

Cite this article

MLA

"Implicit k-d tree." encyclopegia.org, 2025, https://encyclopegia.org/wiki/implicit-k-d-tree. Accessed 30 November 2026.

Chicago

"Implicit k-d tree." encyclopegia.org. Accessed November 30, 2026. https://encyclopegia.org/wiki/implicit-k-d-tree.

APA

encyclopegia.org. (2025). Implicit k-d tree. Retrieved November 30, 2026, from https://encyclopegia.org/wiki/implicit-k-d-tree

Accessed November 30, 2026 · CC BY-SA 4.0 · citation page · JSON

Related articles

Ti -Tree

stub · references available

Siberian Tree Frog

stub · references available

Olive-tree Warbler

stub · references available

Tree Pipit

stub · references available

Matschie's tree-kangaroo

stub · references available

phylogenetic tree

stub · references available

Gray-bellied pencil-tailed tree-mouse

stub · references available

Pallid Atlantic Tree-rat

stub · references available
CC BY-SA 4.0 · share-alike · https://en.wikipedia.org/w/index.php?oldid=1312521817 · 0.5 · snapshot enwiki-001312521817

Cite · JSON · Search

Related services and records

Services

  • Estate — measured countries, lanes and facts
  • Intel — live corroborated events
  • Legal — statutes, cases and citations
  • Encyclopedia — articles with inline sources
  • Space — launches, satellites and orbits
  • Search — federated search and reports
  • Pass — passport account and SSO
  • Corpora — read-only corpus origins
  • e01 — self-hosted corpora and tools
  • Careers — open roles: frontier engineers and sales partners
  • Index — every corpus, paper and record
  • Estate guide — what a public data estate is
  • Founder — Lois-Kleinner Alpasan
  • Records — DOIs and external deposits
  • Documents — one-pagers, PDFs and QR codes
  • Brand kit — logos and share images
  • Papers — plain-language briefs with citations
  • Browser — search engine, PWA and bookmarklet
  • Anticloud — the operator and its projects

As seen in Business Insider · 336 outlets · evidence DOIs · plain-language papers

Text and metadata only; each target carries its own sources. Missing data is published as no-data, never estimated.