From Batch to Stream: Automatic Generation of Online Algorithms

被引:0
作者
Wang, Ziteng [1 ]
Pailoor, Shankara [1 ]
Prakash, Aaryan [1 ]
Wang, Yuepeng [2 ]
Dillig, Isil [1 ]
机构
[1] Univ Texas Austin, Austin, TX 78712 USA
[2] Simon Fraser Univ, Burnaby, BC, Canada
来源
PROCEEDINGS OF THE ACM ON PROGRAMMING LANGUAGES-PACMPL | 2024年 / 8卷 / PLDI期
基金
加拿大自然科学与工程研究理事会; 美国国家科学基金会;
关键词
Program Synthesis; Online Algorithms; Incremental Computation; Stream Processing; LIBRARY;
D O I
10.1145/3656418
中图分类号
TP31 [计算机软件];
学科分类号
081202 ; 0835 ;
摘要
Online streaming algorithms, tailored for continuous data processing, offer substantial benefits but are often more intricate to design than their offline counterparts. This paper introduces a novel approach for automatically synthesizing online streaming algorithms from their offline versions. In particular, we propose a novel methodology, based on the notion of relational function signature (RFS), for deriving an online algorithm given its offline version. Then, we propose a concrete synthesis algorithm that is an instantiation of the proposed methodology. Our algorithm uses the RFS to decompose the synthesis problem into a set of independent subtasks and uses a combination of symbolic reasoning and search to solve each subproblem. We implement the proposed technique in a new tool called Opera and evaluate it on over 50 tasks spanning two domains: statistical computations and online auctions. Our results show that Opera can automatically derive the online version of the original algorithm for 98% of the tasks. Our experiments also demonstrate that Opera significantly outperforms alternative approaches, including adaptations of SyGuS solvers to this problem as well as two of Opera's own ablations.
引用
收藏
页数:26
相关论文
共 50 条
  • [21] Maximum Matching in the Online Batch-Arrival Model
    Lee, Euiwoong
    Singla, Sahil
    INTEGER PROGRAMMING AND COMBINATORIAL OPTIMIZATION, IPCO 2017, 2017, 10328 : 355 - 367
  • [22] New Algorithms for Online Unit Clustering
    Mousavian, Zaynab
    Dezfoulian, Mir Hossein
    2008 INTERNATIONAL SYMPOSIUM ON TELECOMMUNICATIONS, VOLS 1 AND 2, 2008, : 740 - 744
  • [23] Admission Control with Online Algorithms in SDN
    Leguay, Jeremie
    Maggi, Lorenzo
    Draief, Moez
    Paris, Stefano
    Chouvardas, Symeon
    NOMS 2016 - 2016 IEEE/IFIP NETWORK OPERATIONS AND MANAGEMENT SYMPOSIUM, 2016, : 718 - 721
  • [24] A Comparison of Performance Measures for Online Algorithms
    Boyar, Joan
    Irani, Sandy
    Larsen, Kim S.
    ALGORITHMICA, 2015, 72 (04) : 969 - 994
  • [25] Scheduling with conflicts: online and offline algorithms
    Even, Guy
    Halldorsson, Magnus M.
    Kaplan, Lotem
    Ron, Dana
    JOURNAL OF SCHEDULING, 2009, 12 (02) : 199 - 224
  • [26] Online algorithms for searching and exploration in the plane
    Ghosh, Subir Kumar
    Klein, Rolf
    COMPUTER SCIENCE REVIEW, 2010, 4 (04) : 189 - 201
  • [27] Trackless online algorithms for the server problem
    Bein, WW
    Larmore, LL
    INFORMATION PROCESSING LETTERS, 2000, 74 (1-2) : 73 - 79
  • [28] A NEW MEASURE FOR THE STUDY OF ONLINE ALGORITHMS
    BENDAVID, S
    BORODIN, A
    ALGORITHMICA, 1994, 11 (01) : 73 - 91
  • [29] Randomized algorithms for online bounded bidding
    Epstein, Leah
    Levin, Asaf
    INFORMATION PROCESSING LETTERS, 2010, 110 (12-13) : 503 - 506
  • [30] Online Algorithms for Spectral Hypergraph Sparsification
    Soma, Tasuku
    Tung, Kam Chuen
    Yoshida, Yuichi
    INTEGER PROGRAMMING AND COMBINATORIAL OPTIMIZATION, IPCO 2024, 2024, 14679 : 405 - 417