Movatterモバイル変換


[0]ホーム

URL:


Jump to content
WikipediaThe Free Encyclopedia
Search

Dancing tree

From Wikipedia, the free encyclopedia
Tree data structure similar to B+ trees
icon
This articlerelies largely or entirely on asingle source. Relevant discussion may be found on thetalk page. Please helpimprove this article byintroducing citations to additional sources.
Find sources: "Dancing tree" – news ·newspapers ·books ·scholar ·JSTOR
(March 2021)
"Dancing trees" redirects here. For the 2009 Canadian movie, seeDancing Trees.

Incomputer science, adancing tree is atree data structure similar toB+ trees. It was invented byHans Reiser, for use by theReiser4 file system. As opposed toself-balancing binary search trees that attempt to keep their nodes balanced at all times, dancing trees only balance their nodes when flushing data to a disk (either because of memory constraints or because a transaction has completed).[1]

The idea behind this is to speed up file system operations by delaying optimization of the tree and only writing to disk when necessary, as writing to disk is thousands of times slower than writing to memory. Also, because this optimization is done less often than with other tree data structures, the optimization can be more extensive.

In some sense, this can be considered to be a self-balancing binary search tree that is optimized for storage on a slow medium, in that the on-disc form will always be balanced but will get no mid-transaction writes; doing so eases the difficulty of adding and removing nodes during a transaction. Instead, these slow rebalancing operations are performed at the same time as the much slower write to the storage medium.

However, a negative side effect of this behavior manifests in cases of unexpected shutdown, incomplete data writes, and other occurrences that may prevent the final balanced transaction from completing. In general, dancing trees pose greater difficulty than conventional trees for data recovery from incomplete transactions, though this can be addressed by more thoroughly accounting for transacted data.

References

[edit]
  1. ^Hans Reiser."Reiser4 release notes - Dancing Tree". Archived fromthe original on 2007-10-24. Retrieved2009-07-22.

External links

[edit]
Search trees
(dynamic sets,
associative arrays)
Heaps
Tries
Spatial data
partitioning trees
Other trees
Stub icon

Thiscomputer-storage-related article is astub. You can help Wikipedia byadding missing information.

Retrieved from "https://en.wikipedia.org/w/index.php?title=Dancing_tree&oldid=1320677491"
Categories:
Hidden categories:

[8]ページ先頭

©2009-2026 Movatter.jp