ArticleslgStudy

computer science

Fieldtree

Fieldtree is a computer science topic covered in the lgStudy science library. This page brings together a partial reference excerpt, illustrations, worked examples, real-world applications and a short study plan, so you can understand Fieldtree rather than just read about it. In short: In computer science, a fieldtree is a hierarchical data structure that is used to index geometric objects. It groups these objects into rectangular regions called "fields", where the fields at a given level are regularly-spaced, have the same size, and may overlap.

Fieldtree — main illustration
Fieldtree — illustration

Key takeaways

  • Fieldtree belongs to computer science; place it in that map before memorising details.
  • Learn the definition first, then one example that makes the definition concrete.
  • Connect Fieldtree to a quantity you can measure, compute or draw — that is where exam questions come from.
  • Reproduce the core statement of Fieldtree from memory before moving on to harder problems.

Reference excerpt

In computer science, a fieldtree is a hierarchical data structure that is used to index geometric objects. It groups these objects into rectangular regions called "fields", where the fields at a given level are regularly-spaced, have the same size, and may overlap. Contrary to its name, a fieldtree is not strictly speaking a tree, rather its fields form a directed acyclic graph. While PR quadtrees and PR octrees are technically fieldtrees, the term usually refers to either partition or cover fieldtrees. A partition fieldtree is a fieldtree where the fields at each level are offset from the fields at the previous level and they do not overlap. On the other hand, a cover fieldtree (better known as a loose quadtree or a loose octree) is a fieldtree where the fields at each level are aligned with the fields at the previous level but they do overlap. Fieldtrees were originally designed for use in spatial databases, but they also have applications in multikey database indexes, video games, the Internet of Things and simulations.

History Quadtrees have been used as database indexes since the 1970s. A disadvantage of quadtrees, called "stickiness", is that when a small object lies across the line between two regions it must be stored at a higher level in order to fit entirely within a single region. This results in small objects being stored at unnecessarily high levels and it reduces the effectiveness of the partitioning. Early attempts to solve this involved storing the sticky objects in both regions, either by duplicating them (which increases the amount of space required) or by using pointers (which requires extra disk accesses). In 1983, Andrew U. Frank published a thesis describing "the field tree" as a data structure for use in geographic information systems. It solved the stickiness problem by allowing adjacent regions to overlap. In 1990, Frank refined the fieldtree concept by describing both partition and cover fieldtrees. In the late 1990s, Thatcher Ulrich independently reinvented cover fieldtrees (which he calls "loose octrees") for use in video games. Ulrich noted that, as well as being effective at avoiding stickiness, they were more performant than octrees for handling moving objects.

Description A fieldtree has multiple "levels", and each level has several regularly-spaced square "fields" (a.k.a. regions). Within each level there are no gaps between the fields (though they may overlap). The levels are usually listed in order of decreasing field size, with the largest fields at the top level and the smallest fields at the bottom level. Each object (e.g. point, line, polygon) is associated with exactly one of the fields that completely contain it. Smaller objects are placed in smaller fields. Fieldtrees are similar to quadtrees in that they start by assigning all objects to a single field. Then, when a field reaches its capacity, it is split into four smaller fields. These smaller fields form part of the next level of the data structure. This splitting process repeats until either all fields are below capacity or the fieldtree has reached a predefined maximum number of levels. The main difference between fieldtrees and quadtrees is how the fields at each level are arranged. Depending on the type of fieldtree, the fields in each level may overlap or they may be offset from the fields in the previous level. In either case, a field in one level may intersect multiple fields in the levels below and above it. One way of thinking about a fieldtree is as a directed acyclic graph, where each edge connects a field in one level (the "parent") with a field that intersects it in the next level (the "child"). This graph does not have any cycles because the edges always point from fields in higher levels to fields in lower levels. Contrary to what the name "fieldtree" might suggest, the data structure is not a true tree because a field may have multiple parents and multiple children. However, it is useful to systematically select a subset of the edges to form a tree (that is, to select a spanning tree) to allow for various optimizations.

Partition fieldtree

A partition fieldtree is a type of fieldtree where each layer is slightly offset from the last, so that every corner of a field in one level lines up with the center of a field in the next level. This requires a shift in both the x and y directions of half of the smaller field's width, relative to where the fields would be in a quadtree. The fields in each level do not overlap. This small shift ensures that an object never needs to be stored more than two levels up from the smallest level that could contain it, improving the efficiency of operations on the fieldtree. A partition fieldtree is so called because, unlike a cover fieldtree, the fields at each level partition the space without overlapping.

Cover fieldtree

A cover fieldtree (also known as a loose quadtree or loose octree) is a type of fieldtree where the fields in each level are expanded so that they overlap. The centers of the fields remain in the same place as they would be in a quadtree. The amount that the fields overlap is described by the expansion factor p, which must be a positive real number. The width of each field can be found using (1 + p) × dc (where dc is the distance between the centers of adjacent fields). A typical value for p is 1, which results in the fields being twice as wide as they would be in a quadtree. The overlap between adjacent fields ensures that any object of width p × dc can be stored in a given level. In the case of p = 1, an object never needs to be stored more than one level up from the smallest level that could contain it, improving the efficiency of operations on the fieldtree. A cover fieldtree is so called because the fields at each level cover the space but, unlike with a partition fieldtree, there is some overlap (meaning that it cannot be considered a partition).

Importance attribute Each object in a field tree may have an "importance" attribute attached to it that indicates the lowest level where the object may be stored. This allows insertion and querying to be optimized by not checking levels that are too low for that object if the object's importance is known.

See also Field (computer science) Tree (abstract data type)

Notes

References

Illustrations

Fieldtree: Diagram of a cover fieldtree, showing a worst-case object placement
Diagram of a cover fieldtree, showing a worst-case object placement

Worked examples

Example 1 — a first encounter with Fieldtree

Start with the simplest possible case. Write down what Fieldtree claims or describes in one sentence, then invent the smallest concrete situation in which that sentence is true. In computer science, the smallest case is usually a single object, a single equation or a single measurement. Check that every symbol or term in your sentence has a meaning in that case.

Example 2 — changing one variable

Take the situation from Example 1 and change exactly one quantity: double it, halve it, or set it to zero. Predict what should happen to Fieldtree before you calculate. Comparing your prediction with the result is the fastest way to find out whether you understand the idea or only the words.

Example 3 — an exam-style question

Typical questions about Fieldtree ask you to (a) state it precisely, (b) apply it to given data, and (c) explain a limitation. Practise writing all three answers in under five minutes; the third part is what separates a full-mark answer from an average one.

Applications of Fieldtree

In research
Fieldtree appears in computer science research whenever the underlying quantities have to be modelled precisely. Papers usually cite it as a starting assumption and then explore where it breaks down.
In technology and industry
Engineering practice reuses Fieldtree in design rules, simulations and safety margins. Knowing the idea lets you read a specification sheet and understand why the numbers look the way they do.
In the classroom
Fieldtree is common in secondary-school and first-year university syllabi. It links to neighbouring topics Database index techniques, Geometric data structures, Trees (data structures), so understanding it makes those chapters shorter.
In everyday life
Look for Fieldtree outside the textbook — in sport, cooking, traffic, electronics or the sky above you. An example you found yourself is remembered far longer than one you were given.
Ask Teacher Smith questions about this articleOpens your AI tutor with a question about “Fieldtree” →

How to study Fieldtree in 20 minutes

  1. Read the reference excerpt below once, without taking notes.
  2. Close the page and write down what Fieldtree means in your own words.
  3. Compare your version with the excerpt and mark what you missed.
  4. Work through the three examples above with pen and paper.
  5. Explain Fieldtree out loud to somebody else — or to Teacher Smith in the lgStudy chat.

Frequently asked questions

What is Fieldtree in simple terms?

In computer science, a fieldtree is a hierarchical data structure that is used to index geometric objects. It groups these objects into rectangular regions called "fields", where the fields at a given level are regularly-spaced, have the same size, and may overlap.

Why does Fieldtree matter?

Because it connects several computer science ideas at once: it gives you a definition you can apply, a quantity you can calculate, and a way to check whether a result is plausible.

How should I study Fieldtree?

Read the excerpt, restate it from memory, then work through the examples and applications listed on this page. The five-step study plan above takes about twenty minutes.

What does this page cover?

It gives you a compact reference excerpt plus original lgStudy explanations, examples, applications and study material on Fieldtree.

Tags

  • Database index techniques
  • Geometric data structures
  • Trees (data structures)

Keep exploring