public class STrieST extends TrieST
8+24+2*r(r为chars数组长度)=chars 8+(48+8*r)*n(n为元素个数)+8*r*n*w(w为键的平均长度)
B=8+48*(n+1)+8*r*n*(w+1)+(2*r+对齐填充)
| 限定符和类型 | 类和说明 |
|---|---|
protected static class |
STrieST.Node
2+25+8*r(r为数组长度)+对齐填充=32+8*r
B=48+8*r
|
| 限定符 | 构造器和说明 |
|---|---|
protected |
STrieST(char[] chars) |
| 限定符和类型 | 方法和说明 |
|---|---|
Short |
get(char[] a) |
protected Iterable<Short> |
get(STrieST.Node x) |
Iterable<Short> |
getAll() |
Iterable<Short> |
getByPrefix(char[] prefix) |
Iterable<char[]> |
getChars(Predicate<Short> predicate,
int limit) |
static STrieST |
of(char[] chars) |
void |
put(char[] a,
short val) |
public static STrieST of(char[] chars)
public final void put(char[] a,
short val)
public final Short get(char[] a)
protected final Iterable<Short> get(STrieST.Node x)
Copyright © 2022. All rights reserved.