Combinatorial Algorithms for Multidimensional Necklaces

08/04/2021
by   Duncan Adamson, et al.
0

A necklace is an equivalence class of words of length n over an alphabet under the cyclic shift (rotation) operation. As a classical object, there have been many algorithmic results for key operations on necklaces, including counting, generating, ranking, and unranking. This paper generalises the concept of necklaces to the multidimensional setting. We define multidimensional necklaces as an equivalence classes over multidimensional words under the multidimensional cyclic shift operation. Alongside this definition, we generalise several problems from the one dimensional setting to the multidimensional setting for multidimensional necklaces with size (n_1,n_2,...,n_d) over an alphabet of size q including: providing closed form equations for counting the number of necklaces; an O(n_1 · n_2 · ... · n_d) time algorithm for transforming some necklace w to the next necklace in the ordering; an O((n_1 · n_2 · ... · n_d)^5) time algorithm to rank necklaces (determine the number of necklaces smaller than w in the set of necklaces); an O((n_1· n_2 · ... · n_d)^6(d + 1)·log^d(q)) time algorithm to unrank multidimensional necklace (determine the i^th necklace in the set of necklaces). Our results on counting, ranking, and unranking are further extended to the fixed content setting, where every necklace has the same Parikh vector, in other words every necklace shares the same number of occurrences of each symbol. Finally, we study the k-centre problem for necklaces both in the single and multidimensional settings. We provide strong approximation algorithms for solving this problem in both the one dimensional and multidimensional settings.

READ FULL TEXT

page 1

page 2

page 3

page 4

research
05/27/2022

Ranking Binary Unlabelled Necklaces in Polynomial Time

Unlabelled Necklaces are an equivalence class of cyclic words under both...
research
04/10/2023

Ranking and Unranking k-subsequence universal words

A subsequence of a word w is a word u such that u = w[i_1] w[i_2] , … w[...
research
08/02/2006

Stability in multidimensional Size Theory

This paper proves that in Size Theory the comparison of multidimensional...
research
03/22/2022

Minimizing communication in the multidimensional FFT

We present a parallel algorithm for the fast Fourier transform (FFT) in ...
research
01/06/2021

Algorithms and Hardness for Multidimensional Range Updates and Queries

Traditional orthogonal range problems allow queries over a static set of...
research
12/03/2020

A Novel index-based multidimensional data organization model that enhances the predictability of the machine learning algorithms

Learning from the multidimensional data has been an interesting concept ...
research
09/12/2020

An Algorithmic Information Distortion in Multidimensional Networks

Network complexity, network information content analysis, and lossless c...

Please sign up or login with your details

Forgot password? Click here to reset