[新手上路]批处理新手入门导读[视频教程]批处理基础视频教程[视频教程]VBS基础视频教程[批处理精品]批处理版照片整理器
[批处理精品]纯批处理备份&还原驱动[批处理精品]CMD命令50条不能说的秘密[在线下载]第三方命令行工具[在线帮助]VBScript / JScript 在线参考
返回列表 发帖
本帖最后由 avgBullsCows 于 2017-7-29 10:33 编辑

我想试试这棵树

http://slovesnov.users.sourceforge.net/index.php?bullscows_tree,english,avgBullsCows

这棵树的生成脚本

http://slovesnov.users.sourceforge.net/scripts/bullscows.js
  1. 整个脚本文件 1000+ 行, 就不贴了
复制代码
1

评分人数

TOP

回复 74# 523066680
  1. An secret number for bulls-cows game can be four-place decimal with different
  2. digits from 0 to 9. Total amount of secret numbers is 10!/6! = 5040. For
  3. mastermind secret number is four-place digital with digits from 0 to 5. Digits
  4. can repeat. So total amount of secret numbers is 6^4 = 1296. In common case
  5. such games have three parameters - number of positions, number of different
  6. digits and repeatability (1 - yes, 0 -no). From this point of view bulls-cows game
  7. has parameters (4, 10, 0), mastermind has parameters (4, 6, 1). Optimization
  8. of two game types has two directions.
复制代码
我的理解是 bulls-cows 游戏是 参数描述(4, 10, 0) 4个位置, 10个符号, 符号不可重复
mastermind 参数描述(4, 6, 1) 4个位置, 6个符号, 符号可重复

不论哪种游戏, 算法优化有两个目标方向
  1. The goal is to find algorithm which minimizes amount of secret numbers which algorithm can guess ...
复制代码
crush 算法的优化目标, 搜索树空间回合总数最小化
  1. The second criterion is minimize average amount of turns for guess arbitrary secret number - minimal average game length
复制代码
avg 算法的优化目标, 平均搜索回合数(平均游戏长度)最小化
1

评分人数

    • 523066680: 感谢你提供的搜索树,帮大忙了PB + 12

TOP

返回列表