A Curious Link Between Prime Numbers, the Maundy Cake Problem and Parallel Sorting

10/25/2019
by   Jonathan Blanchette, et al.
0

We present new theoretical algorithms that sums the n-ary comparators output in order to get the permutation indices in order to sort a sequence. By analysing the parallel ranking algorithm, we found that the special comparators number of elements it processes divide the number of elements to be sorted. Using the divide and conquer method, we can express the sorting problem into summing output of comparators taking a prime number of elements, given that this prime number divides the initial disordered sequence length. The number of sums is directly related to the Maundy cake problem. Furthermore, we provide a new sequence that counts the number of comparators used in the algorithms.

READ FULL TEXT

page 1

page 2

page 3

page 4

research
06/12/2020

On the Skolem Problem and Prime Powers

The Skolem Problem asks, given a linear recurrence sequence (u_n), wheth...
research
11/23/2020

Searching and Sorting with O(n^2) processors in O(1) time

The proliferation of number of processing elements (PEs) in parallel com...
research
02/17/2020

Sorting and Ranking of Self-Delimiting Numbers with Applications to Tree Isomorphism

Assume that an N-bit sequence S of k self-delimiting numbers is given as...
research
07/17/2018

Genetic algorithms in Forth

A method for automatically finding a program (bytecode) realizing the gi...
research
05/09/2023

Performance Evaluation of Parallel Sortings on the Supercomputer Fugaku

Sorting is one of the most basic algorithms, and developing highly paral...
research
05/27/2019

OrderNet: Ordering by Example

In this paper we introduce a new neural architecture for sorting unorder...
research
07/18/2019

Stack sorting with restricted stacks

The (classical) problem of characterizing and enumerating permutations t...

Please sign up or login with your details

Forgot password? Click here to reset