Skip to main navigation Skip to search Skip to main content

Snake in Optimal Space and Time.

Research output: Conference Article in Proceeding or Book/Report chapterArticle in proceedingsResearchpeer-review

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.
Original languageUndefined/Unknown
Title of host publicationFUN
Number of pages15
Volume291
Publication date2024
Pages3:1-3:15
DOIs
Publication statusPublished - 2024
Externally publishedYes
EventInternational Conference on Fun with Algorithms - Island of La Maddalena, Sardinia, Italy
Duration: 4 Jun 20248 Jun 2024
Conference number: 12
https://sites.google.com/unipi.it/fun2024

Conference

ConferenceInternational Conference on Fun with Algorithms
Number12
LocationIsland of La Maddalena
Country/TerritoryItaly
CitySardinia
Period04/06/202408/06/2024
Internet address

Keywords

  • Data structure
  • Nokia
  • Snake
  • String algorithms

Cite this