,
Takehiro Ito
,
Jun Kawahara
,
Shin-ichi Minato
,
Akira Suzuki
,
Ryuhei Uehara
,
Yutaro Yamaguchi
Creative Commons Attribution 4.0 International license
Swish is a card game in which players are given cards having symbols (hoops and balls), and find a valid superposition of cards, called a "swish." Dailly, Lafourcade, and Marcadet (FUN 2024) studied a generalized version of Swish and showed that the problem is solvable in polynomial time with one symbol per card, while it is NP-complete with three or more symbols per card. In this paper, we resolve the previously open case of two symbols per card, which corresponds to the original game. We show that Swish is NP-complete for this case. Specifically, we prove the NP-hardness when the allowed transformations of cards are restricted to a single (horizontal or vertical) flip or 180-degree rotation, and extend the results to the original setting allowing all three transformations. In contrast, when neither transformation is allowed, we present a polynomial-time algorithm. Combining known and our results, we establish a complete characterization of the computational complexity of Swish with respect to both the number of symbols per card and the allowed transformations.
@InProceedings{horiyama_et_al:LIPIcs.FUN.2026.25,
author = {Horiyama, Takashi and Ito, Takehiro and Kawahara, Jun and Minato, Shin-ichi and Suzuki, Akira and Uehara, Ryuhei and Yamaguchi, Yutaro},
title = {{Computational Complexity of Swish Is Solved}},
booktitle = {13th International Conference on Fun with Algorithms (FUN 2026)},
pages = {25:1--25:12},
series = {Leibniz International Proceedings in Informatics (LIPIcs)},
ISBN = {978-3-95977-417-8},
ISSN = {1868-8969},
year = {2026},
volume = {366},
editor = {Iacono, John},
publisher = {Schloss Dagstuhl -- Leibniz-Zentrum f{\"u}r Informatik},
address = {Dagstuhl, Germany},
URL = {https://drops.dagstuhl.de/entities/document/10.4230/LIPIcs.FUN.2026.25},
URN = {urn:nbn:de:0030-drops-257448},
doi = {10.4230/LIPIcs.FUN.2026.25},
annote = {Keywords: Swish, Computational complexity, Matching, Parity-constrained cycles}
}