A Fast Algorithm for Computing the Deficiency Number of a Mahjong Hand
Not on the map. Why?
Abstract (arXiv)
The tile-based multiplayer game Mahjong is widely played in Asia and has also become increasingly popular worldwide. Face-to-face or online, each player begins with a hand of 13 tiles and players draw and discard tiles in turn until they complete a winning hand. An important notion in Mahjong is the deficiency number (a.k.a. shanten number in Japanese Mahjong) of a hand, which estimates how many tile changes are necessary to complete the hand into a winning hand. The deficiency number plays an essential role in major decision-making tasks such as selecting a tile to discard. This paper proposes a fast algorithm for computing the deficiency number of a Mahjong hand. Compared with the baseline algorithm, the new algorithm is usually 100 times faster and, more importantly, respects the agent's knowledge about available tiles. The algorithm can be used as a basic procedure in all Mahjong variants by both rule-based and machine learning-based Mahjong AI.
Key facts. No citing papers in the map yet (data through 7 Oct 2026). Builds on 3 of its 17 references that are in the map. First posted on arXiv 15 Aug 2021.
Builds on
3 of 17 references.
References · 3
Built on by
Not cited yet.