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 [J].
Lee, Euiwoong ;
Singla, Sahil .
INTEGER PROGRAMMING AND COMBINATORIAL OPTIMIZATION, IPCO 2017, 2017, 10328 :355-367
[22]   A Comparison of Performance Measures for Online Algorithms [J].
Boyar, Joan ;
Irani, Sandy ;
Larsen, Kim S. .
ALGORITHMICA, 2015, 72 (04) :969-994
[23]   New Algorithms for Online Unit Clustering [J].
Mousavian, Zaynab ;
Dezfoulian, Mir Hossein .
2008 INTERNATIONAL SYMPOSIUM ON TELECOMMUNICATIONS, VOLS 1 AND 2, 2008, :740-744
[24]   Admission Control with Online Algorithms in SDN [J].
Leguay, Jeremie ;
Maggi, Lorenzo ;
Draief, Moez ;
Paris, Stefano ;
Chouvardas, Symeon .
NOMS 2016 - 2016 IEEE/IFIP NETWORK OPERATIONS AND MANAGEMENT SYMPOSIUM, 2016, :718-721
[25]   Scheduling with conflicts: online and offline algorithms [J].
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 [J].
Ghosh, Subir Kumar ;
Klein, Rolf .
COMPUTER SCIENCE REVIEW, 2010, 4 (04) :189-201
[27]   Trackless online algorithms for the server problem [J].
Bein, WW ;
Larmore, LL .
INFORMATION PROCESSING LETTERS, 2000, 74 (1-2) :73-79
[28]   A Comparison of Performance Measures for Online Algorithms [J].
Joan Boyar ;
Sandy Irani ;
Kim S. Larsen .
Algorithmica, 2015, 72 :969-994
[29]   Online Algorithms for Spectral Hypergraph Sparsification [J].
Soma, Tasuku ;
Tung, Kam Chuen ;
Yoshida, Yuichi .
INTEGER PROGRAMMING AND COMBINATORIAL OPTIMIZATION, IPCO 2024, 2024, 14679 :405-417
[30]   Online algorithms for page replication in rings [J].
Glazek, W .
THEORETICAL COMPUTER SCIENCE, 2001, 268 (01) :107-117