{"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.