Back to Search Start Over

Sorting Balls and Water: Equivalence and Computational Complexity

Authors :
Takehiro Ito and Jun Kawahara and Shin-ichi Minato and Yota Otachi and Toshiki Saitoh and Akira Suzuki and Ryuhei Uehara and Takeaki Uno and Katsuhisa Yamanaka and Ryo Yoshinaka
Ito, Takehiro
Kawahara, Jun
Minato, Shin-ichi
Otachi, Yota
Saitoh, Toshiki
Suzuki, Akira
Uehara, Ryuhei
Uno, Takeaki
Yamanaka, Katsuhisa
Yoshinaka, Ryo
Takehiro Ito and Jun Kawahara and Shin-ichi Minato and Yota Otachi and Toshiki Saitoh and Akira Suzuki and Ryuhei Uehara and Takeaki Uno and Katsuhisa Yamanaka and Ryo Yoshinaka
Ito, Takehiro
Kawahara, Jun
Minato, Shin-ichi
Otachi, Yota
Saitoh, Toshiki
Suzuki, Akira
Uehara, Ryuhei
Uno, Takeaki
Yamanaka, Katsuhisa
Yoshinaka, Ryo
Publication Year :
2022

Abstract

Various forms of sorting problems have been studied over the years. Recently, two kinds of sorting puzzle apps are popularized. In these puzzles, we are given a set of bins filled with colored units, balls or water, and some empty bins. These puzzles allow us to move colored units from a bin to another when the colors involved match in some way or the target bin is empty. The goal of these puzzles is to sort all the color units in order. We investigate computational complexities of these puzzles. We first show that these two puzzles are essentially the same from the viewpoint of solvability. That is, an instance is sortable by ball-moves if and only if it is sortable by water-moves. We also show that every yes-instance has a solution of polynomial length, which implies that these puzzles belong to NP . We then show that these puzzles are NP-complete. For some special cases, we give polynomial-time algorithms. We finally consider the number of empty bins sufficient for making all instances solvable and give non-trivial upper and lower bounds in terms of the number of filled bins and the capacity of bins.

Details

Database :
OAIster
Notes :
application/pdf, English
Publication Type :
Electronic Resource
Accession number :
edsoai.on1358731005
Document Type :
Electronic Resource
Full Text :
https://doi.org/10.4230.LIPIcs.FUN.2022.16