KoneTwoThreeSearchTree

Constructors

Link copied to clipboard
constructor(priorityOrder: Order<Priority>)

Properties

Link copied to clipboard
Link copied to clipboard

Linked reified set that is a view on nodes of that search tree.

Link copied to clipboard

Reversible iterable that is a view on elements of that search tree.

Link copied to clipboard
Link copied to clipboard
open override var size: UInt

Number of elements in the collection.

Functions

Link copied to clipboard
open override fun add(element: Element, priority: Priority): LinkedSearchTreeNode<Element, Priority>

Adds the element with corresponding priority to the search tree and returns constructed node that corresponds to the element and the priority.

Link copied to clipboard
open operator fun contains(priority: Priority): Boolean

Checks if there is a node with the specified priority.

Link copied to clipboard
open override fun find(priority: Priority): LinkedSearchTreeNode<Element, Priority>?

Finds and returns a node in the search tree with equal priority. If there is no such node, returns null.

Link copied to clipboard

Finds a segment in the search tree where the priority lies. See SearchSegmentResult for description of the segment.