public class ISRedBlackBST extends IXXRedBlackBST
8+48*n(n为元素个数)
B=24+48*n
| 限定符和类型 | 类和说明 |
|---|---|
protected static class |
ISRedBlackBST.Node
2+25+对齐填充=32
B=48
|
root| 限定符 | 构造器和说明 |
|---|---|
protected |
ISRedBlackBST(int key,
short val) |
| 限定符和类型 | 方法和说明 |
|---|---|
void |
delete(int key) |
protected ISRedBlackBST.Node |
delete(ISRedBlackBST.Node h,
int key) |
Short |
get(int key) |
protected ISRedBlackBST.Node |
get(ISRedBlackBST.Node h,
int key) |
static ISRedBlackBST |
of(int key) |
static ISRedBlackBST |
of(int key,
short val) |
void |
put(int key,
short val) |
protected ISRedBlackBST.Node |
put(ISRedBlackBST.Node h,
int key,
short 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, sizepublic static ISRedBlackBST of(int key, short val)
public static ISRedBlackBST of(int key)
public final void put(int key,
short val)
protected final ISRedBlackBST.Node put(ISRedBlackBST.Node h, int key, short val)
public final Short get(int key)
protected final ISRedBlackBST.Node get(ISRedBlackBST.Node h, int key)
public final void delete(int key)
protected final ISRedBlackBST.Node delete(ISRedBlackBST.Node h, int key)
Copyright © 2022. All rights reserved.