Upgrade to PRO for Only $50/Year—Limited-Time Offer! 🔥
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
300
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
270
Are Bookstores Dying?
wilbeibi
0
74
A Little SVM ( Simple Chinese)
wilbeibi
0
130
Other Decks in Programming
See All in Programming
Patterns of Patterns
denyspoltorak
0
310
著者と進める!『AIと個人開発したくなったらまずCursorで要件定義だ!』
yasunacoffee
0
160
公共交通オープンデータ × モバイルUX 複雑な運行情報を 『直感』に変換する技術
tinykitten
PRO
0
160
AI時代を生き抜く 新卒エンジニアの生きる道
coconala_engineer
1
420
AI前提で考えるiOSアプリのモダナイズ設計
yuukiw00w
0
190
Developing static sites with Ruby
okuramasafumi
0
320
AIの誤りが許されない業務システムにおいて“信頼されるAI” を目指す / building-trusted-ai-systems
yuya4
6
3.9k
Findy AI+の開発、運用におけるMCP活用事例
starfish719
0
1.7k
Graviton と Nitro と私
maroon1st
0
130
The Past, Present, and Future of Enterprise Java
ivargrimstad
0
320
AtCoder Conference 2025「LLM時代のAHC」
imjk
2
570
DevFest Android in Korea 2025 - 개발자 커뮤니티를 통해 얻는 가치
wisemuji
0
170
Featured
See All Featured
ピンチをチャンスに:未来をつくるプロダクトロードマップ #pmconf2020
aki_iinuma
128
55k
Navigating Team Friction
lara
191
16k
What the history of the web can teach us about the future of AI
inesmontani
PRO
0
370
Building Applications with DynamoDB
mza
96
6.8k
Designing for Performance
lara
610
69k
My Coaching Mixtape
mlcsv
0
13
How Fast Is Fast Enough? [PerfNow 2025]
tammyeverts
3
410
The AI Revolution Will Not Be Monopolized: How open-source beats economies of scale, even for LLMs
inesmontani
PRO
2
2.8k
Improving Core Web Vitals using Speculation Rules API
sergeychernyshev
21
1.3k
Leveraging LLMs for student feedback in introductory data science courses - posit::conf(2025)
minecr
0
88
Docker and Python
trallard
47
3.7k
The Director’s Chair: Orchestrating AI for Truly Effective Learning
tmiket
0
63
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