License: Creative Commons Attribution 3.0 Unported license (CC BY 3.0)
When quoting this document, please refer to the following
DOI: 10.4230/LIPIcs.FUN.2018.21
URN: urn:nbn:de:0030-drops-88124
URL: http://dagstuhl.sunsite.rwth-aachen.de/volltexte/2018/8812/
Go to the corresponding LIPIcs Volume Portal


Eppstein, David

Making Change in 2048

pdf-format:
LIPIcs-FUN-2018-21.pdf (0.5 MB)


Abstract

The 2048 game involves tiles labeled with powers of two that can be merged to form bigger powers of two; variants of the same puzzle involve similar merges of other tile values. We analyze the maximum score achievable in these games by proving a min-max theorem equating this maximum score (in an abstract generalized variation of 2048 that allows all the moves of the original game) with the minimum value that causes a greedy change-making algorithm to use a given number of coins. A widely-followed strategy in 2048 maintains tiles that represent the move number in binary notation, and a similar strategy in the Fibonacci number variant of the game (987) maintains the Zeckendorf representation of the move number as a sum of the fewest possible Fibonacci numbers; our analysis shows that the ability to follow these strategies is intimately connected with the fact that greedy change-making is optimal for binary and Fibonacci coinage. For variants of 2048 using tile values for which greedy change-making is suboptimal, it is the greedy strategy, not the optimal representation as sums of tile values, that controls the length of the game. In particular, the game will always terminate whenever the sequence of allowable tile values has arbitrarily large gaps between consecutive values.

BibTeX - Entry

@InProceedings{eppstein:LIPIcs:2018:8812,
  author =	{David Eppstein},
  title =	{{Making Change in 2048}},
  booktitle =	{9th International Conference on Fun with Algorithms (FUN 2018)},
  pages =	{21:1--21:13},
  series =	{Leibniz International Proceedings in Informatics (LIPIcs)},
  ISBN =	{978-3-95977-067-5},
  ISSN =	{1868-8969},
  year =	{2018},
  volume =	{100},
  editor =	{Hiro Ito and Stefano Leonardi and Linda Pagli and Giuseppe Prencipe},
  publisher =	{Schloss Dagstuhl--Leibniz-Zentrum fuer Informatik},
  address =	{Dagstuhl, Germany},
  URL =		{http://drops.dagstuhl.de/opus/volltexte/2018/8812},
  URN =		{urn:nbn:de:0030-drops-88124},
  doi =		{10.4230/LIPIcs.FUN.2018.21},
  annote =	{Keywords: 2048, change-making problem, greedy algorithm, integer sequences, halting problem}
}

Keywords: 2048, change-making problem, greedy algorithm, integer sequences, halting problem
Collection: 9th International Conference on Fun with Algorithms (FUN 2018)
Issue Date: 2018
Date of publication: 04.06.2018


DROPS-Home | Fulltext Search | Imprint | Privacy Published by LZI