# Runtime Analysis of Cartesian Genetic Programming on MAX: A Proven Exponential Speedup

*Duc-Cuong Dang, Roman Kalkreuth, Andre Opris*

[NeurIPS page](https://neurips.cc/virtual/2026/poster/155859) · [Open on the map](../papers.html#p155859)

Category: [Reinforcement Learning & Games](../pcat/10.md) › [Causal Attribution and Decision Making](../pgroup/174.md) · Type: theory · Keywords: genetic programming, graph-based representation, runtime analysis, MAX problem, evolutionary algorithms

## Summary
The paper proves that (1+1) Cartesian Genetic Programming achieves an exponential speedup on the MAX problem, with an expected runtime of O(log9 n) versus the superlinear runtime of tree-based GP.

## Explained to a 5-year-old
People created a computer program that tries many ideas to solve a puzzle. They used a special way to draw the program that looks like a network. They proved that this new way finds the best answer much faster than the old way. This shows that drawing programs differently can make solving problems easier. It helps us understand how to make computers smarter.

## Explained to a 5-year-old, longer
A group of researchers wanted to know how well a new kind of computer program could solve a difficult puzzle. They looked at a method that builds programs using a network of connections instead of a tree shape. By studying this method, they showed mathematically that it can find the perfect solution very quickly, much faster than the older method. Their proof gives confidence that the new representation is more efficient. They also ran small experiments that matched the theory. This work tells us that changing how we represent programs can lead to big speed gains. It opens the door to using similar network-based designs in other areas of computer science.

## For a technical reader
The paper provides a theoretical analysis of a (1+1) evolutionary algorithm that uses graph-based program representations (CGP) to solve a benchmark optimization problem. It proves that the expected runtime scales as O(log9 n), which is exponentially faster than the known superlinear runtime of tree-based genetic programming. This guarantee is the first of its kind for CGP and validates the efficiency of its compact representation. The authors also run experiments that confirm the theoretical bounds on small instances. The work highlights how a simple mutation operator can effectively explore the search space when programs are encoded as graphs.

## Problem
Evolving optimal solutions for a benchmark optimization problem using evolutionary algorithms is known to have superlinear runtime for tree-based representations, but the performance of graph-based representations remains theoretically uncharacterized.

## Method
The authors analyze a (1+1) evolutionary algorithm that uses graph-based program representations and standard mutation operators, deriving an O(log9 n) upper bound on its expected runtime.

## Results
The theoretical analysis shows the expected runtime is O(log9 n), an exponential improvement over the superlinear runtime of tree-based approaches.

## Contributions
Provides the first provable runtime guarantee for graph-based genetic programming on a benchmark optimization problem, demonstrating exponential speedup over tree-based methods.

## Research questions this paper is counted under

- [How does algorithmic complexity affect the performance of evolutionary optimization methods?](../q/758.md)

This page was written by language models from the title and abstract of each paper, and the answers were checked by two other models. It can be wrong: check the paper itself. [Suggest a correction](../feedback/?on=p/155859)
