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
270
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
250
Are Bookstores Dying?
wilbeibi
0
69
A Little SVM ( Simple Chinese)
wilbeibi
0
120
Other Decks in Programming
See All in Programming
個人アプリを2年ぶりにアプデしたから褒めて / I just updated my personal app, praise me!
lovee
0
340
Java Webフレームワークの現状 / java web framework at burikaigi
kishida
9
2.2k
[Fin-JAWS 第38回 ~re:Invent 2024 金融re:Cap~]FaultInjectionServiceアップデート@pre:Invent2024
shintaro_fukatsu
0
410
2,500万ユーザーを支えるSREチームの6年間のスクラムのカイゼン
honmarkhunt
6
5.3k
Grafana Cloudとソラカメ
devoc
0
170
Honoとフロントエンドの 型安全性について
yodaka
6
830
苦しいTiDBへの移行を乗り越えて快適な運用を目指す
leveragestech
0
510
動作確認やテストで漏れがちな観点3選
starfish719
6
1k
技術を根付かせる / How to make technology take root
kubode
1
250
[JAWS-UG横浜 #79] re:Invent 2024 の DB アップデートは Multi-Region!
maroon1st
1
140
Formの複雑さに立ち向かう
bmthd
1
830
Amazon Q Developer Proで効率化するAPI開発入門
seike460
PRO
0
110
Featured
See All Featured
What's in a price? How to price your products and services
michaelherold
244
12k
Improving Core Web Vitals using Speculation Rules API
sergeychernyshev
9
440
Helping Users Find Their Own Way: Creating Modern Search Experiences
danielanewman
29
2.4k
Fireside Chat
paigeccino
34
3.2k
Optimizing for Happiness
mojombo
376
70k
jQuery: Nuts, Bolts and Bling
dougneiner
63
7.6k
Building a Modern Day E-commerce SEO Strategy
aleyda
38
7.1k
Large-scale JavaScript Application Architecture
addyosmani
511
110k
The Illustrated Children's Guide to Kubernetes
chrisshort
48
49k
Embracing the Ebb and Flow
colly
84
4.6k
[RailsConf 2023 Opening Keynote] The Magic of Rails
eileencodes
28
9.3k
Facilitating Awesome Meetings
lara
51
6.2k
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