Parallel Longest Increasing Subsequence and van Emde Boas Trees

被引:1
|
作者
Gu, Yan [1 ]
Men, Ziyang [1 ]
Shen, Zheqi [1 ]
Sun, Yihan [1 ]
Wan, Zijin [1 ]
机构
[1] UC Riverside, Riverside, CA 92521 USA
关键词
parallel algorithms; longest increasing subsequence; van Emde Boas tree; dynamic programming; parallel data structure; EFFICIENT ALGORITHMS; ALIGNMENT; SEGMENT; RANGE;
D O I
10.1145/3558481.3591069
中图分类号
TP301 [理论、方法];
学科分类号
081202 ;
摘要
This paper studies parallel algorithms for the longest increasing subsequence (LIS) problem. Let.. be the input size and k be the LIS length of the input. Sequentially, LIS is a simple problem that can be solved using dynamic programming (DP) in O(n log n) work. However, parallelizing LIS is a long-standing challenge. We are unaware of any parallel LIS algorithm that has optimal O(n log n) work and non-trivial parallelism (i.e., (O) over tilde (k) or o(n) span). This paper proposes a parallel LIS algorithm that costs O(n log k) work, (O) over tilde (k) span, and O(n) space, and is much simpler than the previous parallel LIS algorithms. We also generalize the algorithm to a weighted version of LIS, which maximizes the weighted sum for all objects in an increasing subsequence. To achieve a better work bound for the weighted LIS algorithm, we designed parallel algorithms for the van Emde Boas (vEB) tree, which has the same structure as the sequential vEB tree, and supports work-efficient parallel batch insertion, deletion, and range queries. We also implemented our parallel LIS algorithms. Our implementation is light-weighted, efficient, and scalable. On input size 10(9), our LIS algorithm outperforms a highly-optimized sequential algorithm (with O(n log k) cost) on inputs with k <= 3 x 10(5). Our algorithm is also much faster than the best existing parallel implementation by Shen et al. (2022) on all input instances.
引用
收藏
页码:327 / 340
页数:14
相关论文
共 50 条
  • [21] PARALLEL ALGORITHMS FOR THE LONGEST COMMON SUBSEQUENCE PROBLEM
    LU, M
    LIN, H
    IEEE TRANSACTIONS ON PARALLEL AND DISTRIBUTED SYSTEMS, 1994, 5 (08) : 835 - 848
  • [22] Parallel Longest Common SubSequence Analysis In Chapel
    Vahidi, Soroush
    Schieber, Baruch
    Du, Zhihui
    Bader, David A.
    2023 IEEE HIGH PERFORMANCE EXTREME COMPUTING CONFERENCE, HPEC, 2023,
  • [23] Longest Increasing Subsequence under Persistent Comparison Errors
    Geissmann, Barbara
    THEORY OF COMPUTING SYSTEMS, 2020, 64 (04) : 662 - 680
  • [24] Minimum Height and Sequence Constrained Longest Increasing Subsequence
    Tseng, Chiou-Ting
    Yang, Chang-Biau
    Ann, Hsing-Yen
    JOURNAL OF INTERNET TECHNOLOGY, 2009, 10 (02): : 173 - 178
  • [25] Estimating the Longest Increasing Subsequence in Nearly Optimal Time
    Andoni, Alexandr
    Nosatzki, Negev Shekel
    Sinha, Sandip
    Stein, Clifford
    2022 IEEE 63RD ANNUAL SYMPOSIUM ON FOUNDATIONS OF COMPUTER SCIENCE (FOCS), 2022, : 708 - 719
  • [26] Efficient algorithms for finding a longest common increasing subsequence
    Wun-Tat Chan
    Yong Zhang
    Stanley P. Y. Fung
    Deshi Ye
    Hong Zhu
    Journal of Combinatorial Optimization, 2007, 13 : 277 - 288
  • [27] Longest Increasing Subsequence Computation over Streaming Sequences
    Li, Youhuan
    Zou, Lei
    Zhang, Huaming
    Zhao, Dongyan
    IEEE TRANSACTIONS ON KNOWLEDGE AND DATA ENGINEERING, 2018, 30 (06) : 1036 - 1049
  • [28] Efficient algorithms for finding a longest common increasing subsequence
    Chan, WT
    Zhang, Y
    Fung, SPY
    Ye, DS
    Zhu, H
    ALGORITHMS AND COMPUTATION, 2005, 3827 : 665 - 674
  • [29] Space-Efficient Algorithms for Longest Increasing Subsequence
    Kiyomi, Masashi
    Ono, Hirotaka
    Otachi, Yota
    Schweitzer, Pascal
    Tarui, Jun
    35TH SYMPOSIUM ON THEORETICAL ASPECTS OF COMPUTER SCIENCE (STACS 2018), 2018, 96
  • [30] Space-Efficient Algorithms for Longest Increasing Subsequence
    Masashi Kiyomi
    Hirotaka Ono
    Yota Otachi
    Pascal Schweitzer
    Jun Tarui
    Theory of Computing Systems, 2020, 64 : 522 - 541