Papers
Topics
Authors
Recent
Gemini 2.5 Flash
Gemini 2.5 Flash
119 tokens/sec
GPT-4o
56 tokens/sec
Gemini 2.5 Pro Pro
43 tokens/sec
o3 Pro
6 tokens/sec
GPT-4.1 Pro
47 tokens/sec
DeepSeek R1 via Azure Pro
28 tokens/sec
2000 character limit reached

Sorting Balls and Water: Equivalence and Computational Complexity (2202.09495v1)

Published 19 Feb 2022 in cs.CC and cs.DS

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

User Edit Pencil Streamline Icon: https://streamlinehq.com
Authors (10)
  1. Takehiro Ito (36 papers)
  2. Jun Kawahara (15 papers)
  3. Shin-ichi Minato (12 papers)
  4. Yota Otachi (59 papers)
  5. Toshiki Saitoh (11 papers)
  6. Akira Suzuki (29 papers)
  7. Ryuhei Uehara (31 papers)
  8. Takeaki Uno (32 papers)
  9. Katsuhisa Yamanaka (6 papers)
  10. Ryo Yoshinaka (28 papers)
Citations (1)

Summary

We haven't generated a summary for this paper yet.