Function
Static Public Summary | ||
public |
|
|
public |
|
|
public |
bottomMostPredecessor(compare: *, node: *, key: *): * |
|
public |
* debug(skiplist: *) |
|
public |
deleteFromTopMost(node: *) |
|
public |
downMost(node: *): * |
|
public |
heads(bias: *) |
|
public |
insertFromBottomMostPredecessor(p: *, pred: *, key: *): * |
|
public |
* iter(head: *) |
|
public |
* iterDown(head: *) |
|
public |
* keys(level: *) |
|
public |
makeBottomLevel(compare: *, iterable: *): * |
|
public |
makeDeterministic(p: *, head: *): * Make a balanced Skip-list with p = 1/2. |
|
public |
makeQuasiRandom(p: *, head: *): * Make a balanced Skip-list with p = 1/2 but randomizing the choice of promoted nodes at each level. |
|
public |
|
|
public |
predecessorOnPreviousLevel(node: *): * |
|
public |
searchTopMost(compare: *, node: *, key: *): * |
Static Public
public Node(key: *, down: undefined, left: undefined, right: undefined, up: undefined) source
import Node from '@data-structure/skip-list/src/Node.js'
public SkipList(p: Number, compare: Function, head: Node) source
import SkipList from '@data-structure/skip-list/src/SkipList.js'
public bottomMostPredecessor(compare: *, node: *, key: *): * source
import bottomMostPredecessor from '@data-structure/skip-list/src/bottomMostPredecessor.js'
Params:
Name | Type | Attribute | Description |
compare | * | ||
node | * | ||
key | * |
Return:
* |
public * debug(skiplist: *) source
import debug from '@data-structure/skip-list/src/debug.js'
Params:
Name | Type | Attribute | Description |
skiplist | * |
public deleteFromTopMost(node: *) source
import deleteFromTopMost from '@data-structure/skip-list/src/deleteFromTopMost.js'
Params:
Name | Type | Attribute | Description |
node | * |
public downMost(node: *): * source
import downMost from '@data-structure/skip-list/src/downMost.js'
Params:
Name | Type | Attribute | Description |
node | * |
Return:
* |
public heads(bias: *) source
import heads from '@data-structure/skip-list/src/heads.js'
Params:
Name | Type | Attribute | Description |
bias | * |
|
public insertFromBottomMostPredecessor(p: *, pred: *, key: *): * source
import insertFromBottomMostPredecessor from '@data-structure/skip-list/src/insertFromBottomMostPredecessor.js'
Params:
Name | Type | Attribute | Description |
p | * | ||
pred | * | ||
key | * |
Return:
* |
public * iter(head: *) source
import iter from '@data-structure/skip-list/src/iter.js'
Params:
Name | Type | Attribute | Description |
head | * |
public * iterDown(head: *) source
import iterDown from '@data-structure/skip-list/src/iterDown.js'
Params:
Name | Type | Attribute | Description |
head | * |
public * keys(level: *) source
import keys from '@data-structure/skip-list/src/keys.js'
Params:
Name | Type | Attribute | Description |
level | * |
public makeBottomLevel(compare: *, iterable: *): * source
import makeBottomLevel from '@data-structure/skip-list/src/makeBottomLevel.js'
Params:
Name | Type | Attribute | Description |
compare | * | ||
iterable | * |
Return:
* |
public makeDeterministic(p: *, head: *): * source
import makeDeterministic from '@data-structure/skip-list/src/makeDeterministic.js'
Make a balanced Skip-list with p = 1/2.
Params:
Name | Type | Attribute | Description |
p | * | ||
head | * |
Return:
* |
public makeQuasiRandom(p: *, head: *): * source
import makeQuasiRandom from '@data-structure/skip-list/src/makeQuasiRandom.js'
Make a balanced Skip-list with p = 1/2 but randomizing the choice of promoted nodes at each level.
Params:
Name | Type | Attribute | Description |
p | * | ||
head | * |
Return:
* |
public node(key: *, down: undefined, left: undefined, right: undefined, up: undefined): * source
import node from '@data-structure/skip-list/src/node.js'
Return:
* |
public predecessorOnPreviousLevel(node: *): * source
import predecessorOnPreviousLevel from '@data-structure/skip-list/src/predecessorOnPreviousLevel.js'
Params:
Name | Type | Attribute | Description |
node | * |
Return:
* |
public searchTopMost(compare: *, node: *, key: *): * source
import searchTopMost from '@data-structure/skip-list/src/searchTopMost.js'
Params:
Name | Type | Attribute | Description |
compare | * | ||
node | * | ||
key | * |
Return:
* |