Sorting and Ranking of Self-Delimiting Numbers with Applications to Outerplanar Graph Isomorphism
Abstract
Assume that an -bit sequence of numbers encoded as Elias gamma codes is given as input. We present space-efficient algorithms for sorting, dense ranking and competitive ranking on in the word RAM model with word size bits. Our algorithms run in time and use bits. The sorting algorithm returns the given numbers in sorted order, stored within a bit-vector of bits, whereas our ranking algorithms construct data structures that allow us subsequently to return the dense/competitive rank of each number in in constant time. For numbers with we require the position of as the input for our dense-/competitive-rank data structure. As an application of our algorithms above we give an algorithm for tree isomorphism, which runs in time and uses bits on -node trees. Finally, we generalize our result for tree isomorphism to forests and outerplanar graphs, while maintaining a space-usage of bits. The previous best linear-time algorithms for trees, forests and outerplanar graph isomorphism all use bits.
Keywords
Cite
@article{arxiv.2002.07287,
title = {Sorting and Ranking of Self-Delimiting Numbers with Applications to Outerplanar Graph Isomorphism},
author = {Frank Kammer and Johannes Meintrup and Andrej Sajenko},
journal= {arXiv preprint arXiv:2002.07287},
year = {2024}
}