Research Article

The recovery time complexity of a coin weighing algorithm

Hanxuan Wang*
Shanghai Shibei Senior High School

* Corresponding author: [email protected]

Abstract

Given n identical-looking coins each with possible weight in {0, 1}, and a scale that can measure the weight of any arbitrary set of coins, the coin weighing problem studies how to find out the weight of every coin with as few weighing as possible. The algorithm in Lindström takes O(n/logn) non-adaptive weighings to determine the coins, which gives an O(logn) factor improvement compared with the naïve algorithm that measures each coin on its own. However, it is unclear that with the O(n/logn) queries, how long it takes to retrieve x. This paper is about establishing and further optimizing the naïve recovery time complexity of Lindström ‘s algorithm. The recovery time complexity here is defined as the time complexity to recover x given Dx under the RAM model, where D∈{0,1}^(m×n),, each row being a weighing query, is the Lindström query matrix. The brute force recovery algorithm has running time O(m2n), whereas our algorithm only takes O(mn). Finally, we run experiments to verify our results with the actual running time of the algorithm on various size of inputs

Keywords: Group testing; Coin Weighing Problem; Quantitative Group Testing
Published: January 24, 2024
DOI: 10.54254/2753-8818/30/20241106
Volume: TNS Vol.30
pp. 195-204
Download PDF

References

  1. Lindström, B. (1971). On Möbius functions and a problem in combinatorial number theory. Canadian Mathematical Bulletin, 14(4):513-516.
  2. Cantor, D. G. and Mills, W. H. (1964). Determination of a subset from certain combinatorial properties.
  3. Bshouty, N. H. (2009). Optimal algorithms for the coin weighing problem with a spring scale. In COLT, volume 2009, page 82.
  4. Bose, R. C. and Ray-Chaudhuri, D. K. (1960). On A class of error correcting binary group codes. Inf. Control., 3(1):68-79.
  5. Gebhard, O., Hahn-Klimroth, M., Kaaser, D., and Loick, P. (2019). Quantitative group testing in the sublinear regime. CoRR, abs/1905.01458.
  6. Karimi, E., Kazemi, F., Heidarzadeh, A., Narayanan, K. R., and Sprintson, A. (2019).