English

Uniform Linked Lists Contraction

Data Structures and Algorithms 2021-01-08 v3 Distributed, Parallel, and Cluster Computing

Abstract

We present a parallel algorithm (EREW PRAM algorithm) for linked lists contraction. We show that when we contract a linked list from size nn to size n/cn/c for a suitable constant cc we can pack the linked list into an array of size n/dn/d for a constant 1<dc1 < d\leq c in the time of 3 coloring the list. Thus for a set of linked lists with a total of nn elements and the longest list has ll elements our algorithm contracts them in O(nlogi/p+(log(i)n+logi)loglogl+logl)O(n\log i/p+(\log^{(i)}n+\log i )\log \log l+ \log l) time, for an arbitrary constructible integer ii, with pp processors on the EREW PRAM, where log(1)n=logn\log^{(1)} n =\log n and log(t)n=loglog(t1)n\log^{(t)}n=\log \log^{(t-1)} n and logn=min{ilog(i)n<10}\log^*n=\min \{ i|\log^{(i)} n < 10\}. When ii is a constant we get time O(n/p+log(i)nloglogl+logl)O(n/p+\log^{(i)}n\log \log l+\log l). Thus when l=Ω(log(c)n)l=\Omega (\log^{(c)}n) for any constant cc we achieve O(n/p+logl)O(n/p+\log l) time. The previous best deterministic EREW PRAM algorithm has time O(n/p+logn)O(n/p+\log n) and best CRCW PRAM algorithm has time O(n/p+logn/loglogn+logl)O(n/p+\log n/\log \log n+\log l). Keywords: Parallel algorithms, linked list, linked list contraction, uniform linked list contraction, EREW PRAM.

Keywords

Cite

@article{arxiv.2002.05034,
  title  = {Uniform Linked Lists Contraction},
  author = {Yijie Han},
  journal= {arXiv preprint arXiv:2002.05034},
  year   = {2021}
}
R2 v1 2026-06-23T13:39:41.679Z