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 条
  • [1] Are van Emde Boas trees viable on the GPU?
    Mayr, Benedikt
    Weinrauch, Alexander
    Parger, Mathias
    Steinberger, Markus
    2021 IEEE HIGH PERFORMANCE EXTREME COMPUTING CONFERENCE (HPEC), 2021,
  • [2] Nearly Optimal Parallel Algorithms for Longest Increasing Subsequence
    Cao, Nairen
    Huang, Shang-En
    Su, Hsin-Hao
    PROCEEDINGS OF THE 35TH ACM SYMPOSIUM ON PARALLELISM IN ALGORITHMS AND ARCHITECTURES, SPAA 2023, 2023, : 249 - 259
  • [3] An efficient parallel algorithm for the longest increasing subsequence problem on a LARPBS
    Seme, David
    Youlou, Sidney
    EIGHTH INTERNATIONAL CONFERENCE ON PARALLEL AND DISTRIBUTED COMPUTING, APPLICATIONS AND TECHNOLOGIES, PROCEEDINGS, 2007, : 251 - 258
  • [4] Examining computational geometry, Van Emde Boas trees, and hashing from the perspective of the fusion tree
    Willard, DE
    SIAM JOURNAL ON COMPUTING, 2000, 29 (03) : 1030 - 1049
  • [5] The Longest Wave Subsequence Problem: Generalizations of the Longest Increasing Subsequence Problem
    Chen, Guan-Zhi
    Yang, Chang-Biau
    Chang, Yu-Cheng
    INTERNATIONAL JOURNAL OF FOUNDATIONS OF COMPUTER SCIENCE, 2025, 36 (02) : 203 - 218
  • [6] Pipelined van Emde!Boas tree: Algorithms, analysis, and applications
    Wang, Hao
    Lin, Bill
    INFOCOM 2007, VOLS 1-5, 2007, : 2471 - +
  • [7] On the longest common increasing binary subsequence
    Houdre, Christian
    Lember, Juri
    Matzinger, Heinrich
    COMPTES RENDUS MATHEMATIQUE, 2006, 343 (09) : 589 - 594
  • [8] The longest almost-increasing subsequence
    Elmasry, Amr
    INFORMATION PROCESSING LETTERS, 2010, 110 (16) : 655 - 658
  • [9] The Longest Almost-Increasing Subsequence
    Elmasry, Amr
    COMPUTING AND COMBINATORICS, 2010, 6196 : 338 - 347
  • [10] The longest common increasing subsequence problem
    Bai, YS
    Weems, BP
    Proceedings of the 8th Joint Conference on Information Sciences, Vols 1-3, 2005, : 362 - 366