What is a four -member tree?
Quad Tree, sometimes Quadtree, Q-Tree or QT, is the date of computer science that refers to the data organization method in four quadrants. Databases sometimes use Quad Trees to store and find their records. This type of organizational structure works particularly well to find a specific bit or pixel in a two -dimensional image.
Quad tree somewhat monitors the structure of the tree data commonly used in computer science. The normal tree data structure looks like a tree upside down, where one or more children's nodes have a parent node at the top of the tree. Each other node on the tree has one parental node and can have any number of children nodes, including zero. To illustrate most of the structures of four trees, you will see a knot that hangs four nodes for children, while lines connecting a superior knot with children's knots. Illustration can continue, with four other children's nodes hanging from each of the original four children of nodes. Whenever the region reaches its maximum capacity for storing data, it is divided into fourquadrants. Surgers and quadrants are usually squares, although there may also be rectangles or other shapes.
Quad Tree is a good data structure for organizing pixels in the photo and for organizing computer graphics. The image can be divided into quadrants and each quadrant can be divided into four more. This can be repeated again and again until you reach the level of individual pixels. However, if the quadrant contains pixels that have the same color, there is no reason to further divide the quadrant.
Although the data stored in the structure of four trees may require a lot of storage space compared to other data organization organization for computer graphics has the structure of four trees several advantages. First, you can delete the entire photo or graphics in one step by cleaning the root node, which will also clean all its nodes for children. Secondly, you can quickly reduce the resolution on the photo by just erase the final levelTyan nodes. This will reduce the amount of storage space that requires. Finally, finding a specific area of photo to handle image manipulation is easier with the structure of four trees.
Quad trees are also used in several other situations, including spatial indexing. Although four -dimensional images are limited to two -dimensional images, representing a three -dimensional image, they can monitor a similar structure called Octree, which is the division of the cube into eight children.