English

Space-Efficient Algorithms for Longest Increasing Subsequence

Data Structures and Algorithms 2017-12-27 v1

Abstract

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(nlogn)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 nsn\sqrt{n} \le s \le n, we present algorithms that use O(slogn)O(s \log n) bits and O(1sn2logn)O(\frac{1}{s} \cdot n^{2} \cdot \log n) time for computing the length of a longest increasing subsequence, and O(1sn2log2n)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.

Keywords

Cite

@article{arxiv.1712.09230,
  title  = {Space-Efficient Algorithms for Longest Increasing Subsequence},
  author = {Masashi Kiyomi and Hirotaka Ono and Yota Otachi and Pascal Schweitzer and Jun Tarui},
  journal= {arXiv preprint arXiv:1712.09230},
  year   = {2017}
}

Comments

14 pages, STACS 2018