Efficient Algorithms for Battleship

04/15/2020
by   Loïc Crombez, et al.
0

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 ⊂ Z^2 which has been translated in the lattice Z^2. 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(loglog 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.

READ FULL TEXT

page 1

page 2

page 3

page 4

research
01/15/2019

Efficient Algorithms to Test Digital Convexity

A set S ⊂Z^d is digital convex if conv(S) ∩Z^d = S, where conv(S) denote...
research
03/17/2021

Theoretical bounds on data requirements for the ray-based classification

The problem of classifying high-dimensional shapes in real-world data gr...
research
09/30/2020

Between Shapes, Using the Hausdorff Distance

Given two shapes A and B in the plane with Hausdorff distance 1, is ther...
research
06/24/2020

Predicting First Passage Percolation Shapes Using Neural Networks

Many random growth models have the property that the set of discovered s...
research
03/16/2020

Complexity of Shapes Embedded in ℤ^n with a Bias Towards Squares

Shape complexity is a hard-to-quantify quality, mainly due to its relati...
research
11/15/2022

About the Reconstruction of Convex Lattice Sets from One or Two X-rays

We consider a class of problems of Discrete Tomography which has been de...
research
12/20/2019

An Efficient Algorithm for the Escherization Problem in the Polygon Representation

In the Escherization problem, given a closed figure in a plane, the obje...

Please sign up or login with your details

Forgot password? Click here to reset