Cost-Optimal Execution of Trees of Boolean Operators with Shared Streams

The processing of queries expressed as trees of boolean operators applied to predicates on sensor data streams has several applications in mobile computing. Sensor data must be retrieved from the sensors to a query processing device, such as a smartphone, over one or more network interfaces. Retrieving a data item incurs a cost, e.g., an energy expense that depletes the smartphone's battery. Since the query tree contains boolean operators, part of the tree can be shortcircuited depending on the retrieved sensor data. An interesting problem is to determine the order in which predicates should be evaluated so as to minimize the expected query processing cost. This problem has been studied in previous work assuming that each data stream occurs in a single predicate. In this work we remove this assumption since it does not necessarily hold for real-world queries. Our main results are an optimal algorithm for single-level trees and a proof of NP-completeness for DNF trees. For DNF trees, however, we show that there is an optimal predicate evaluation order that corresponds to a depth-first traversal. This result provides inspiration for a class of heuristics. We show that one of these heuristics largely outperforms other sensible heuristics, including the one heuristic proposed in previous work for our general version of the query processing problem.

Data and Resources

Additional Info

Field Value
Source https://inria.hal.science/hal-00869340
Author Casanova, Henri, Lim, Lipyeow, Robert, Yves, Vivien, Frédéric, Zaidouni, Dounia
Maintainer CCSD
Last Updated May 9, 2026, 07:51 (UTC)
Created May 9, 2026, 07:51 (UTC)
Identifier Report N°: RR-8373
Language en
Rights https://about.hal.science/hal-authorisation-v1/
contributor Information and Computer Sciences [Hawaii] (ICS) ; University of Hawai‘i [Mānoa] (UHM)
creator Casanova, Henri
date 2013-10-03T00:00:00
harvest_object_id 1b00ecc0-cd49-4ce0-8a19-07475f639b0e
harvest_source_id 3374d638-d20b-4672-ba96-a23232d55657
harvest_source_title test moissonnage SELUNE
metadata_modified 2025-10-13T00:00:00
set_spec type:REPORT