Snake in Optimal Space and Time.

Publikation: Konference artikel i Proceeding eller bog/rapport kapitelKonferencebidrag i proceedingsForskningpeer 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.
OriginalsprogUdefineret/Ukendt
TitelFUN
Antal sider15
Vol/bind291
Publikationsdato2024
Sider3:1-3:15
DOI
StatusUdgivet - 2024
Udgivet eksterntJa

Citationsformater