Directories | Web | Images | Groups | News | Shopping | Local

Enter your search keyword(s):

 



(formerly Encyclopedic directory)
Trees
Home / Top / Home / Gardens / Plants / Trees See also:
Related articles

Edit | Discuss Article

B-tree

B-trees are tree data structures that are most commonly found in databases and filesystem implementations. B-trees keep data sorted and allow amortized logarithmic time insertions and deletions. Conceptually speaking B-trees grow from the bottom up as elements are inserted, whereas most binary trees generally grow down.

The idea behind B-trees is that inner nodes can have a variable number of child nodes within some pre-defined range. This causes B-trees to not need re-balancing frequently, unlike AVL trees. The lower and upper bounds on the number of child nodes are fixed for a particular implementation. For example, in a 2-3 B-tree (often simply 2-3 tree), each internal node may have only 2 or 3 child nodes. A node is considered to be in an illegal state if it has an invalid number of child nodes.

The "B" stands for "balanced" because all the leaf nodes appear at the same level in the tree.

See also AVL tree, binary tree, binary space partitioning, red-black tree, skip list.

Table of contents
1 Inner node structures
2 Steps for deletion
3 Steps for insertion
4 Searching
5 Notes
6 References
7 External links

Inner node structures

Generally speaking, the "separation values" can simply be the values of the tree.

Each inner node has separation values which divide its sub-trees. For example, if an inner node has three child nodes (or sub-trees) then it must have two separation values a1 and a2. All values less than a1 will be in the leftmost sub-tree, values between a1 and a2 will be in the middle sub-tree, and values greater than a2 will be in the rightmost sub-tree.

Steps for deletion

  1. If after removing the desired node, no inner node is in an illegal state then the process is finished.
  2. If some inner node is in an illegal state then there are two possible cases:
    1. Its sibling node (a child of the same parent node) can transfer one of its child nodes to the current node and return it to a legal state. If so, after updating the separation values in the parent and the two siblings the operation ends.
    2. Its sibling does not have an extra child because it is on the lower bound too. In that case both these nodes are merged into a single node and the action is transferred to the parent node, since it has had a child node removed.

The process continues until the parent node remains in a legal state or until the root node is reached.

Steps for insertion

  1. If after inserting the node into the appropriate position, no inner node is in an illegal state then the process is finished.
  2. If some node has more than the maximum amount of child nodes then it is split into two nodes, each with the minimum amount of child nodes. This process continues action recursively in the parent node.

The action stops when either the node is in a legal state or the root is split into two nodes and a new root is inserted.

Searching

Searching is performed very similar to a binary tree search, simply by following the separation values until the value is found or the end of the tree is reached.

Notes

Suppose L is the least number of children a node is allowed to have, while U is the most number. Then each node will always have between L and U children, inclusively, with one exception: the root node may have anywhere from 2 to U children inclusively, or in other words, it is exempt from the lower bound restriction, instead having a lower bound of its own (2). This allows the tree to hold small numbers of elements. The root having one child makes no sense, since the subtree attached to that child could simply be attached to the root. Giving the root no children is also unnecessary, since a tree with no elements is typically represented as having no root node.

Robert Tarjan proved that the amortized number of splits/merges is 2.

References

Original papers:
  • Rudolf Bayer, Binary B-Trees for Virtual Memory, ACM-SIGFIDET Workshop 1971, San Diego, California, Session 5B, p. 219-235.
  • Rudolf Bayer and McCreight, E. M Organization and Maintenance of Large Ordered Indexes. Acta Informatica 1, 173-189, 1972.
Summary:
  • Donald E. Knuth, "The Art of Computer Programming", second edition, volume 3, section 6.2.4, 1997.

External links


Source | Copyright
Webmasters: Add your website here:

Readers: Edit | Discuss Listings

National Arborist Association Home Page
The trade association of commercial tree care businesses.
http://www.natlarb.com/

The WVU Tree Bark Home Page
Designed to provide a place to learn about the anatomy and physiology of tree bark, fungal canker diseases that affect tree bark, the wound responses of injured tree bark, and the role of wound responses in the resistance of living tree bark to wound pathogens.
http://www.caf.wvu.edu/bark/

Shigo on Trees
From the trees systems) within the forest. To trees (systems) within the city.
http://www.chesco.com/~treeman/SHIGO/

English Oak Trees
Natural history of English Oaks (Quercus robur), their life, conservation and woodland restoration. How to obtain acorns from old oak trees by mail order.
http://www.oldknobbley.com

Staking and Guying Trees
Contains information and diagrams.
http://www.ag.ohio-state.edu/~ohioline/hyg-fact/1000/1141.html

Deciduous Trees and Shrubs With All-Season Interest
Contains information and pictures.
http://www.ag.ohio-state.edu/~ohioline/hyg-fact/1000/1143.html

Better Homes and Gardens: Tree Pictures
A collection of American tree pictures.
http://www.bhg.com/home/Tree-Pictures.html

American Conifer Society
Features information on trees capable of being used in public areas, home landscapes, and special collections.
http://www.conifersociety.org/

The Trees of Reed College
Offers photographs and descriptions for a variety of trees that can be found on the campus of Reed College in Portland, Oregon. Visitors can identify trees by location or find the location of examples of a certain kind of tree.
http://web.reed.edu/trees/

American Forests' Treestories On Public Tv: Every Tree Has A Story!
Treestories Series On Public Television Travels The Country Looking For Historic, Unique, Memorable, Fantastic And Downright Weird Trees!
http://www.treestories.org/

Acer palmatum - Japanese Maple
Gives cultivars, growing tips, physical characteristics, and growth rate information.
http://www.msue.msu.edu/msue/imp/modop/00000018.html

Trees of the Pacific Northwest
An identification guide to conifers of the Pacific Northwest provided by Oregon State University.
http://oregonstate.edu/trees/

TreeLink
Resource for urban and community forestry: planting and caring for trees in cities and towns. Includes links list, research, news, forums, and educational materials.
http://www.treelink.org/

Magnolia Society
A worldwide organization of gardeners, nurserymen and other people who are devoted to the appreciation and study of magnolias.
http://www.magnoliasociety.org/

University of Alabama in Huntsville Grounds Management Page
A resource for Southern gardeners who need information on trees that grow well in their area.
http://www.uah.edu/admin/Fac/grounds/

The World of Trees
An educational site for young people.
http://www.domtar.com/tree/

Southern African Trees
A listing of southern african trees with photos, providing general and cultivation information, concentrating on plants suitable as bonsai, potplants or with edible fruit.
http://www.africantrees.com/

Landscape Care Calendar
Monthly guide to tree and shrub care and tips from SavATree.
http://www.savatree.com/timelytips.htm

State and Provincial Trees
A list of official state and provincial trees of all 50 U.S. states and 13 Canadian provinces and territories including both common and scientific names and images of official flags.
http://www.state-tree.com

Tree Planting
Learn how to properly plant a tree to ensure its survival. Selecting the right tree and site, digging the right hole and ensuring good growing conditions are essential for a healthy start.
http://www.tree-planting.com

Arnold Arboretum
The Arnold Arboretum is a research and educational institution. It manages a collection of hardy trees, shrubs, and vines located in Boston, Massachusetts and associated herbarium and library collections.
http://arboretum.harvard.edu/

How to Grow and Maintain Birch Trees
Learn how to care for a birch tree, including selecting the correct site and type of birch, watering, fertilizing, mulching, and monitoring for problems.
http://www.birch-tree.com

Chicago Urban Tree Care
Chicago Department of Environment's informational site for urban dwellers to properly care for trees.
http://www.cityofchicago.org/Environment/CityTrees/

Palm Tree Care
Information for homeowners about how to care for a palm tree including planting, fertilizing, and dealing with insects and diseases.
http://www.palm-tree.net

Winter - How to Prepare your Tree
Tips on how to ensure trees and shrubs survive winter. How to prevent cold stress, winter drought, rodent damage and frost damage.
http://www.winter-tree-care.com/

All About Trees - American Forests
Describes how and where to plant a tree in a landscape.
http://www.americanforests.org/

Windmill Outback Nursery Eucalyptus & Australia Plants
A mail order nursery specializing in Eucalyptus and native plants of Australia for American gardeners.
http://www.australiaplants.com/

Collier Arbor Care
Tree, shrub and turf information, IPM practices, insect and disease articles, tree care information, annual garden calendar.
http://www.collierarbor.com/

Central Texas Tree Care
Features information on tree care and contact information.
http://www.centraltexastreecare.com/index.html

Florida Chapter of the International Society of Arboriculture
Serving Florida's professional certified arborists and tree care consumers, with a certified arborist directory, consumer information about tree care, and information for anyone involved in caring for Florida's urban and community forests.
http://www.floridaisa.org

How to Plant Trees
Gives information on where to use trees and how to plant them correctly.
http://backyardgardener.com/tree/index.html

Ice Damage On Trees
Heavy accumulations of snow and ice can cause major structural damage to trees and shrubs. The damaged limbs should be properly removed. The following links will provide a guide for homeowners seeking to repair damaged plant material.U.of Illinois
http://www.urbanext.uiuc.edu/icedamage/

TreeHelp.com
Source of information regarding tree and shrub care including how-to articles, species profiles, insect and disease information and other features.
http://www.treehelp.com/

The Hardiest Palms
Dedicated to growing hardy palms.
http://www.hardiestpalms.com

Oak Wilt Treatment and Prevention
Specializing in the analysis, prevention and treatment of oak wilt using Alamo fungicide and root trenching. Offers free consultation, cedar clearing, dead tree removal, and replanting services.
http://www.stopoakwilt.com/

CSFS Montrose District - Urban forests
Community forests and urban tree care for western Colorado.
http://lamar.colostate.edu/~montrose/cf.htm



Help build the largest human-edited directory on the web.
 Submit a Site - Open Directory Project (modified) - Become an Editor

Modified contents copyright 2008. All rights reserved.