arXiv:2611.24750cs.DSNov 2026

Manuscript Offprint

arXiv:2611.24750

Counting 66-Cliques in O(n5.97)O(n^{5.97}) time and O(log⁡n)O(\log n) space

Afrouz Jabal Ameli, Niklas Mohrin, Jesper Nederlof

Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.

Abstract

We present an algorithm that, given read-only access to the adjacency matrix of an nn-vertex graph GG, computes the number of 66-cliques in GG using O(n5.97)O(n^{5.97}) time and O(log⁡n)O(\log n) space. We achieve this by exploiting a decomposition of an equality indicator function underlying, among others, the refutations of the Exponential Time Hypothesis by OpenAI and Anthropic, and of the kk-Clique Conjecture by Vassilevska Williams and Zamir [arXiv, 2026]. Via known reductions, this implies an O(1.994n)O(1.994^{n}) time and polynomial space algorithm for Max Cut on nn-vertex graphs.

1 Introduction

A clique is a set of pairwise adjacent vertices. Counting fixed-size cliques is a basic problem in graph algorithms. Trivial enumeration counts all kk-cliques in nkn^{k} time. For decades, the fastest known algorithms were based on fast matrix multiplication. The classic reduction of Nešetřil and Poljak [6] counts kk-cliques in nωk/3+o(1)n^{\omega k/3+o(1)} time when kk is divisible by three, where ω\omega is the matrix multiplication exponent; rectangular matrix multiplication gives refined bounds for other values of kk [4]. Until recently, this was the only known route to a polynomial saving over trivial enumeration.

Recent developments go beyond this standard reduction. Vassilevska Williams and Zamir [9] count kk-cliques in n(ω/3−c)kn^{(\omega/3-c)k} time for all sufficiently large fixed kk, for an absolute constant c>0c>0 independent of both kk and ω\omega. The key step in each of these mentioned recent developments are various algebraic decompositions for the equality indicator function that also underlie the recent refutations of the Exponential Time Hypothesis [3, 7].

Given read-only random access to the adjacency matrix, trivial enumeration uses only O(log⁡n)O(\log n) space for every fixed kk. Despite the progress on running time, no O(nk−ε)O(n^{k-\varepsilon})-time algorithm using only (log⁡n)O(1)(\log n)^{O(1)} space was previously known for any fixed k≥3k\geq 3 and constant ε>0\varepsilon>0. The matrix multiplication algorithms do not directly yield such a result. Their standard implementations that run in time linear in the tensor rank of the matrix multiplication tensor achieve their time bounds by sharing intermediate computations between many linear forms and storing polynomial-size arrays. Evaluating the linear forms separately avoids these arrays, but its cost depends on the total support of the decomposition rather than its rank: for known decompositions, this direct evaluation takes more than nkn^{k} time.