MCPrioQ: A lock-free algorithm for online sparse markov-chains

04/28/2023
by   Jesper Derehag, et al.
0

In high performance systems it is sometimes hard to build very large graphs that are efficient both with respect to memory and compute. This paper proposes a data structure called Markov-chain-priority-queue (MCPrioQ), which is a lock-free sparse markov-chain that enables online and continuous learning with time-complexity of O(1) for updates and O(CDF^-1(t)) inference. MCPrioQ is especially suitable for recommender-systems for lookups of n-items in descending probability order. The concurrent updates are achieved using hash-tables and atomic instructions and the lookups are achieved through a novel priority-queue which allows for approximately correct results even during concurrent updates. The approximatly correct and lock-free property is maintained by a read-copy-update scheme, but where the semantics have been slightly updated to allow for swap of elements rather than the traditional pop-insert scheme.

READ FULL TEXT

page 1

page 2

research
07/03/2021

Engineering MultiQueues: Fast Relaxed Concurrent Priority Queues

Priority queues with parallel access are an attractive data structure fo...
research
04/19/2023

Efficient implementation of sets and multisets in R using hash tables

The package hset for the R language contains an implementation of a S4 c...
research
06/20/2018

A Faster External Memory Priority Queue with DecreaseKeys

A priority queue is a fundamental data structure that maintains a dynami...
research
06/15/2018

Selective Monitoring

We study selective monitors for labelled Markov chains. Monitors observe...
research
09/15/2022

Concurrent Size

The size of a data structure (i.e., the number of elements in it) is a w...
research
01/10/2019

The Capacity of Count-Constrained ICI-Free Systems

A Markov chain approach is applied to determine the capacity of a genera...
research
01/02/2021

Early Work on Efficient Patching for Coordinating Edge Applications

Multiple applications running on Edge computers can be orchestrated to a...

Please sign up or login with your details

Forgot password? Click here to reset