Komarath, BalagopalBalagopalKomarathKumar, AnantAnantKumarMishra, SuchismitaSuchismitaMishraSethia, AditiAditiSethia2025-12-032025-12-032026-05-0110.1016/j.jcss.2025.1037282-s2.0-105022893416http://repository.iitgn.ac.in/handle/IITG2025/33567We consider algorithms for finding and counting small, fixed graphs in sparse host graphs. In the non-sparse setting, the parameters treedepth and treewidth play a crucial role in fast, constant-space and polynomial-space algorithms respectively. We discover two new parameters that we call matched treedepth and matched treewidth. We show that, for many patterns, finding and counting patterns with low matched treedepth and low matched treewidth can be done asymptotically faster than the existing algorithms when the host graphs are sparse. As an application to finding and counting fixed-size patterns, we discover O˜(m<sup>3</sup>)-time.<sup>1</sup> constant-space algorithms for graphs on at most 11 edges and O˜(m<sup>2</sup>)-time, polynomial-space algorithms for graphs on at most 9 edges.<sup>2</sup>falseMatchings | Subgraph detection and counting | Treedepth | TreewidthFinding and counting patterns in sparse graphsArticle10902724May 20260103728WOS:001631723200002