Uniform Linked Lists Contraction

02/12/2020
by   Yijie Han, et al.
0

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

READ FULL TEXT

page 1

page 2

page 3

page 4

research
06/12/2023

RIP Linked List

Linked lists have always been an excellent teaching tool in programming....
research
12/15/2020

Sorting Lists with Equal Keys Using Mergesort in Linear Time

This article introduces a new optimization method to improve mergesort's...
research
08/19/2022

Merging Sorted Lists of Similar Strings

Merging T sorted, non-redundant lists containing M elements into a singl...
research
08/05/2021

Space and Time Bounded Multiversion Garbage Collection

We present a general technique for garbage collecting old versions for m...
research
08/29/2023

Chunked Lists versus Extensible Arrays for Text Inversion

In our 2017 work on in-memory list-based text inversion [Hawking and Bil...
research
10/25/2019

Non-Rectangular Convolutions and (Sub-)Cadences with Three Elements

The discrete acyclic convolution computes the 2n-1 sums sum_i+j=k; (i,j)...
research
03/01/2006

Towards a better list of citation superstars: compiling a multidisciplinary list of highly cited researchers

A new approach to producing multidisciplinary lists of highly cited rese...

Please sign up or login with your details

Forgot password? Click here to reset