There was a mix-up in Escher’s bar and n customers sitting at the same table have each received a beer ordered by somebody else in the party. The drinks can be rearranged by swapping them in pairs, but the eccentric table shape only allows drinks to be exchanged between people sitting on opposite sides of the table. We study the problem of finding the minimum number of swaps needed so that each customer receives its desired beer before it gets warm. Formally, we consider the Colored Token Swapping problem on complete bipartite graphs. This problem is known to be solvable in polynomial time when all ordered drinks are different [Yamanaka et al., FUN 2014], but no results are known for the more general case in which multiple people in the party can order the same beer. We prove that Colored Token Swapping on complete bipartite graphs is NP-hard and that it is fixed-parameter tractable when parameterized by the number of distinct types of beer served by the bar.

Bilò, D., Fiusco, M., Guala', L., Leucci, S. (2024). Swapping mixed-up beers to keep them cool. In 12th International Conference on Fun with Algorithms (FUN 2024). Wadern : Schloss Dagstuhl, Leibniz-Zentrum für Informatik [10.4230/lipics.fun.2024.5].

Swapping mixed-up beers to keep them cool

Luciano Guala';
2024-01-01

Abstract

There was a mix-up in Escher’s bar and n customers sitting at the same table have each received a beer ordered by somebody else in the party. The drinks can be rearranged by swapping them in pairs, but the eccentric table shape only allows drinks to be exchanged between people sitting on opposite sides of the table. We study the problem of finding the minimum number of swaps needed so that each customer receives its desired beer before it gets warm. Formally, we consider the Colored Token Swapping problem on complete bipartite graphs. This problem is known to be solvable in polynomial time when all ordered drinks are different [Yamanaka et al., FUN 2014], but no results are known for the more general case in which multiple people in the party can order the same beer. We prove that Colored Token Swapping on complete bipartite graphs is NP-hard and that it is fixed-parameter tractable when parameterized by the number of distinct types of beer served by the bar.
12th International Conference on Fun with Algorithms (FUN2024)
Island of La Maddalena, Sardinia, Italy
2024
12
Rilevanza internazionale
2024
Settore INFO-01/A - Informatica
English
Colored Token Swapping
Complete Bipartite Graphs
FPT Algorithms
Labeled Token Swapping
NP-Hardness
Intervento a convegno
Bilò, D., Fiusco, M., Guala', L., Leucci, S. (2024). Swapping mixed-up beers to keep them cool. In 12th International Conference on Fun with Algorithms (FUN 2024). Wadern : Schloss Dagstuhl, Leibniz-Zentrum für Informatik [10.4230/lipics.fun.2024.5].
Bilò, D; Fiusco, M; Guala', L; Leucci, S
File in questo prodotto:
File Dimensione Formato  
LIPIcs.FUN.2024.5_swapping_beers.pdf

accesso aperto

Tipologia: Versione Editoriale (PDF)
Licenza: Creative commons
Dimensione 1.12 MB
Formato Adobe PDF
1.12 MB Adobe PDF Visualizza/Apri

I documenti in IRIS sono protetti da copyright e tutti i diritti sono riservati, salvo diversa indicazione.

Utilizza questo identificativo per citare o creare un link a questo documento: https://hdl.handle.net/2108/393724
Citazioni
  • ???jsp.display-item.citation.pmc??? ND
  • Scopus 0
  • ???jsp.display-item.citation.isi??? ND
social impact