首页    期刊浏览 2024年12月01日 星期日
登录注册

文章基本信息

  • 标题:Efficient Algorithms for Battleship
  • 本地全文:下载
  • 作者:Lo{"{i}}c Crombez ; Guilherme D. da Fonseca ; Yan Gerard
  • 期刊名称:LIPIcs : Leibniz International Proceedings in Informatics
  • 电子版ISSN:1868-8969
  • 出版年度:2020
  • 卷号:157
  • 页码:11:1-11:15
  • DOI:10.4230/LIPIcs.FUN.2021.11
  • 出版社:Schloss Dagstuhl -- Leibniz-Zentrum fuer Informatik
  • 摘要:We consider an algorithmic problem inspired by the Battleship game. In the variant of the problem that we investigate, there is a unique ship of shape S âS, â"¤Â² which has been translated in the lattice â"¤Â². We assume that a player has already hit the ship with a first shot and the goal is to sink the ship using as few shots as possible, that is, by minimizing the number of missed shots. While the player knows the shape S, which position of S has been hit is not known. Given a shape S of n lattice points, the minimum number of misses that can be achieved in the worst case by any algorithm is called the Battleship complexity of the shape S and denoted c(S). We prove three bounds on c(S), each considering a different class of shapes. First, we have c(S) ≤ n-1 for arbitrary shapes and the bound is tight for parallelogram-free shapes. Second, we provide an algorithm that shows that c(S) = O(log n) if S is an HV-convex polyomino. Third, we provide an algorithm that shows that c(S) = O(log log n) if S is a digital convex set. This last result is obtained through a novel discrete version of the Blaschke-Lebesgue inequality relating the area and the width of any convex body.
  • 关键词:Polyomino; digital geometry; decision tree; lattice; HV-convexity; convexity
国家哲学社会科学文献中心版权所有