Class SplayTree

java.lang.Object
edu.ksu.cis.viewer.SplayTree
All Implemented Interfaces:
BSTInterface, Serializable

public final class SplayTree extends Object implements BSTInterface
An immutable splay tree that can draw itself. A splay tree is self-adjusting in the sense that the deepest node accessed on any operation is brought to the root. By using double rotations whenever possible, logarathmic amortized peformance is achieved. This implementation is top-down. As a result, if a single rotation must occur, it occurs at the lowest point in the path traversed.
Author:
Rod Howell (rhowell@ksu.edu)
See Also:
  • Constructor Details

    • SplayTree

      public SplayTree()
      Constructs an empty SplayTree.
  • Method Details