Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Features
Speaker Deck
PRO
Sign in
Sign up for free
Search
Search
Entropy Evaluation method for Bulls and Cows game
Search
Hongyi Shen
October 17, 2014
Programming
1
320
Entropy Evaluation method for Bulls and Cows game
AI midterm presentation
Hongyi Shen
October 17, 2014
Tweet
Share
More Decks by Hongyi Shen
See All by Hongyi Shen
How Rsync works
wilbeibi
1
280
Are Bookstores Dying?
wilbeibi
0
76
A Little SVM ( Simple Chinese)
wilbeibi
0
130
Other Decks in Programming
See All in Programming
AIとペアプロして処理時間を97%削減した話 #pyconshizu
kashewnuts
1
240
AIコードレビューの導入・運用と AI駆動開発における「AI4QA」の取り組みについて
hagevvashi
0
470
Understanding Apache Lucene - More than just full-text search
spinscale
0
120
go directiveを最新にしすぎないで欲しい話──あるいは、Go 1.26からgo mod initで作られるgo directiveの値が変わる話 / Go 1.26 リリースパーティ
arthur1
2
550
Agentic AI: Evolution oder Revolution
mobilelarson
PRO
0
170
Cyrius ーLinux非依存にコンテナをネイティブ実行する専用OSー
n4mlz
0
150
AWS Infrastructure as Code の新機能 2025 総まとめ 〜SA 4人による怒涛のデモ祭り〜
konokenj
10
3.4k
「抽象に依存せよ」が分からなかった新卒1年目の私が Goのインターフェースと和解するまで
kurogenki
0
120
野球解説AI Agentを開発してみた - 2026/02/27 LayerX社内LT会資料
shinyorke
PRO
0
290
S3ストレージクラスの「見える」「ある」「使える」は全部違う ─ 体験から見た、仕様の深淵を覗く
ya_ma23
0
510
AI駆動開発の本音 〜Claude Code並列開発で見えたエンジニアの新しい役割〜
hisuzuya
4
510
TipKitTips
ktcryomm
0
170
Featured
See All Featured
Why Your Marketing Sucks and What You Can Do About It - Sophie Logan
marketingsoph
0
110
Technical Leadership for Architectural Decision Making
baasie
3
290
Leading Effective Engineering Teams in the AI Era
addyosmani
9
1.7k
Save Time (by Creating Custom Rails Generators)
garrettdimon
PRO
32
2.4k
How Fast Is Fast Enough? [PerfNow 2025]
tammyeverts
3
480
Principles of Awesome APIs and How to Build Them.
keavy
128
17k
The State of eCommerce SEO: How to Win in Today's Products SERPs - #SEOweek
aleyda
2
9.9k
The Organizational Zoo: Understanding Human Behavior Agility Through Metaphoric Constructive Conversations (based on the works of Arthur Shelley, Ph.D)
kimpetersen
PRO
0
270
Imperfection Machines: The Place of Print at Facebook
scottboms
269
14k
Game over? The fight for quality and originality in the time of robots
wayneb77
1
140
Keith and Marios Guide to Fast Websites
keithpitt
413
23k
Large-scale JavaScript Application Architecture
addyosmani
515
110k
Transcript
Bulls and Cows solutions Hongyi Shen
[email protected]
‣ key property: symmetric ‣ how to make next guess
‣ entropy evaluation ! ‣ five guess algorithm
target: guess: 0123 0364 1A1B 0213 4075 9138 5421 0123
0364 … … 1A1B 0A2B 0A1B 0A1B 4A0B 1A1B ?A?B ‣ key property: symmetric
Guess the one that would eliminate the most possibilities. ‣
Entropy evaluation map each guess to a possible group, choose the group with maximum entropy ‣ Five-guess algorithm use minimax tech to score each guess, choose the one might eliminate the most possibilities ‣ How to make next guess
3 digits, 0~5 ‣ Entropy evaluation
Rounds Complexity Entropy 5.31 O(m^2). Five-guess < 5.31 O(n^2). Random
guess 5.63 O(1). ‣ Performance VJGQTGVKECNNKOKV
Reference:! ! The Computer As Master Mind by Donald E.
Knuth! ! Mastermind as test-bed for search algorithms by J.H. O'Geran etc.! ! Strategies for playing MOO, or “Bulls and Cows” by John Francis Thanks