Sorting Colored Balls in Colored Tubes

We consider a game that was played in a German television show that is similar to the sorting balls puzzle. In it, we are assumed to move one colored ball after another in a set of colored tubes so that in the end, each ball is in the tube of its color. We are allowed to use one additional (uncolored) tube. We show general properties for solvability and that the problem of minimizing the number of moves is NP-hard, which is done by a reduction from the Feedback Arc Set Problem. Furthermore, we give an implementation of an algorithm to compute such a minimal sequence of moves. The algorithm is based on breadth-first search and accelerated by a lower bound on the number of moves from the current configuration to the final one that is obtained by solving a small instance of the Feedback Arc Set Problem. Our experiments show that instances with 7 colored tubes of height 4 can be solved in a reasonable amount of time and that the number of tubes is much more critical for the running time than the heights of the tubes.

Authors

Institutions

Publication Details

Journal
Proceedings of the International Symposium on Combinatorial Search
Published
2025-07-19
DOI
https://doi.org/10.1609/socs.v18i1.35971
Primary Topic
Artificial Intelligence in Games
Type
article
Field-Weighted Citation Impact
0.00
Controls
|||
ALL TIME
JAN
FEB
MAR
APR
MAY
JUN
JUL
AUG
SEP
OCT
article

Sorting Colored Balls in Colored Tubes

Felix Schuhknecht, Markus Blumenstock, Ernst Althaus, Nick Johannes Peter Rassau et al.
Proceedings of the International Symposium on Combinatorial Search
Artificial Intelligence in Games
article

Sorting Colored Balls in Colored Tubes

Felix Schuhknecht, Markus Blumenstock, Ernst Althaus, Nick Johannes Peter Rassau, Anton Quentin Zimdars
article en

Abstract

We consider a game that was played in a German television show that is similar to the sorting balls puzzle. In it, we are assumed to move one colored ball after another in a set of colored tubes so that in the end, each ball is in the tube of its color. We are allowed to use one additional (uncolored) tube. We show general properties for solvability and that the problem of minimizing the number of moves is NP-hard, which is done by a reduction from the Feedback Arc Set Problem. Furthermore, we give an implementation of an algorithm to compute such a minimal sequence of moves. The algorithm is based on breadth-first search and accelerated by a lower bound on the number of moves from the current configuration to the final one that is obtained by solving a small instance of the Feedback Arc Set Problem. Our experiments show that instances with 7 colored tubes of height 4 can be solved in a reasonable amount of time and that the number of tubes is much more critical for the running time than the heights of the tubes.

Proceedings of the International Symposium on Combinatorial SearchVol. 18
Johannes Gutenberg University Mainz (DE)
Openalex Percentile: Top 91%
Artificial Intelligence in Games
AI Navigator

Ask Laika to Summarize, Analyze, and Connect papers live on the map.

Summarize Papers & Methodologies

Extract key findings, datasets, and comparative methods across publications.

Benchmark Rankings & Visual Analytics

Rank top research institutions, authors, funders, topics, and journals by Field-Weighted Citation Impact (FWCI) and paper volume with instant charts.

Connect Distant Disciplines

Bridge topological clusters on the map to find hidden collaborative intersections.

Sorting Colored Balls in Colored Tubes — Felix Schuhknecht, Markus Blumenstock, et al. · Proceedings of the International Symposium on Combinatorial Search (2025) | TGRS Research Map | TGRS