### Abstract

In the classical whack-a-mole game moles that pop up at certain locations must be whacked by means of a hammer before they go under ground again. The goal is to maximize the number of moles whacked. This problem can be formulated as an online optimization problem: requests (moles) appear over time at points in a metric space and must be served (whacked) by a server (hammer) before their deadlines (i.e., before they disappear). An online algorithm learns each request only at its release time and must base its decisions on incomplete information. We study the online whack-a-mole problem (wham) on the real line and on the uniform metric space. While on the line no deterministic algorithm can achieve a constant competitive ratio, we provide competitive algorithms for the uniform metric space. Our online investigations are complemented by complexity results for the offline problem.

Original language | English |
---|---|

Pages (from-to) | 329-341 |

Journal | Theoretical Computer Science |

Volume | 361 |

Issue number | 2-3 |

DOIs | |

Publication status | Published - 1 Jan 2006 |

## Cite this

Gutierrez, S., Krumke, S. O., Megow, N., & Vredeveld, T. (2006). How to whack moles.

*Theoretical Computer Science*,*361*(2-3), 329-341. https://doi.org/10.1016/j.tcs.2006.05.017