arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 1901.01926cs.DS
收藏

一种在位次二次型置换求逆算法

An in-place, subquadratic algorithm for permutation inversion

Grzegorz Guśpiel

摘要:

我们假设置换$π$由$n$元素数组给出,其中第$i$个元素表示值$π(i)$ .就地构造其逆(即,使用附加存储器的$O(\log{n})$位)可以利用简单算法在线性时间内实现。将可以存储在数组中的数字限制在$[1...n]$范围内,仍然可以实现直接的$O(n^2)$时间解决方案。使用随机化可以改善时间复杂度,但这只改善了预期的运行时间,而不是悲观的运行时间。我们提出了一个确定性的算法,运行在$O(n^{3/2})$时间。

英文摘要:

We assume the permutation $π$ is given by an $n$-element array in which the $i$-th element denotes the value $π(i)$. Constructing its inverse in-place (i.e. using $O(\log{n})$ 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 $[1...n]$ still allows a straightforward $O(n^2)$ 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 $O(n^{3/2})$ time.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑