An in-place, subquadratic algorithm for permutation inversion
arXiv:1901.01926
Abstract
We assume the permutation is given by an -element array in which the -th element denotes the value . Constructing its inverse in-place (i.e. using bits of additional memory) can be achieved in linear time with a simple algorithm. Limiting the numbers that can be stored in our array to the range still allows a straightforward time solution. The time complexity can be improved using randomization, but this only improves the expected, not the pessimistic running time. We present a deterministic algorithm that runs in time.