It’s late, your coffee has gone cold, and you’re staring at a graph with a billion nodes. You know there’s a dense cluster in there somewhere—a "clique" where everyone knows everyone—but finding it feels like looking for a needle in a haystack, where the haystack is also made of needles.
In the world of random graphs, this isn't just a headache; it’s a fundamental mystery of computer science. A new paper, Cliques, Quasi-Cliques, and Bicliques in Random Graphs: Sampling and Algorithms, offers a fresh pair of glasses to look at this problem. The authors—Thanh Le, A. Pavan, Xavier Pérez-Giménez, and N. V. Vinodchandran—suggest that the "dumb" algorithm we’ve been using for forty years is actually much smarter than we thought.
TL;DR
Finding the largest clique in a random graph is notoriously hard, with a massive gap between what exists and what we can actually find efficiently. This paper reveals that the classic "greedy" algorithm is secretly a high-quality random sampler, and by leveraging this, the authors provide the first "smooth" trade-off between how big a clique you want and how much time you're willing to spend finding it.
What Problem Does This Paper Address?
In an Erdős-Rényi random graph $G(n, 1/2)$—where every possible edge exists with a 50% chance—mathematics tells us the largest clique is usually about size $2 \log n$. However, if you try to find one using a simple polynomial-time "greedy" algorithm (just keep grabbing vertices that connect to everyone you've already picked), you’ll get stuck at size $\log n$.
This "$\log n$ barrier" has stood since the 1970s. Pushing past it to find a clique of size, say, $1.1 \log n$ usually requires exhaustive searching that takes an astronomical amount of time. The authors tackle this algorithmic stagnation, extending their reach not just to perfect cliques, but also to quasi-cliques (subgraphs that are mostly complete) and bicliques (dense connections between two distinct groups of nodes).
Methods
The paper’s "Aha!" moment comes from reinterpreting the classic Grimmett-McDiarmid greedy algorithm. Instead of seeing it as a failed search for the maximum clique, they view it as a near-uniform sampler.
They introduce Algorithm 1 (UNIF), which randomizes the greedy process. By picking the next vertex uniformly at random from the set of common neighbors, they prove that the algorithm samples cliques of size $\approx \log n$ almost perfectly uniformly.
Building on this, they develop a "Sampling-and-Extension" framework:
- Sample: Use UNIF to find a "base" clique of size $\approx \log n$.
- Extend: Look at the common neighbors of that base clique and try to find a few more vertices to add to it by picking them at random.
- Amplify: Repeat this process many times.
For quasi-cliques, they use a property called heredity: the fact that any large quasi-clique must contain smaller quasi-cliques. This allows them to build a deterministic algorithm that "grows" these structures level by level.
Datasets
Not discussed in the paper. As a theoretical work, the "datasets" are the mathematical models of Erdős-Rényi random graphs ($G(n, p)$ and $G(n, n, p)$).
Key Insights and Ideas
- Greedy is a Secret Sampler: The realization that the randomized greedy algorithm doesn't just find a clique, but samples from the space of all $\log n$-sized cliques nearly uniformly, is the engine of the paper.
- The Smooth Trade-off: Before this, algorithms for finding cliques larger than $\log n$ were often "all or nothing." This paper provides a sliding scale: if you want a clique that is $(1+\eta)$ times the greedy size, the time complexity scales smoothly with $\eta$.
- The Unbalanced Surprise: In "balanced" bicliques (where both sides are the same size), greedy algorithms are mediocre. But the authors found that as soon as the biclique becomes "unbalanced" (one side is much larger than the other), the simple greedy algorithm suddenly becomes near-optimal. In this regime, greedy isn't a weak heuristic; it's a superstar.
Key Results
- Faster Clique Finding: They provide an algorithm to find a clique of size $(1+\eta) \log n$ in time $n^{(\eta^2/2+o(1)) \log n}$. This is a significant improvement over the previous best-known time of $n^{(1/2+o(1)) \log n}$.
- Sampling to Finding: They prove that if you can solve "Karp’s clique sampling problem" (sampling $(1+\eta) \log n$ cliques in polynomial time), you can automatically find the maximum clique faster than the current state-of-the-art.
- Optimal Unbalanced Bicliques: For bicliques where one side $s$ is larger than $\log n$, they show a simple greedy algorithm finds a near-maximum biclique in linear time.
Limitations and Future Work
While the paper beats the previous speed records, the "Holy Grail"—finding a clique of size $(1+\eta) \log n$ in polynomial time—remains elusive. The authors' algorithms are still super-polynomial for any $\eta > 0$.
The authors also note that their quasi-clique enumeration is deterministic and efficient relative to the number of such cliques, but the total count of these structures can still be very large. Future work could involve finding ways to sample these quasi-structures more efficiently without enumerating them all.
Summary updated