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

最长递增子序列的空间有效算法

Space-Efficient Algorithms for Longest Increasing Subsequence

Masashi Kiyomi, Hirotaka Ono, Yota Otachi, Pascal Schweitzer, Jun Tarui

摘要:

给定一个整数序列,我们想找到序列的最长递增子序列。已知该问题可以在$O(n \log n)$时间和空间中解决。本文的目标是在保持小的时间复杂度的同时减少空间消耗。对于$\sqrt{n} \le s \le n$,我们提出的算法,使用$O(s \log n)$位和$O(\frac{1}{s} \cdot n^{2} \cdot \log n)$时间计算最长的增加子序列的长度,和$O(\frac{1}{s} \cdot n^{2} \cdot \log^{2} n)$时间找到一个实际的子序列。我们还表明,我们的算法的时间复杂度是最佳的多对数因子的框架中的顺序存取算法与规定的空间量。

英文摘要:

Given a sequence of integers, we want to find a longest increasing subsequence of the sequence. It is known that this problem can be solved in $O(n \log n)$ time and space. Our goal in this paper is to reduce the space consumption while keeping the time complexity small. For $\sqrt{n} \le s \le n$, we present algorithms that use $O(s \log n)$ bits and $O(\frac{1}{s} \cdot n^{2} \cdot \log n)$ time for computing the length of a longest increasing subsequence, and $O(\frac{1}{s} \cdot n^{2} \cdot \log^{2} n)$ time for finding an actual subsequence. We also show that the time complexity of our algorithms is optimal up to polylogarithmic factors in the framework of sequential access algorithms with the prescribed amount of space.

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

↑