Searching for Primes: A Neural AlphaZero Approach to a Factoring Game
Abstract
We study a one-player token game on an board where tokens slide along diagonals or duplicate onto neighbouring ones to form a combinatorial rectangle . A conserved integer weight W' and a strict monovariant guarantee -length solutions, placing the game in . We prove that reaching a final position factors this -bit W' into two -bit factors that encode the rectangle's rows and columns. Consequently, solving the game for a balanced-semiprime target is equivalent to integer factoring. However, if the target rectangle is known, the solution reduces to two polynomial-time steps: a forced downward chip-flow and a -polynomial factorisation leveraging Cohn's theorem. The game's entire difficulty is thus isolated to the initial number-theoretic split. Supplying the popcounts of the factors as a promise preserves this asymptotic hardness but bounds the target search space. We exploit this constrained space using a learned policy/value network and an AlphaZero-style Monte-Carlo tree search, empirically probing the limits of neural look-ahead on a factoring-equivalent environment.
Create a lesson
Metadata
- Categories
- math.OC, cs.CR
Related papers
COHATO is not optimal for symmetric rendezvous search on the circle
Shared title terminologymath.OCDonglei Du
Risk-Sensitive Asset Management with an Alpha-CIR Factor Model,
Shared title terminologymath.OCAbdellatif Mariem, Jin Peng, Rüdiger Barbara et al.
Threshold clique search within GRASP and VNS for the conditional p-dispersion problem
Shared title terminologymath.OCLuka Milić, Dragan Urošević
Simplified Equivalence of Linear Programming and Zero-Sum Games
Shared title terminologymath.OCIlan Adler, Bernhard von Stengel
Nash Bounds for Entropy-Regularized Linear-Quadratic Games with Continuous Types
Shared title terminologymath.OCJisheng Liu
A Constant-Factor Approximation for Economic Lot Scheduling
Shared title terminologymath.OCDanny Segev