open access publication

Article, 2024

The complexity of evaluating nfer

Science of Computer Programming, ISSN 0167-6423, Volume 231, 10.1016/j.scico.2023.103012

Contributors

Kauffman S. 0000-0001-6341-3898 (Corresponding author) [1] Zimmermann M. 0000-0002-8038-2453 [1]

Affiliations

  1. [1] Aalborg University
  2. [NORA names: AAU Aalborg University; University; Denmark; Europe, EU; Nordic; OECD]

Abstract

Nfer is a rule-based language for abstracting event streams into a hierarchy of intervals with data. Nfer has multiple implementations and has been applied in the analysis of spacecraft telemetry and autonomous vehicle logs. This work provides the first complexity analysis of nfer evaluation, i.e., the problem of deciding whether a given interval is generated by applying rules. We show that the full nfer language is undecidable and that this depends on both recursion in the rules and an infinite data domain. By restricting either or both of those capabilities, we obtain tight decidability results. We also examine the impact on complexity of exclusive rules and minimality. For the most practical case, which is minimality with finite data, we provide a polynomial-time algorithm.

Keywords

Complexity, Interval logic, Runtime verification

Funders

  • DIREC
  • Villum Fonden
  • Digital Research Center Denmark
  • European Research Council

Data Provider: Elsevier