public class ILRedBlackBST<V> extends IXXRedBlackBST
8+[49+V(类型字节)+对齐填充]*n(n为元素个数)
B=24+48*n+(1+V+对齐填充)*n
| 限定符和类型 | 类和说明 |
|---|---|
protected static class |
ILRedBlackBST.Node<V>
8+V(类型字节)+25+对齐填充
B=49+V(类型字节)+对齐填充
|
root| 限定符 | 构造器和说明 |
|---|---|
protected |
ILRedBlackBST(int key,
V val) |
| 限定符和类型 | 方法和说明 |
|---|---|
protected ILRedBlackBST.Node<V> |
delete(ILRedBlackBST.Node<V> h,
int key) |
void |
delete(int key) |
protected ILRedBlackBST.Node<V> |
get(ILRedBlackBST.Node<V> h,
int key) |
V |
get(int key) |
static <V> ILRedBlackBST<V> |
of(int key) |
static <V> ILRedBlackBST<V> |
of(int key,
V val) |
protected ILRedBlackBST.Node<V> |
put(ILRedBlackBST.Node<V> h,
int key,
V val) |
void |
put(int key,
V val) |
ceil, ceil, floor, floor, key, keys, keys, keys, keys, keysGe, keysGe, keysLe, keysLe, size, size, sizeGe, sizeGe, sizeLe, sizeLebalance, deleteMax, deleteMax, deleteMin, deleteMin, depth, depth, flipColors, isEmpty, isLeaf, isRed, max, max, min, min, moveRedLeft, moveRedRight, root, rotateLeft, rotateRight, select, select, size, sizeprotected ILRedBlackBST(int key,
V val)
public static <V> ILRedBlackBST<V> of(int key, V val)
public static <V> ILRedBlackBST<V> of(int key)
public final void put(int key,
V val)
protected final ILRedBlackBST.Node<V> put(ILRedBlackBST.Node<V> h, int key, V val)
public final V get(int key)
protected final ILRedBlackBST.Node<V> get(ILRedBlackBST.Node<V> h, int key)
public final void delete(int key)
protected final ILRedBlackBST.Node<V> delete(ILRedBlackBST.Node<V> h, int key)
Copyright © 2022. All rights reserved.