arrow
Return

A linear-time algorithm for the two-color one-dimensional buttons & scissors

delete2026-01-01
delete0
PRE
AI
H
Hayata, Suguru
I
Ito, Hiro *
DOI:10.1016/j.ipl.2026.106622delete
deleteOriginal
deleteOriginal request for help
deleteShare
deleteSave
Abstract

Abstract

En 中文
The problem of determining whether a given board of the puzzle Buttons & Scissors is solvable is known to be NP-complete. On the other hand, when the board is restricted to one dimension, it is known to be solvable in O(n(3))-time for a board of size (length) n. This also holds when the button colors are limited to two colors. We provide a simple linear-time algorithm to determine whether an input of the Two-Color One-Dimensional Buttons & Scissors problem is solvable. The algorithm uses a necessary and sufficient condition after applying a linear-time preprocessing.
Keywords:
Buttons & scissors
Puzzle
Linear-time algorithm
Necessary and sufficient condition
Run-length encoding

Journal

I
Information Processing Letters
IF:
0.6
Papers:
17
Citations:
3.4K

Organization

U
university of electro-communications - japan
Scholars:
2.6K
Papers: 2.5K
Citations: 2
Cited Papers

Cited Papers