$30 off During Our Annual Pro Sale. View Details »
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
AI Agent Dojo #4: watsonx Orchestrate ADK体験
oniak3ibm
PRO
0
110
The Past, Present, and Future of Enterprise Java
ivargrimstad
0
270
ZJIT: The Ruby 4 JIT Compiler / Ruby Release 30th Anniversary Party
k0kubun
0
250
AI Agent Tool のためのバックエンドアーキテクチャを考える #encraft
izumin5210
2
650
生成AIを利用するだけでなく、投資できる組織へ
pospome
2
390
tparseでgo testの出力を見やすくする
utgwkk
2
270
実は歴史的なアップデートだと思う AWS Interconnect - multicloud
maroon1st
0
250
GISエンジニアから見たLINKSデータ
nokonoko1203
0
180
メルカリのリーダビリティチームが取り組む、AI時代のスケーラブルな品質文化
cloverrose
2
340
AIコーディングエージェント(skywork)
kondai24
0
200
マスタデータ問題、マイクロサービスでどう解くか
kts
0
110
Navigating Dependency Injection with Metro
l2hyunwoo
1
170
Featured
See All Featured
The agentic SEO stack - context over prompts
schlessera
0
550
Dominate Local Search Results - an insider guide to GBP, reviews, and Local SEO
greggifford
PRO
0
15
The Myth of the Modular Monolith - Day 2 Keynote - Rails World 2024
eileencodes
26
3.3k
StorybookのUI Testing Handbookを読んだ
zakiyama
31
6.5k
Put a Button on it: Removing Barriers to Going Fast.
kastner
60
4.1k
[SF Ruby Conf 2025] Rails X
palkan
0
550
Done Done
chrislema
186
16k
Crafting Experiences
bethany
0
21
Design in an AI World
tapps
0
97
We Have a Design System, Now What?
morganepeng
54
7.9k
Making Projects Easy
brettharned
120
6.5k
Leveraging Curiosity to Care for An Aging Population
cassininazir
1
130
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