Frontiers in Artificial Intelligence

Three methods, one problem: classical and AI approaches to no-three-in-line

Pranav Ramanathan, Thomas Prellberg, Matthew James Lewis, Christian Beck, Prathamesh Dinesh Joshi, Raj Abhijit Dandekar, Rajat Dandekar, Sreedath Panat

Key points

From the paper's conclusion
  • Background The No-Three-In-Line problem asks for the maximum number of points that can be placed on an n × n grid with no three collinear, representing a famous problem in combinatorial geometry.

Abstract

Background The No-Three-In-Line problem asks for the maximum number of points that can be placed on an n × n grid with no three collinear, representing a famous problem in combinatorial geometry. Methods We compare three approaches: (i) integer linear programming (ILP) using Gurobi, (ii) transformer-based pattern learning via PatternBoost, and (iii) reinforcement learning using proximal policy optimization (PPO). Results ILP achieves provably optimal solutions up to 19 × 19 grids. PatternBoost matches optimal performance up to 14 × 14 grids, and finds 29 points on 15 × 15 grids (optimal is 30). PPO achieves perfect solutions on 10 × 10 grids but fails at 11 × 11 grids due to constraint violations. Across four fixed-timeout runs, ILP was reliable through n = 17, PatternBoost through n = 12, and PPO succeeded only once at n = 10. Conclusions Classical optimization remains essential for exact solutions, while AI methods offer competitive performance on smaller instances. Hybrid approaches combining solvers with learned heuristics appear most promising for scaling to larger grids.

Read the paper

Discussion

Science Skim's AI key points, plus readers' public thoughts

Readers' thoughts

No reader thoughts yet.

Related papers