假币最少称量次数问题我要分享

The minimum weighing times of counterfeit currency

关注次数: 179

下载次数: 0

文件大小: 1.51 kB

代码分类: 其他

开发平台: matlab

下载需要积分: 2积分

版权声明:如果侵犯了您的权益请与我们联系,我们将在24小时内删除。

代码描述

中文说明:经典的假币称量问题的解决方案,可以对任意数目的硬币含有一枚假币的问题进行自动划分称量方案并给出称量次数以及结果。对需要和不需要知道假币与真币轻重两种情况都可以给出最优解。


English Description:

The classic solution to the problem of counterfeit currency weighing can automatically divide the problem of any number of coins containing a counterfeit currency, and give the weighing times and results. The optimal solution can be given for both cases that need or do not need to know the weight of counterfeit money and real money.


代码预览

相关推荐