Liking cljdoc? Tell your friends :D

eva.v2.datastructures.bbtree.logic.v0.balance


balance-batchedclj

(balance-batched nodes)

Given a sequence of nodes who need to perform some balancing among their children, this returns a sequence of those nodes after the rebalancing has occurred. THIS FUNCTION ASSUMES A UNIFORM NODE ORDER (MIN-WIDTH).

Given a sequence of nodes who need to perform some balancing among their children,
this returns a sequence of those nodes after the rebalancing has occurred.
THIS FUNCTION ASSUMES A UNIFORM NODE ORDER (MIN-WIDTH).
sourceraw docstring

balance-batched-counterclj

source

balance-batched-histogramclj

source

balance-node-counterclj

source

balance-resolution-counterclj

source

balance-resolution-required-counterclj

source

balance-resolved-counterclj

source

balance-resolved-histogramclj

source

balance-single-seqclj

(balance-single-seq s plan)

Takes a sequence of nodes and a plan for rebalancing, returns the rebalanced sequence.

Takes a sequence of nodes and a plan for rebalancing, returns the rebalanced sequence.
sourceraw docstring

combineclj

(combine lnode rnode)

If they're leaf nodes, it just combines the children collections. If they're internal nodes, it combines the children collections, tweaks the pivot keys, and distributes the messages.

If they're leaf nodes, it just combines the children collections.
If they're internal nodes, it combines the children collections, tweaks the
pivot keys, and distributes the messages.
sourceraw docstring

neighborhoods-matchingclj

(neighborhoods-matching pred c)

Given a sequence of things, finds all 'immediate neighborhoods' centered around elements matching pred. Example: (neighborhoods-matching even? [1 2 4 5 7 9 11 12]) => ((1 2 4 5) (11 12))

Given a sequence of things, finds all 'immediate neighborhoods' centered around
elements matching pred. Example:
(neighborhoods-matching even? [1 2 4 5 7 9 11 12]) => ((1 2 4 5) (11 12))
sourceraw docstring

planclj

(plan max sizes)
source

plan-stepclj

(plan-step c [action k :as step])

Given a collection of nodes, and an action from a plan sequence, this carries out that action on the collection, returning the result.

Given a collection of nodes, and an action from a plan sequence,
this carries out that action on the collection, returning the result.
sourceraw docstring

resolve-touched-batchclj

(resolve-touched-batch unbalanced plans)

Takes an ordered collection of unbalanced sequences, and a corresponding ordered collection of plans. Returns an almost identical ordered collection of unbalanced sequences, where any node-pointers 'touched' by the plans have been resolved in one large batch.

Takes an ordered collection of unbalanced sequences, and a corresponding ordered collection
of plans. Returns an almost identical ordered collection of unbalanced sequences, where any
node-pointers 'touched' by the plans have been resolved in one large batch.
sourceraw docstring

shiftclj

(shift lnode rnode)

Moves n values (and associated messages) left or right, from lnode to rnode or rnode to lnode. Moves the minimal number possible to bring the underflowing node as close as possible to its minimum size.

Moves n values (and associated messages) left or right, from lnode to rnode
or rnode to lnode. Moves the minimal number possible to bring the underflowing
node as close as possible to its minimum size.
sourceraw docstring

shift-leftclj

(shift-left lnode rnode n)

Shifts n children from the left side of rnode to the right side of lnode.

Shifts n children from the left side of rnode to the right side of lnode.
sourceraw docstring

shift-rightclj

(shift-right lnode rnode n)

Shifts n children from the right side of lnode to the left side of rnode.

Shifts n children from the right side of lnode to the left side of rnode.
sourceraw docstring

cljdoc is a website building & hosting documentation for Clojure/Script libraries

× close