Category:Binary Search Tree: Difference between revisions
Jump to navigation
Jump to search
(Created page with "== General Information == '''Abstract Data Structure:''' Sorted Sequence '''Implementation Invariant:''' # There is a tree item type with three components: ## Key is of...") |
No edit summary |
||
Line 1: | Line 1: | ||
== General Information == | == General Information == | ||
===Abstract Data Structure:=== | |||
[[Sorted Sequence]] | |||
===Implementation Invariant:=== | |||
# There is a tree item type with three components: | # There is a tree item type with three components: | ||
## | ## '''''key''''' is of generic type <math>\kappa</math> | ||
## left and right of type "pointer to tree item of type | ## '''''left''''' and '''''right''''' of type "pointer to tree item of type <math>\kappa</math>" | ||
# An object of the binary search tree type contains a pointer root of type "pointer to tree item of type | # An object of the binary search tree type contains a pointer '''''root''''' of type "pointer to tree item of type <math>\kappa</math>" | ||
# The pointer root points to a well-formed binary search tree. In accordance with the definition of [[directed trees]], "well-formed" means that, for any node, there is exactly one [[path]] from the root to that node. | # The pointer '''''root''''' points to a well-formed binary search tree. In accordance with the definition of [[directed trees]], "well-formed" means that, for any node, there is exactly one [[path]] from the root to that node. |
Revision as of 22:33, 19 September 2014
General Information
Abstract Data Structure:
Implementation Invariant:
- There is a tree item type with three components:
- key is of generic type [math]\displaystyle{ \kappa }[/math]
- left and right of type "pointer to tree item of type [math]\displaystyle{ \kappa }[/math]"
- An object of the binary search tree type contains a pointer root of type "pointer to tree item of type [math]\displaystyle{ \kappa }[/math]"
- The pointer root points to a well-formed binary search tree. In accordance with the definition of directed trees, "well-formed" means that, for any node, there is exactly one path from the root to that node.
Pages in category "Binary Search Tree"
The following 8 pages are in this category, out of 8 total.