Skip to search boxSkip to navigationSkip to main content

Snake in Optimal Space and Time.

  • Technical University of Denmark
    ,
  • New York University
Research Output:
Conference Article in Proceeding or Book/Report chapter
Article in proceedings
Peer-review

Open access

Publication Information

Output type

Research Output:
Conference Article in Proceeding or Book/Report chapter
Article in proceedings
Peer-review

Original language

Undefined/Unknown

Pages from-to (Number of pages)

Pages 3:1-3:15 (15 pages)

Publication milestones

  • Published - 2024

Publication status

Published - 2024

Volume

291

Publication IDs

  • Scopus: 85195373023

Host publication title

FUN

Abstract

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.

Related Event

Title

International Conference on Fun with Algorithms

Event type

Conference

Degree of recognition

International event

Date

04/06/2024 - 08/06/2024

Location

Island of La MaddalenaSardiniaItaly