stm-data-collection-0.1.0.0: Collection of STM-based Data Structures

Copyright(c) Alex Semin, 2015
LicenseBSD3
Maintaineralllex.semin@gmail.com
Stabilityexperimental
Portabilityportable
Safe HaskellNone
LanguageHaskell2010

Data.STM.PriorityQueue.Internal.LLSLPQ

Description

An implementation of Class based on skip-list.

Expected time complexity of deletion is O(1), while insertion still normally has logarithmic complexity.

Default maximum height of skip-list node is 16. Use explicit constructor in case the height needs to be changed.

The skip-list's nodes are implemented via fine-grained Linked List.

Synopsis

Documentation

data LLSLPQ k v Source

Abbreviation stands for Linked List (-based) Skip-List Priority Queue

new' :: Ord k => Int -> STM (LLSLPQ k v) Source

Parameterizing constructor which determines maximum height of skip-list node.