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
330
1
Share
Embed
Copy iframe code
Copy JS code
Copy link
Start on current slide
Entropy Evaluation method for Bulls and Cows game
AI midterm presentation
Hongyi Shen
October 17, 2014
More Decks by Hongyi Shen
See All by Hongyi Shen
How Rsync works
wilbeibi
1
290
Are Bookstores Dying?
wilbeibi
0
78
A Little SVM ( Simple Chinese)
wilbeibi
0
140
Other Decks in Programming
See All in Programming
Oxlintはいいぞ(続)
yug1224
1
410
Loosening the Reins: Go Generics Get More Flexible
kuro_kurorrr
0
300
仕様駆動開発へのトライを機に チームに適合する手法を模索し続けている話
freee
PRO
0
600
freeeにおけるEvalsの実践例の紹介
freee
PRO
0
150
FastAPI の並行処理モデルを完全に理解する
hoto17296
8
2.8k
PostgreSQL 18で考えるUUID主キー
kazuhiro1982
0
500
AI Readyの正体はデータマネジメントだ メダリオン2.0の最前線
freee
PRO
0
360
思考垂れ流し開発 ~音声入力 × AIエージェント × 開発ハーネスによる試行錯誤~
npostring
0
120
承認済みなのに差戻しできてしまうバグ、型で潰せます
shinchit
0
100
そこに3びきプロダクトがいるじゃろう——生成AI時代における“価値が届かない理由”の構造
kosuket
0
570
ドリフトを絶対に許さない(?)CDK運用 / CDK Ops with Zero Tolerance for Drifts (?)
akihisaikeda
1
220
Building a Meta Ray-Ban display app
akkeylab
0
180
Featured
See All Featured
brightonSEO & MeasureFest 2025 - Christian Goodrich - Winning strategies for Black Friday CRO & PPC
cargoodrich
3
780
The Limits of Empathy - UXLibs8
cassininazir
1
610
The SEO identity crisis: Don't let AI make you average
varn
0
530
The Art of Programming - Codeland 2020
erikaheidi
57
14k
The Power of CSS Pseudo Elements
geoffreycrofte
82
6.5k
How Software Deployment tools have changed in the past 20 years
geshan
1
34k
技術選定の審美眼(2025年版) / Understanding the Spiral of Technologies 2025 edition
twada
PRO
120
120k
The Web Performance Landscape in 2024 [PerfNow 2024]
tammyeverts
12
1.3k
Neural Spatial Audio Processing for Sound Field Analysis and Control
skoyamalab
0
410
Public Speaking Without Barfing On Your Shoes - THAT 2023
reverentgeek
1
540
ReactJS: Keep Simple. Everything can be a component!
pedronauck
666
130k
Skip the Path - Find Your Career Trail
mkilby
1
190
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