A Hierarchical Branch and Bound Algorithm for Mahjong Deficiency

Xueqing Yan,Yongming Li
DOI: https://doi.org/10.1007/s00500-023-09437-6
IF: 3.732
2024-01-01
Soft Computing
Abstract:As a testbed for the development of artificial intelligence (AI) techniques, Mahjong has become a hot spot in computer game research due its characteristics of imperfect information. An important aspect of the game is the evaluation of the quality of a hand, which significantly influences the decision-making process for players, including discarding tiles, pong, kong, and so on. In this paper, an effective and efficient algorithm is proposed to measure the quality (i.e., deficiency) of a Mahjong hand by introducing a hierarchical branch and bound method. In the proposed approach, an updating knowledge-based octree search method is first developed to explore all possible quasi-decompositions for one hand to ensure the correctness of the result. Meanwhile, an updated knowledge-based evaluation method is designed to calculate the cost of each quasi-decomposition, and a hierarchical branch and bound method is presented to accelerate the efficiency of getting its deficiency by layering the quasi-decompositions according to the number of their tiles. Moreover, the block decomposition is further adopted in the process of finding all quasi-decompositions to enhance its efficiency. Compared to existing methods, the proposed algorithm not only demonstrates computational efficiency but also provides the exact deficiency in all cases. Experimental results on different types of hands show its effectiveness and efficiency.
What problem does this paper attempt to address?