Hostname: page-component-76d6cb85b7-f97m6 Total loading time: 0 Render date: 2026-07-15T06:40:40.180Z Has data issue: false hasContentIssue false

Efficiency of Analysis of Transitive Relations Using Query-Driven, Ground-and-Solve, and Fact-Driven Inference

Published online by Cambridge University Press:  15 July 2026

YANHONG A. LIU
Affiliation:
Computer Science Department, Stony Brook University, USA (e-mails: liu@cs.stonybrook.edu, jidogun@cs.stonybrook.edu, stoller@cs.stonybrook.edu, yittong@cs.stonybrook.edu)
JOHN IDOGUN
Affiliation:
Computer Science Department, Stony Brook University, USA (e-mails: liu@cs.stonybrook.edu, jidogun@cs.stonybrook.edu, stoller@cs.stonybrook.edu, yittong@cs.stonybrook.edu)
SCOTT D. STOLLER
Affiliation:
Computer Science Department, Stony Brook University, USA (e-mails: liu@cs.stonybrook.edu, jidogun@cs.stonybrook.edu, stoller@cs.stonybrook.edu, yittong@cs.stonybrook.edu)
YI TONG
Affiliation:
Computer Science Department, Stony Brook University, USA (e-mails: liu@cs.stonybrook.edu, jidogun@cs.stonybrook.edu, stoller@cs.stonybrook.edu, yittong@cs.stonybrook.edu)
Rights & Permissions [Opens in a new window]

Abstract

Logic rules allow analysis of complex relationships to be expressed easily, especially for transitive relations in critical applications. However, understanding and predicting the efficiency of different inference methods remain challenging, even for simplest rules given different kinds of input data. This paper analyzes the efficiency of all three types of well-known inference methods – query-driven, ground-and-solve, and fact-driven – along with their respective optimizations, and compares with optimal complexities for the first time, for analyzing transitive graph relations. We also experiment with rule systems widely considered to have the best performance. We analyze all well-known rule variants and widely varying input graphs. The results include precisely calculated optimal time complexities; comparative analysis across different inference methods, rule variants, and graph types; confirmation with performance experiments; as well as discovery of a performance bug.

Information

Type
Original Article
Creative Commons
Creative Common License - CCCreative Common License - BYCreative Common License - SA
This is an Open Access article, distributed under the terms of the Creative Commons Attribution-ShareAlike licence (https://creativecommons.org/licenses/by-sa/4.0/), which permits re-use, distribution, and reproduction in any medium, provided the same Creative Commons licence is used to distribute the re-used or adapted article and the original article is properly cited.
Copyright
© The Author(s), 2026. Published by Cambridge University Press
Figure 0

Table 1. Inference methods and rule systems

Figure 1

Table 2. Kinds of input graphs and their definitions, with their names if any in Brass and Wenzel (2019b)

Figure 2

Table 3. Optimal number of combinations for all 3 recursion variants and all 12 graph typesTable 3 long description.

Figure 3

Fig. 1. Fig. 1 long description.Running times on Cmpl graphs, up to 1000 vertices, 1000000 edges.

Figure 4

Fig. 2. Fig. 2 long description.Running times on Path graphs, up to 1000 vertices, 999 edges.

Figure 5

Fig. 3. Running times on W graphs, up to 2000 vertices, 1000000 (k=n=1000)$(k = n = 1000)$ edges.

Figure 6

Fig. 4. Fig. 4 long description.Running times on BA graphs, up to 100000 vertices, 200000 edges.

Supplementary material: File

Liu et al. supplementary material

Liu et al. supplementary material
Download Liu et al. supplementary material(File)
File 542 KB