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
Sponsored
·
SiteGround - Reliable hosting with speed, security, and support you can count on.
→
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に任せる範囲を安全に広げるためにやっていること
fukucheee
0
130
The Past, Present, and Future of Enterprise Java
ivargrimstad
0
530
Docコメントで始める簡単ガードレール
keisukeikeda
1
120
grapheme_strrev関数が採択されました(あと雑感)
youkidearitai
PRO
1
220
「やめとこ」がなくなった — 1月にZennを始めて22本書いた AI共創開発のリアル
atani14
0
390
Claude Code の Skill で複雑な既存仕様をすっきり整理しよう
yuichirokato
1
380
RAGでハマりがちな"Excelの罠"を、データの構造化で突破する
harumiweb
9
2.8k
DevinとClaude Code、SREの現場で使い倒してみた件
karia
1
1.1k
文字コードの話
qnighy
44
17k
受け入れテスト駆動開発(ATDD)×AI駆動開発 AI時代のATDDの取り組み方を考える
kztakasaki
2
580
ロボットのための工場に灯りは要らない
watany
10
2.8k
Kubernetesでセルフホストが簡単なNewSQLを求めて / Seeking a NewSQL Database That's Simple to Self-Host on Kubernetes
nnaka2992
0
110
Featured
See All Featured
JavaScript: Past, Present, and Future - NDC Porto 2020
reverentgeek
52
5.9k
Building a Modern Day E-commerce SEO Strategy
aleyda
45
8.9k
Pawsitive SEO: Lessons from My Dog (and Many Mistakes) on Thriving as a Consultant in the Age of AI
davidcarrasco
0
86
Save Time (by Creating Custom Rails Generators)
garrettdimon
PRO
32
2.4k
The Mindset for Success: Future Career Progression
greggifford
PRO
0
280
Navigating the moral maze — ethical principles for Al-driven product design
skipperchong
2
280
Deep Space Network (abreviated)
tonyrice
0
90
Context Engineering - Making Every Token Count
addyosmani
9
750
Designing for Performance
lara
611
70k
We Have a Design System, Now What?
morganepeng
55
8k
Neural Spatial Audio Processing for Sound Field Analysis and Control
skoyamalab
0
220
Everyday Curiosity
cassininazir
0
160
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