Sorting Balls and Water: Equivalence and Computational Complexity

02/19/2022
by   Takehiro Ito, et al.
0

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 in 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.

READ FULL TEXT

page 1

page 2

page 5

page 7

page 9

page 12

page 15

page 17

research
11/02/2020

Gourds: a sliding-block puzzle with turning

We propose a new kind of sliding-block puzzle, called Gourds, where the ...
research
08/30/2022

Sorting Genomes by Prefix Double-Cut-and-Joins

In this paper, we study the problem of sorting unichromosomal linear gen...
research
03/09/2018

Computational Complexity of Generalized Push Fight

We analyze the computational complexity of optimally playing the two-pla...
research
09/17/2020

Sparsification Lower Bounds for List H-Coloring

We investigate the List H-Coloring problem, the generalization of graph ...
research
12/27/2017

On efficiently solvable cases of Quantum k-SAT

The constraint satisfaction problems k-SAT and Quantum k-SAT (k-QSAT) ar...
research
07/16/2023

On the Hardness of PosSLP

The problem PosSLP involves determining whether an integer computed by a...
research
11/30/2020

The Variable-Processor Cup Game

The problem of scheduling tasks on p processors so that no task ever get...

Please sign up or login with your details

Forgot password? Click here to reset