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