Complex event recognition meets hierarchical conjunctive queries

Dante Pinto, Cristian Riveros
{"title":"Complex event recognition meets hierarchical conjunctive queries","authors":"Dante Pinto, Cristian Riveros","doi":"arxiv-2408.01652","DOIUrl":null,"url":null,"abstract":"Hierarchical conjunctive queries (HCQ) are a subclass of conjunctive queries\n(CQ) with robust algorithmic properties. Among others, Berkholz, Keppeler, and\nSchweikardt have shown that HCQ is the subclass of CQ (without projection) that\nadmits dynamic query evaluation with constant update time and constant delay\nenumeration. On a different but related setting stands Complex Event\nRecognition (CER), a prominent technology for evaluating sequence patterns over\nstreams. Since one can interpret a data stream as an unbounded sequence of\ninserts in dynamic query evaluation, it is natural to ask to which extent CER\ncan take advantage of HCQ to find a robust class of queries that can be\nevaluated efficiently. In this paper, we search to combine HCQ with sequence patterns to find a\nclass of CER queries that can get the best of both worlds. To reach this goal,\nwe propose a class of complex event automata model called Parallelized Complex\nEvent Automata (PCEA) for evaluating CER queries with correlation (i.e., joins)\nover streams. This model allows us to express sequence patterns and compare\nvalues among tuples, but it also allows us to express conjunctions by\nincorporating a novel form of non-determinism that we call parallelization. We\nshow that for every HCQ (under bag semantics), we can construct an equivalent\nPCEA. Further, we show that HCQ is the biggest class of acyclic CQ that this\nautomata model can define. Then, PCEA stands as a sweet spot that precisely\nexpresses HCQ (i.e., among acyclic CQ) and extends them with sequence patterns.\nFinally, we show that PCEA also inherits the good algorithmic properties of HCQ\nby presenting a streaming evaluation algorithm under sliding windows with\nlogarithmic update time and output-linear delay for the class of PCEA with\nequality predicates.","PeriodicalId":501124,"journal":{"name":"arXiv - CS - Formal Languages and Automata Theory","volume":"42 1","pages":""},"PeriodicalIF":0.0000,"publicationDate":"2024-08-03","publicationTypes":"Journal Article","fieldsOfStudy":null,"isOpenAccess":false,"openAccessPdf":"","citationCount":"0","resultStr":null,"platform":"Semanticscholar","paperid":null,"PeriodicalName":"arXiv - CS - Formal Languages and Automata Theory","FirstCategoryId":"1085","ListUrlMain":"https://doi.org/arxiv-2408.01652","RegionNum":0,"RegionCategory":null,"ArticlePicture":[],"TitleCN":null,"AbstractTextCN":null,"PMCID":null,"EPubDate":"","PubModel":"","JCR":"","JCRName":"","Score":null,"Total":0}
引用次数: 0

Abstract

Hierarchical conjunctive queries (HCQ) are a subclass of conjunctive queries (CQ) with robust algorithmic properties. Among others, Berkholz, Keppeler, and Schweikardt have shown that HCQ is the subclass of CQ (without projection) that admits dynamic query evaluation with constant update time and constant delay enumeration. On a different but related setting stands Complex Event Recognition (CER), a prominent technology for evaluating sequence patterns over streams. Since one can interpret a data stream as an unbounded sequence of inserts in dynamic query evaluation, it is natural to ask to which extent CER can take advantage of HCQ to find a robust class of queries that can be evaluated efficiently. In this paper, we search to combine HCQ with sequence patterns to find a class of CER queries that can get the best of both worlds. To reach this goal, we propose a class of complex event automata model called Parallelized Complex Event Automata (PCEA) for evaluating CER queries with correlation (i.e., joins) over streams. This model allows us to express sequence patterns and compare values among tuples, but it also allows us to express conjunctions by incorporating a novel form of non-determinism that we call parallelization. We show that for every HCQ (under bag semantics), we can construct an equivalent PCEA. Further, we show that HCQ is the biggest class of acyclic CQ that this automata model can define. Then, PCEA stands as a sweet spot that precisely expresses HCQ (i.e., among acyclic CQ) and extends them with sequence patterns. Finally, we show that PCEA also inherits the good algorithmic properties of HCQ by presenting a streaming evaluation algorithm under sliding windows with logarithmic update time and output-linear delay for the class of PCEA with equality predicates.
查看原文
分享 分享
微信好友 朋友圈 QQ好友 复制链接
本刊更多论文
复杂事件识别满足分层连接查询
分层连接查询(HCQ)是连接查询(CQ)的一个子类,具有稳健的算法特性。其中,Berkholz、Keppeler 和 Schweikardt 已经证明,HCQ 是 CQ 的子类(无投影),它允许以恒定的更新时间和恒定的延迟枚举进行动态查询评估。复杂事件识别(CER)是一种用于评估数据流序列模式的著名技术,它与 CQ 的设定不同,但又相互关联。由于在动态查询评估中,人们可以将数据流解释为无限制的插入序列,因此我们自然会问,CER 能在多大程度上利用 HCQ 来找到一类可以高效评估的健壮查询。在本文中,我们试图将 HCQ 与序列模式结合起来,找到一类可以获得两全其美的 CER 查询。为了实现这一目标,我们提出了一类名为并行化复杂事件自动机(Parallelized ComplexEvent Automata,PCEA)的复杂事件自动机模型,用于评估流上具有相关性(即连接)的 CER 查询。该模型允许我们表达序列模式和图元间的比较值,还允许我们通过纳入一种新颖的非确定性形式(我们称之为并行化)来表达连接。我们证明,对于每一个 HCQ(在袋语义下),我们都能构造一个等价的 PCEA。此外,我们还证明,HCQ 是这种自动模型所能定义的最大一类无循环 CQ。最后,我们证明了 PCEA 也继承了 HCQ 的良好算法特性,为一类具有质量谓词的 PCEA 提出了滑动窗口下的流式评估算法,该算法具有对数更新时间和输出线性延迟。
本文章由计算机程序翻译,如有差异,请以英文原文为准。
求助全文
约1分钟内获得全文 去求助
来源期刊
自引率
0.00%
发文量
0
期刊最新文献
Query Learning of Advice and Nominal Automata Well-Behaved (Co)algebraic Semantics of Regular Expressions in Dafny Run supports and initial algebra supports of weighted automata Alternating hierarchy of sushifts defined by nondeterministic plane-walking automata $\mathbb{N}$-polyregular functions arise from well-quasi-orderings
×
引用
GB/T 7714-2015
复制
MLA
复制
APA
复制
导出至
BibTeX EndNote RefMan NoteFirst NoteExpress
×
×
提示
您的信息不完整,为了账户安全,请先补充。
现在去补充
×
提示
您因"违规操作"
具体请查看互助需知
我知道了
×
提示
现在去查看 取消
×
提示
确定
0
微信
客服QQ
Book学术公众号 扫码关注我们
反馈
×
意见反馈
请填写您的意见或建议
请填写您的手机或邮箱
已复制链接
已复制链接
快去分享给好友吧!
我知道了
×
扫码分享
扫码分享
Book学术官方微信
Book学术文献互助
Book学术文献互助群
群 号:481959085
Book学术
文献互助 智能选刊 最新文献 互助须知 联系我们:info@booksci.cn
Book学术提供免费学术资源搜索服务,方便国内外学者检索中英文文献。致力于提供最便捷和优质的服务体验。
Copyright © 2023 Book学术 All rights reserved.
ghs 京公网安备 11010802042870号 京ICP备2023020795号-1