Documentation
¶
Overview ¶
Package rb provides the implementation for a red black tree, which satisfies the ost package interfaces, as well as the order package interfaces.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Node ¶
type Node struct {
// contains filtered or unexported fields
}
Node represents a node in a red black tree.
func (*Node) Rank ¶
Rank returns the number of nodes strictly less than the value that are contained in the subtree rooted at the node.
func (*Node) Select ¶
Select returns the node with the kth smallest value in the subtree rooted at the node..
func (*Node) TreeString ¶
TreeString returns the string representation of the subtree rooted at the node.
type Tree ¶
type Tree struct {
// contains filtered or unexported fields
}
Tree implements a red-black tree data structure, and also satisfies the st.Tree interface, as well as the order.Statistic interface.
Click to show internal directories.
Click to hide internal directories.