Tetris is hard, even to approximate

Ron Breukelaar, E. Demaine, S. Hohenberger, H. J. Hoogeboom, W. Kosters, D. Liben-Nowell
{"title":"Tetris is hard, even to approximate","authors":"Ron Breukelaar, E. Demaine, S. Hohenberger, H. J. Hoogeboom, W. Kosters, D. Liben-Nowell","doi":"10.1142/S0218195904001354","DOIUrl":null,"url":null,"abstract":"In the popular computer game of Tetris, the player is given a sequence of tetromino pieces and must pack them into a rectangular gameboard initially occupied by a given configuration of filled squares; any completely filled row of the gameboard is cleared and all pieces above it drop by one row. We prove that in the offline version of Tetris, it is NP-complete to maximize the number of cleared rows, maximize the number of tetrises (quadruples of rows simultaneously filled and cleared), minimize the maximum height of an occupied square, or maximize the number of pieces placed before the game ends. We furthermore show the extreme inapproximability of the first and last of these objectives to within a factor of p1-Ɛ, when given a sequence of p pieces, and the inapproximability of the third objective to within a factor of 2-Ɛ, for any Ɛ > 0. Our results hold under several variations on the rules of Tetris, including different models of rotation, limitations on player agility, and restricted piecesets.","PeriodicalId":285210,"journal":{"name":"International Journal of Computational Geometry and Applications","volume":"24 1","pages":"0"},"PeriodicalIF":0.0000,"publicationDate":"2002-10-21","publicationTypes":"Journal Article","fieldsOfStudy":null,"isOpenAccess":false,"openAccessPdf":"","citationCount":"203","resultStr":null,"platform":"Semanticscholar","paperid":null,"PeriodicalName":"International Journal of Computational Geometry and Applications","FirstCategoryId":"1085","ListUrlMain":"https://doi.org/10.1142/S0218195904001354","RegionNum":0,"RegionCategory":null,"ArticlePicture":[],"TitleCN":null,"AbstractTextCN":null,"PMCID":null,"EPubDate":"","PubModel":"","JCR":"","JCRName":"","Score":null,"Total":0}
引用次数: 203

Abstract

In the popular computer game of Tetris, the player is given a sequence of tetromino pieces and must pack them into a rectangular gameboard initially occupied by a given configuration of filled squares; any completely filled row of the gameboard is cleared and all pieces above it drop by one row. We prove that in the offline version of Tetris, it is NP-complete to maximize the number of cleared rows, maximize the number of tetrises (quadruples of rows simultaneously filled and cleared), minimize the maximum height of an occupied square, or maximize the number of pieces placed before the game ends. We furthermore show the extreme inapproximability of the first and last of these objectives to within a factor of p1-Ɛ, when given a sequence of p pieces, and the inapproximability of the third objective to within a factor of 2-Ɛ, for any Ɛ > 0. Our results hold under several variations on the rules of Tetris, including different models of rotation, limitations on player agility, and restricted piecesets.
俄罗斯方块很难,甚至很难近似
在流行的电脑游戏《俄罗斯方块》中,玩家将获得一系列方块,并必须将其打包到一个矩形游戏棋盘中;棋盘上任何完全填满的行都会被清除,其上的所有棋子都会下降一行。我们证明了在离线版本的俄罗斯方块中,最大化清除行数,最大化方块数(同时填充和清除的行数的四倍),最小化被占用方块的最大高度,或最大化游戏结束前放置的棋子数量是np完全的。我们进一步表明,当给定p个片段的序列时,这些目标的第一个和最后一个在因子p1-Ɛ内的极端不逼近性,以及第三个目标在因子2-Ɛ内的不逼近性,对于任何Ɛ > 0。我们的研究结果适用于《俄罗斯方块》规则的几种变体,包括不同的旋转模式、对玩家敏捷性的限制和受限的组件。
本文章由计算机程序翻译,如有差异,请以英文原文为准。
求助全文
约1分钟内获得全文 求助全文
来源期刊
自引率
0.00%
发文量
0
×
引用
GB/T 7714-2015
复制
MLA
复制
APA
复制
导出至
BibTeX EndNote RefMan NoteFirst NoteExpress
×
提示
您的信息不完整,为了账户安全,请先补充。
现在去补充
×
提示
您因"违规操作"
具体请查看互助需知
我知道了
×
提示
确定
请完成安全验证×
copy
已复制链接
快去分享给好友吧!
我知道了
右上角分享
点击右上角分享
0
联系我们:info@booksci.cn Book学术提供免费学术资源搜索服务,方便国内外学者检索中英文文献。致力于提供最便捷和优质的服务体验。 Copyright © 2023 布克学术 All rights reserved.
京ICP备2023020795号-1
ghs 京公网安备 11010802042870号
Book学术文献互助
Book学术文献互助群
群 号:481959085
Book学术官方微信