We gratefully acknowledge support from
the Simons Foundation and member institutions.
Full-text links:

Download:

Current browse context:

cs.DS

Change to browse by:

cs

References & Citations

DBLP - CS Bibliography

Bookmark

(what is this?)
CiteULike logo BibSonomy logo Mendeley logo del.icio.us logo Digg logo Reddit logo

Computer Science > Data Structures and Algorithms

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

Abstract: Assume that an $N$-bit sequence $S$ of $k$ self-delimiting numbers is given as input. We present space-efficient algorithms for sorting, dense ranking and (competitive) ranking $S$ on the word RAM model with word size $\Omega(\log N)$ bits. Our algorithms run in $O(k + \frac{N}{\log N})$ time and use $O(N)$ bits. The sorting algorithm returns the given numbers in sorted order, stored within a bit-vector of $N$ bits, whereas our ranking algorithms construct data structures that allow us subsequently to return the (dense) rank of each number $x$ in $S$ in constant time if the position of $x$ in $S$ is given together with $x$.
As an application of our algorithms we give an algorithm for tree isomorphism, which runs in $O(n)$ time and uses $O(n)$ bits on $n$-node trees. The previous best linear-time algorithm for tree isomorphism uses $\Theta(n \log n)$ bits.
Subjects: Data Structures and Algorithms (cs.DS)
ACM classes: F.2.2
Cite as: arXiv:2002.07287 [cs.DS]
  (or arXiv:2002.07287v2 [cs.DS] for this version)

Submission history

From: Andrej Sajenko [view email]
[v1] Mon, 17 Feb 2020 22:39:00 GMT (112kb,D)
[v2] Mon, 15 Jun 2020 10:17:08 GMT (105kb,D)

Link back to: arXiv, form interface, contact.