Snake in Optimal Space and Time.
- Philip Bille,
- Martín Farach-Colton,
- Inge Li Gørtz,
- Technical University of Denmark,
- New York University
Research Output:
Conference Article in Proceeding or Book/Report chapter
Article in proceedings
Peer-reviewOpen access
Publication Information
Output type
Research Output:
Conference Article in Proceeding or Book/Report chapter
Article in proceedings
Peer-reviewOriginal language
Undefined/UnknownPages from-to (Number of pages)
Pages 3:1-3:15 (15 pages)Publication milestones
- Published - 2024
Publication status
Published - 2024
Volume
291Publication IDs
- Scopus: 85195373023
Host publication title
FUNAbstract
We revisit the classic game of Snake and ask the basic data structural question: how many bits does it take to represent the state of a snake game so that it can be updated in constant time? Our main result is a data structure that uses optimal space (within constant factors). To achieve our results, we introduce several interesting data structural techniques, including a decomposition technique for the problem, a tabulation scheme for encoding small subproblems, and a dynamic memory allocation scheme.
Access to documents
Related Event
Title
International Conference on Fun with Algorithms
Event type
ConferenceDegree of recognition
International eventDate
04/06/2024 - 08/06/2024Location
Island of La MaddalenaSardiniaItaly
