SlideShare ist ein Scribd-Unternehmen logo
1 von 47
Downloaden Sie, um offline zu lesen
1vs.
Boolean Games
turn based, one on one
Exercise 51
Players take turns
Exercise 51
Players take turns
4 connected win
Exercise 51
Players take turns
4 connected win
Exercise 51
have Fun
Players take turns
4 connected win
Exercise 51
1
0
1
0
1
0
1
0
1
0
1
0
0 starts
1
0
1
0
1
0
1
0
1
0
1
0 00 starts
1
0
1
0
1
0
1
0
1
0
1
0 0
1 starts
0 starts
1
0
1
0
1
0
1
0
1
0
1
0 0
1
0
1
0
1
0 11 starts
0 starts
1
0
1
0
1
0
1
0
1
0
1
0 0
1
0
1
0
1
0 1
1
0
1
0
1
0 101 starts
0 starts
Task: construct a set of Horn clauses that
describe if a player has already won
or lost.
1
0
1
0
1
0
1
0
1
0
1
0 0
1
0
1
0
1
0 1
1
0
1
0
1
0 101 starts
0 starts
1
0
1
0
1
0
1
0
1
0
1
0 0
1
0
1
0
1
0 1
1
0
1
0
1
0 101 starts
0 starts
0
1
0
1
0
1
0
1
0
1
0
1
0 0
1
0
1
0
1
0 1
1
0
1
0
1
0 101 starts
0 starts
0
0
1
0
1
0
1
0
1
0
1
0
1
0 1
1
0
1
0
1
0 10
1 starts
0
1
0
1
0
1
0
1
0
1
0
1
0 1
1
0
1
0
1
0 10
1 starts
0
1
0
1
0
1
0
1
0
1
0
1
0 1
1
0
1
0
1
0 10
1 starts
0
1
0
1
0
1
0
1
0
1
0
1
0 1
1
0
1
0
1
0 10
1 starts
0
How can we generalize?
1
0
1
0
1
0
1
0
1
0
1
0 1
1
0
1
0
1
0 10
0
1
0
1
0
1
0
1
0
1
0
1
0 1
1
0
1
0
1
0 10
0
1
0
1
0
1
0
1
0
1
0
1
0 1
1
0
1
0
1
0 10
0
if a draw is
not possible
00001110001000110000111000001100011100001110000001
10001000011000110000110000011000001000110000001000
00111000000111000100011000011100000110001110000111
00000011000100001100011000011000001100000100011000
00010000011100000011100010001100001110000011000111
00001110001000110001000011000110000110000011000001
00011000000100000111000000111000100011000011100000
11000111000011100000011000100001100011000011000001
10000010001100000010000011100000011100010001100001
11000001100011100001110000001100010000110001100001
10000011000001000110000001000001110000001110001000
11000011100000110001110000111000000110001000011000
11000011001000110000010001100002001000001110000001
11000100011000011100000110001110000111000000110001
00001100011000011000001100000100011000000100000111
00000011100010001100001110000011000111000011100000
“Any Boolean function leads to
a Game ...”
Donald E. Knuth
Exercise 52
construct game graph
animate
x2
start
construct game graph
animate
x2
x1
start
construct game graph
animate
x2
x1
x4
start
construct game graph
animate
x2
x3 x5 x7
x6 x8
x9x1
x4
start
x1 x3 x5 x7
x6x4 x8
x9
1
some example steps
- max 4 possible moves
-
start
x1 x3 x5 x7
x6 x8
x9
1 0
some example steps
- max 4 possible moves
-
start
x1 x5 x7
x6 x8
x9
1 0
1
some example steps
- max 4 possible moves
-
start
x1 x5 x7
x6 x8
x9
0
1
0
some example steps
- max 4 possible moves
-
start
x1
x2
x1
x2
(a) f(x[1:n]) = x[1:n] < x[n:1]╓
╙
╓
╙
x1
x2
xx
(a) f(x[1:n]) = x[1:n] < x[n:1]╓
╙
╓
╙
x1
x2
xx
x0
x1
(a) f(x[1:n]) = x[1:n] < x[n:1]╓
╙
╓
╙
x1
x2
xx
x0
x1
00
10
01
11
(a) f(x[1:n]) = x[1:n] < x[n:1]╓
╙
╓
╙
x1
x2
xx
x0
x1
0
0
0
1
(a) f(x[1:n]) = x[1:n] < x[n:1]╓
╙
╓
╙
x1
x2
xx
x1
0
0
0
1
0
(a) f(x[1:n]) = x[1:n] < x[n:1]╓
╙
╓
╙
Algorithm C
n (a)
2 0 wins
3 0 wins
4 first wins
5 second wins
6 second wins
7 1 loses if first
8 draw
9 draw
(a) f(x[1:n]) = x[1:n] < x[n:1]╓
╙
╓
╙
n (b)
2 second wins
3 first wins
4 first wins
5 draw
6 second wins
7 second wins
8 draw
9 draw
(b) f(x[1:n]) = xi⊕i
n (c)
2 1 wins
3 first wins
4 first wins
5 draw
6 1 loses if first
7 1 loses if first
8 draw
9 draw
(c) f(x[1:n]) = x[1:n] contains
no two consecutive 1’s
╓
╙ ╓
╙
n (d)
2 second wins
3 first wins
4 first wins
5 1 loses if first
6 1 loses if first
7 1 loses if first
8 1 loses if first
9 1 loses if first
(d) f(x[1:n]) = (x[1:n])2 is prime╓
╙
╓
╙
Questions?

Weitere ähnliche Inhalte

Andere mochten auch

Present. Coop57
Present. Coop57Present. Coop57
Present. Coop57Jose Ochoa
 
إن الله لا يغير مابقوم حتى يغييروا مابأنفسهم
إن الله لا يغير مابقوم  حتى يغييروا مابأنفسهمإن الله لا يغير مابقوم  حتى يغييروا مابأنفسهم
إن الله لا يغير مابقوم حتى يغييروا مابأنفسهمabokhlid1
 
Usability Heuristics
Usability HeuristicsUsability Heuristics
Usability HeuristicsOvidiu Von M
 
Hydrogen & Renewable Energy In The UK : Real Life Case Studies
Hydrogen & Renewable Energy In The UK : Real Life Case StudiesHydrogen & Renewable Energy In The UK : Real Life Case Studies
Hydrogen & Renewable Energy In The UK : Real Life Case StudiesGavin Harper
 

Andere mochten auch (7)

Present. Coop57
Present. Coop57Present. Coop57
Present. Coop57
 
aviozvisulPro
aviozvisulProaviozvisulPro
aviozvisulPro
 
Unit 2 Gordon
Unit 2 GordonUnit 2 Gordon
Unit 2 Gordon
 
ProgramaçãO
ProgramaçãOProgramaçãO
ProgramaçãO
 
إن الله لا يغير مابقوم حتى يغييروا مابأنفسهم
إن الله لا يغير مابقوم  حتى يغييروا مابأنفسهمإن الله لا يغير مابقوم  حتى يغييروا مابأنفسهم
إن الله لا يغير مابقوم حتى يغييروا مابأنفسهم
 
Usability Heuristics
Usability HeuristicsUsability Heuristics
Usability Heuristics
 
Hydrogen & Renewable Energy In The UK : Real Life Case Studies
Hydrogen & Renewable Energy In The UK : Real Life Case StudiesHydrogen & Renewable Energy In The UK : Real Life Case Studies
Hydrogen & Renewable Energy In The UK : Real Life Case Studies
 

Mehr von Adrian Schroeter

Talk or Not to Talk @ CSCW 2012
Talk or Not to Talk @ CSCW 2012Talk or Not to Talk @ CSCW 2012
Talk or Not to Talk @ CSCW 2012Adrian Schroeter
 
Failure-Preventing Recommendations
Failure-Preventing RecommendationsFailure-Preventing Recommendations
Failure-Preventing RecommendationsAdrian Schroeter
 
Predicting Buildoutcome using Developer Interaction in Jazz
Predicting Buildoutcome using Developer Interaction in JazzPredicting Buildoutcome using Developer Interaction in Jazz
Predicting Buildoutcome using Developer Interaction in JazzAdrian Schroeter
 
Do Stack Traces Help Developers Fix Bugs?
Do Stack Traces Help Developers Fix Bugs?Do Stack Traces Help Developers Fix Bugs?
Do Stack Traces Help Developers Fix Bugs?Adrian Schroeter
 
MSA - building socio-technical networks
MSA - building socio-technical networksMSA - building socio-technical networks
MSA - building socio-technical networksAdrian Schroeter
 
Mining Jazz: An Experience Report
Mining Jazz: An Experience ReportMining Jazz: An Experience Report
Mining Jazz: An Experience ReportAdrian Schroeter
 

Mehr von Adrian Schroeter (7)

Talk or Not to Talk @ CSCW 2012
Talk or Not to Talk @ CSCW 2012Talk or Not to Talk @ CSCW 2012
Talk or Not to Talk @ CSCW 2012
 
Failure-Preventing Recommendations
Failure-Preventing RecommendationsFailure-Preventing Recommendations
Failure-Preventing Recommendations
 
Predicting Buildoutcome using Developer Interaction in Jazz
Predicting Buildoutcome using Developer Interaction in JazzPredicting Buildoutcome using Developer Interaction in Jazz
Predicting Buildoutcome using Developer Interaction in Jazz
 
Do Stack Traces Help Developers Fix Bugs?
Do Stack Traces Help Developers Fix Bugs?Do Stack Traces Help Developers Fix Bugs?
Do Stack Traces Help Developers Fix Bugs?
 
Candidacy
CandidacyCandidacy
Candidacy
 
MSA - building socio-technical networks
MSA - building socio-technical networksMSA - building socio-technical networks
MSA - building socio-technical networks
 
Mining Jazz: An Experience Report
Mining Jazz: An Experience ReportMining Jazz: An Experience Report
Mining Jazz: An Experience Report
 

Kürzlich hochgeladen

24 ĐỀ THAM KHẢO KÌ THI TUYỂN SINH VÀO LỚP 10 MÔN TIẾNG ANH SỞ GIÁO DỤC HẢI DƯ...
24 ĐỀ THAM KHẢO KÌ THI TUYỂN SINH VÀO LỚP 10 MÔN TIẾNG ANH SỞ GIÁO DỤC HẢI DƯ...24 ĐỀ THAM KHẢO KÌ THI TUYỂN SINH VÀO LỚP 10 MÔN TIẾNG ANH SỞ GIÁO DỤC HẢI DƯ...
24 ĐỀ THAM KHẢO KÌ THI TUYỂN SINH VÀO LỚP 10 MÔN TIẾNG ANH SỞ GIÁO DỤC HẢI DƯ...Nguyen Thanh Tu Collection
 
MOOD STABLIZERS DRUGS.pptx
MOOD     STABLIZERS           DRUGS.pptxMOOD     STABLIZERS           DRUGS.pptx
MOOD STABLIZERS DRUGS.pptxPoojaSen20
 
Envelope of Discrepancy in Orthodontics: Enhancing Precision in Treatment
 Envelope of Discrepancy in Orthodontics: Enhancing Precision in Treatment Envelope of Discrepancy in Orthodontics: Enhancing Precision in Treatment
Envelope of Discrepancy in Orthodontics: Enhancing Precision in Treatmentsaipooja36
 
SURVEY I created for uni project research
SURVEY I created for uni project researchSURVEY I created for uni project research
SURVEY I created for uni project researchCaitlinCummins3
 
PSYPACT- Practicing Over State Lines May 2024.pptx
PSYPACT- Practicing Over State Lines May 2024.pptxPSYPACT- Practicing Over State Lines May 2024.pptx
PSYPACT- Practicing Over State Lines May 2024.pptxMarlene Maheu
 
會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽
會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽
會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽中 央社
 
SPLICE Working Group: Reusable Code Examples
SPLICE Working Group:Reusable Code ExamplesSPLICE Working Group:Reusable Code Examples
SPLICE Working Group: Reusable Code ExamplesPeter Brusilovsky
 
Basic Civil Engineering notes on Transportation Engineering, Modes of Transpo...
Basic Civil Engineering notes on Transportation Engineering, Modes of Transpo...Basic Civil Engineering notes on Transportation Engineering, Modes of Transpo...
Basic Civil Engineering notes on Transportation Engineering, Modes of Transpo...Denish Jangid
 
Stl Algorithms in C++ jjjjjjjjjjjjjjjjjj
Stl Algorithms in C++ jjjjjjjjjjjjjjjjjjStl Algorithms in C++ jjjjjjjjjjjjjjjjjj
Stl Algorithms in C++ jjjjjjjjjjjjjjjjjjMohammed Sikander
 
How To Create Editable Tree View in Odoo 17
How To Create Editable Tree View in Odoo 17How To Create Editable Tree View in Odoo 17
How To Create Editable Tree View in Odoo 17Celine George
 
8 Tips for Effective Working Capital Management
8 Tips for Effective Working Capital Management8 Tips for Effective Working Capital Management
8 Tips for Effective Working Capital ManagementMBA Assignment Experts
 
Championnat de France de Tennis de table/
Championnat de France de Tennis de table/Championnat de France de Tennis de table/
Championnat de France de Tennis de table/siemaillard
 
Đề tieng anh thpt 2024 danh cho cac ban hoc sinh
Đề tieng anh thpt 2024 danh cho cac ban hoc sinhĐề tieng anh thpt 2024 danh cho cac ban hoc sinh
Đề tieng anh thpt 2024 danh cho cac ban hoc sinhleson0603
 
An Overview of the Odoo 17 Knowledge App
An Overview of the Odoo 17 Knowledge AppAn Overview of the Odoo 17 Knowledge App
An Overview of the Odoo 17 Knowledge AppCeline George
 
UChicago CMSC 23320 - The Best Commit Messages of 2024
UChicago CMSC 23320 - The Best Commit Messages of 2024UChicago CMSC 23320 - The Best Commit Messages of 2024
UChicago CMSC 23320 - The Best Commit Messages of 2024Borja Sotomayor
 
Sternal Fractures & Dislocations - EMGuidewire Radiology Reading Room
Sternal Fractures & Dislocations - EMGuidewire Radiology Reading RoomSternal Fractures & Dislocations - EMGuidewire Radiology Reading Room
Sternal Fractures & Dislocations - EMGuidewire Radiology Reading RoomSean M. Fox
 
Improved Approval Flow in Odoo 17 Studio App
Improved Approval Flow in Odoo 17 Studio AppImproved Approval Flow in Odoo 17 Studio App
Improved Approval Flow in Odoo 17 Studio AppCeline George
 
male presentation...pdf.................
male presentation...pdf.................male presentation...pdf.................
male presentation...pdf.................MirzaAbrarBaig5
 

Kürzlich hochgeladen (20)

24 ĐỀ THAM KHẢO KÌ THI TUYỂN SINH VÀO LỚP 10 MÔN TIẾNG ANH SỞ GIÁO DỤC HẢI DƯ...
24 ĐỀ THAM KHẢO KÌ THI TUYỂN SINH VÀO LỚP 10 MÔN TIẾNG ANH SỞ GIÁO DỤC HẢI DƯ...24 ĐỀ THAM KHẢO KÌ THI TUYỂN SINH VÀO LỚP 10 MÔN TIẾNG ANH SỞ GIÁO DỤC HẢI DƯ...
24 ĐỀ THAM KHẢO KÌ THI TUYỂN SINH VÀO LỚP 10 MÔN TIẾNG ANH SỞ GIÁO DỤC HẢI DƯ...
 
MOOD STABLIZERS DRUGS.pptx
MOOD     STABLIZERS           DRUGS.pptxMOOD     STABLIZERS           DRUGS.pptx
MOOD STABLIZERS DRUGS.pptx
 
Envelope of Discrepancy in Orthodontics: Enhancing Precision in Treatment
 Envelope of Discrepancy in Orthodontics: Enhancing Precision in Treatment Envelope of Discrepancy in Orthodontics: Enhancing Precision in Treatment
Envelope of Discrepancy in Orthodontics: Enhancing Precision in Treatment
 
SURVEY I created for uni project research
SURVEY I created for uni project researchSURVEY I created for uni project research
SURVEY I created for uni project research
 
PSYPACT- Practicing Over State Lines May 2024.pptx
PSYPACT- Practicing Over State Lines May 2024.pptxPSYPACT- Practicing Over State Lines May 2024.pptx
PSYPACT- Practicing Over State Lines May 2024.pptx
 
會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽
會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽
會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽
 
Including Mental Health Support in Project Delivery, 14 May.pdf
Including Mental Health Support in Project Delivery, 14 May.pdfIncluding Mental Health Support in Project Delivery, 14 May.pdf
Including Mental Health Support in Project Delivery, 14 May.pdf
 
SPLICE Working Group: Reusable Code Examples
SPLICE Working Group:Reusable Code ExamplesSPLICE Working Group:Reusable Code Examples
SPLICE Working Group: Reusable Code Examples
 
Mattingly "AI and Prompt Design: LLMs with NER"
Mattingly "AI and Prompt Design: LLMs with NER"Mattingly "AI and Prompt Design: LLMs with NER"
Mattingly "AI and Prompt Design: LLMs with NER"
 
Basic Civil Engineering notes on Transportation Engineering, Modes of Transpo...
Basic Civil Engineering notes on Transportation Engineering, Modes of Transpo...Basic Civil Engineering notes on Transportation Engineering, Modes of Transpo...
Basic Civil Engineering notes on Transportation Engineering, Modes of Transpo...
 
Stl Algorithms in C++ jjjjjjjjjjjjjjjjjj
Stl Algorithms in C++ jjjjjjjjjjjjjjjjjjStl Algorithms in C++ jjjjjjjjjjjjjjjjjj
Stl Algorithms in C++ jjjjjjjjjjjjjjjjjj
 
How To Create Editable Tree View in Odoo 17
How To Create Editable Tree View in Odoo 17How To Create Editable Tree View in Odoo 17
How To Create Editable Tree View in Odoo 17
 
8 Tips for Effective Working Capital Management
8 Tips for Effective Working Capital Management8 Tips for Effective Working Capital Management
8 Tips for Effective Working Capital Management
 
Championnat de France de Tennis de table/
Championnat de France de Tennis de table/Championnat de France de Tennis de table/
Championnat de France de Tennis de table/
 
Đề tieng anh thpt 2024 danh cho cac ban hoc sinh
Đề tieng anh thpt 2024 danh cho cac ban hoc sinhĐề tieng anh thpt 2024 danh cho cac ban hoc sinh
Đề tieng anh thpt 2024 danh cho cac ban hoc sinh
 
An Overview of the Odoo 17 Knowledge App
An Overview of the Odoo 17 Knowledge AppAn Overview of the Odoo 17 Knowledge App
An Overview of the Odoo 17 Knowledge App
 
UChicago CMSC 23320 - The Best Commit Messages of 2024
UChicago CMSC 23320 - The Best Commit Messages of 2024UChicago CMSC 23320 - The Best Commit Messages of 2024
UChicago CMSC 23320 - The Best Commit Messages of 2024
 
Sternal Fractures & Dislocations - EMGuidewire Radiology Reading Room
Sternal Fractures & Dislocations - EMGuidewire Radiology Reading RoomSternal Fractures & Dislocations - EMGuidewire Radiology Reading Room
Sternal Fractures & Dislocations - EMGuidewire Radiology Reading Room
 
Improved Approval Flow in Odoo 17 Studio App
Improved Approval Flow in Odoo 17 Studio AppImproved Approval Flow in Odoo 17 Studio App
Improved Approval Flow in Odoo 17 Studio App
 
male presentation...pdf.................
male presentation...pdf.................male presentation...pdf.................
male presentation...pdf.................
 

Boolean Games