SlideShare a Scribd company logo
1 of 11
Download to read offline
Alternative Search Formulations
and Applications
Chapter 11.
2
Outline
 Assignment Problems
 Constraint Propagation
 Constructive Methods
 Heuristic Repair
 Function Optimization
3
Assignment Problems
 Assigning values to variables subject to constraints
 Examples
– Eight-Queens problem
– Crossword puzzles
4
Eight-Queens Problem
X
X
X
X
X
X
X
X
No queen can be
placed so that it can
capture any of the
others, according to
the rules of chess
An obvious data structure
is 8-by-8 array containing
queen(1) or empty(0)
5
Eight-Queens Problem (cont’d)
 We can solve constraint-satisfaction problems by
graph-search methods
– Constructive method
– Repair approach
– Function optimization
6
Constructive Method
– Begin with no assignments
– Each operator adds a queen
to the array in such a way
that the resulting array
satisfies constraints among
its queens
– Constraint propagation
technique helps markedly in
reducing the size of the
search space
7
Constraint Propagation
(four-queens problem)
– Each variable constrains
all of the others, so all of
the nodes have arcs to all
other nodes
– A directed constraint
arc(i,j), variable labeling i is
constrained by the value of
the variable labeling j
8
Constraint Propagation (cont’d)
– Circle: Values eliminated by first making
arc(q2,q3) consistent
– Box: Values eliminated by next making
arc(q3,q4) consistent
9
Heuristic Repair
– Starts with a proposed
solution, which most
probably does not
satisfy the constraints
– The operators change a
data structure so that it
violates fewer
constraints
10
Function Optimization
 Hill-climbing
– Traversing by moving from one point to that “adjacent”
point having the highest elevation
– To solve local maxima problem
 Several separate hill-climbing, stating at different
locations(choose the highest of these)
 Simulated annealing (choose by probability distribution)
11
Solving the Two-Color Problem
(Hill Climbing)
1. Set the current node, n, to
a randomly selected
node, n0.
2. Generate the successors
of n.
3. If Vb<V(n), exit with n as
the best node found so
far.
4. Otherwise,set n to nb, and
go to step 2.

More Related Content

What's hot

What's hot (19)

N queen problem
N queen problemN queen problem
N queen problem
 
The n Queen Problem
The n Queen ProblemThe n Queen Problem
The n Queen Problem
 
Backtracking
BacktrackingBacktracking
Backtracking
 
Thesis Presentation_Extreme Learning Machine_Nimai_SC14M045
Thesis Presentation_Extreme Learning Machine_Nimai_SC14M045Thesis Presentation_Extreme Learning Machine_Nimai_SC14M045
Thesis Presentation_Extreme Learning Machine_Nimai_SC14M045
 
N queens using backtracking
N queens using backtrackingN queens using backtracking
N queens using backtracking
 
3 handouts section3-5
3 handouts section3-53 handouts section3-5
3 handouts section3-5
 
Daa unit 3
Daa unit 3Daa unit 3
Daa unit 3
 
Q
QQ
Q
 
Lec33
Lec33Lec33
Lec33
 
V2 i2 2013_paper10
V2 i2 2013_paper10V2 i2 2013_paper10
V2 i2 2013_paper10
 
3.6 systems and matrices[1]
3.6 systems and matrices[1]3.6 systems and matrices[1]
3.6 systems and matrices[1]
 
data structures- back tracking
data structures- back trackingdata structures- back tracking
data structures- back tracking
 
Backtracking
BacktrackingBacktracking
Backtracking
 
directed-research-report
directed-research-reportdirected-research-report
directed-research-report
 
Inner product
Inner productInner product
Inner product
 
Genetic Algorithm based Approach to solve Non-Fractional (0/1) Knapsack Optim...
Genetic Algorithm based Approach to solve Non-Fractional (0/1) Knapsack Optim...Genetic Algorithm based Approach to solve Non-Fractional (0/1) Knapsack Optim...
Genetic Algorithm based Approach to solve Non-Fractional (0/1) Knapsack Optim...
 
Spacey random walks and higher-order data analysis
Spacey random walks and higher-order data analysisSpacey random walks and higher-order data analysis
Spacey random walks and higher-order data analysis
 
Ms nikita greedy agorithm
Ms nikita greedy agorithmMs nikita greedy agorithm
Ms nikita greedy agorithm
 
H023078082
H023078082H023078082
H023078082
 

Viewers also liked

Aaron_Dow_URC_Poster
Aaron_Dow_URC_PosterAaron_Dow_URC_Poster
Aaron_Dow_URC_PosterAaron Dow
 
Schermata 2015 05-29 alle 23.32.01.png
Schermata 2015 05-29 alle 23.32.01.pngSchermata 2015 05-29 alle 23.32.01.png
Schermata 2015 05-29 alle 23.32.01.pngAdriano Massi
 
16 2 predicate resolution
16 2 predicate resolution16 2 predicate resolution
16 2 predicate resolutionTianlu Wang
 
21 situation calculus
21 situation calculus21 situation calculus
21 situation calculusTianlu Wang
 
04 2 machine evolution
04 2 machine evolution04 2 machine evolution
04 2 machine evolutionTianlu Wang
 
sales certification 2
sales certification 2sales certification 2
sales certification 2MIDO BM
 
Nuevo documento de microsoft word xxwe
Nuevo documento de microsoft word xxweNuevo documento de microsoft word xxwe
Nuevo documento de microsoft word xxwePollo de Yareni
 
18 common knowledge
18 common knowledge18 common knowledge
18 common knowledgeTianlu Wang
 
BourbaKeM 5 - Définition et gestion de l’expert
BourbaKeM 5 - Définition et gestion de l’expertBourbaKeM 5 - Définition et gestion de l’expert
BourbaKeM 5 - Définition et gestion de l’expertUniversité Laval
 
About U.K.
About U.K.About U.K.
About U.K.KNUFE1
 
Unit 6 lo3
Unit 6 lo3Unit 6 lo3
Unit 6 lo3954869
 
Herramientas para educación pamela salas
Herramientas para educación pamela salasHerramientas para educación pamela salas
Herramientas para educación pamela salasPamela Salas Aguilar
 
Oil Technics Workshop Brochure
Oil Technics Workshop BrochureOil Technics Workshop Brochure
Oil Technics Workshop BrochureDavid Holmes
 
Forbes presentacia-raskadrovka
Forbes presentacia-raskadrovkaForbes presentacia-raskadrovka
Forbes presentacia-raskadrovkaVladimir Starkov
 
Maestría en Derecho Civil Contractual 2015 17
Maestría en Derecho Civil Contractual 2015 17Maestría en Derecho Civil Contractual 2015 17
Maestría en Derecho Civil Contractual 2015 17alipio_nahui
 

Viewers also liked (20)

Mejía miguel
Mejía miguelMejía miguel
Mejía miguel
 
Aaron_Dow_URC_Poster
Aaron_Dow_URC_PosterAaron_Dow_URC_Poster
Aaron_Dow_URC_Poster
 
Schermata 2015 05-29 alle 23.32.01.png
Schermata 2015 05-29 alle 23.32.01.pngSchermata 2015 05-29 alle 23.32.01.png
Schermata 2015 05-29 alle 23.32.01.png
 
16 2 predicate resolution
16 2 predicate resolution16 2 predicate resolution
16 2 predicate resolution
 
21 situation calculus
21 situation calculus21 situation calculus
21 situation calculus
 
Miguel grau
Miguel grau Miguel grau
Miguel grau
 
04 2 machine evolution
04 2 machine evolution04 2 machine evolution
04 2 machine evolution
 
sales certification 2
sales certification 2sales certification 2
sales certification 2
 
Nuevo documento de microsoft word xxwe
Nuevo documento de microsoft word xxweNuevo documento de microsoft word xxwe
Nuevo documento de microsoft word xxwe
 
Yuli diagramas
Yuli diagramasYuli diagramas
Yuli diagramas
 
18 common knowledge
18 common knowledge18 common knowledge
18 common knowledge
 
BourbaKeM 5 - Définition et gestion de l’expert
BourbaKeM 5 - Définition et gestion de l’expertBourbaKeM 5 - Définition et gestion de l’expert
BourbaKeM 5 - Définition et gestion de l’expert
 
About U.K.
About U.K.About U.K.
About U.K.
 
Unit 6 lo3
Unit 6 lo3Unit 6 lo3
Unit 6 lo3
 
ESSIE poster_Liu 2015
ESSIE poster_Liu 2015ESSIE poster_Liu 2015
ESSIE poster_Liu 2015
 
Herramientas para educación pamela salas
Herramientas para educación pamela salasHerramientas para educación pamela salas
Herramientas para educación pamela salas
 
Oil Technics Workshop Brochure
Oil Technics Workshop BrochureOil Technics Workshop Brochure
Oil Technics Workshop Brochure
 
Forbes presentacia-raskadrovka
Forbes presentacia-raskadrovkaForbes presentacia-raskadrovka
Forbes presentacia-raskadrovka
 
Maestría en Derecho Civil Contractual 2015 17
Maestría en Derecho Civil Contractual 2015 17Maestría en Derecho Civil Contractual 2015 17
Maestría en Derecho Civil Contractual 2015 17
 
diagrama de ishikawa
diagrama de ishikawadiagrama de ishikawa
diagrama de ishikawa
 

Similar to 11 alternative search

module5_backtrackingnbranchnbound_2022.pdf
module5_backtrackingnbranchnbound_2022.pdfmodule5_backtrackingnbranchnbound_2022.pdf
module5_backtrackingnbranchnbound_2022.pdfShiwani Gupta
 
Data Analysis and Algorithms Lecture 1: Introduction
 Data Analysis and Algorithms Lecture 1: Introduction Data Analysis and Algorithms Lecture 1: Introduction
Data Analysis and Algorithms Lecture 1: IntroductionTayyabSattar5
 
8-Queens Problem.pptx
8-Queens Problem.pptx8-Queens Problem.pptx
8-Queens Problem.pptxrajinooka
 
Backtracking Algorithm.pptx
Backtracking Algorithm.pptxBacktracking Algorithm.pptx
Backtracking Algorithm.pptxsangeeta194160
 
N-queens.pptx
N-queens.pptxN-queens.pptx
N-queens.pptxanoop2708
 
Backtrack search-algorithm
Backtrack search-algorithmBacktrack search-algorithm
Backtrack search-algorithmRuchika Sinha
 
Back tracking and branch and bound class 20
Back tracking and branch and bound class 20Back tracking and branch and bound class 20
Back tracking and branch and bound class 20Kumar
 
Backtracking Basics.pptx
Backtracking Basics.pptxBacktracking Basics.pptx
Backtracking Basics.pptxsunidhi740916
 
Genetic operators
Genetic operatorsGenetic operators
Genetic operatorsDEEPIKA T
 
Types Of Recursion in C++, Data Stuctures by DHEERAJ KATARIA
Types Of Recursion in C++, Data Stuctures by DHEERAJ KATARIATypes Of Recursion in C++, Data Stuctures by DHEERAJ KATARIA
Types Of Recursion in C++, Data Stuctures by DHEERAJ KATARIADheeraj Kataria
 
8 QUEENS PROBLEM.pptx
8 QUEENS PROBLEM.pptx8 QUEENS PROBLEM.pptx
8 QUEENS PROBLEM.pptxsunidhi740916
 
Branch and bound
Branch and boundBranch and bound
Branch and boundAcad
 
linear equation and gaussian elimination
linear equation and gaussian eliminationlinear equation and gaussian elimination
linear equation and gaussian eliminationAju Thadikulangara
 
A Condensation-Projection Method For The Generalized Eigenvalue Problem
A Condensation-Projection Method For The Generalized Eigenvalue ProblemA Condensation-Projection Method For The Generalized Eigenvalue Problem
A Condensation-Projection Method For The Generalized Eigenvalue ProblemScott Donald
 

Similar to 11 alternative search (20)

module5_backtrackingnbranchnbound_2022.pdf
module5_backtrackingnbranchnbound_2022.pdfmodule5_backtrackingnbranchnbound_2022.pdf
module5_backtrackingnbranchnbound_2022.pdf
 
Data Analysis and Algorithms Lecture 1: Introduction
 Data Analysis and Algorithms Lecture 1: Introduction Data Analysis and Algorithms Lecture 1: Introduction
Data Analysis and Algorithms Lecture 1: Introduction
 
Back tracking
Back trackingBack tracking
Back tracking
 
backtracking 8 Queen.pptx
backtracking 8 Queen.pptxbacktracking 8 Queen.pptx
backtracking 8 Queen.pptx
 
Sudoku
SudokuSudoku
Sudoku
 
8-Queens Problem.pptx
8-Queens Problem.pptx8-Queens Problem.pptx
8-Queens Problem.pptx
 
Backtracking Algorithm.pptx
Backtracking Algorithm.pptxBacktracking Algorithm.pptx
Backtracking Algorithm.pptx
 
N-queens.pptx
N-queens.pptxN-queens.pptx
N-queens.pptx
 
Backtrack search-algorithm
Backtrack search-algorithmBacktrack search-algorithm
Backtrack search-algorithm
 
Back tracking and branch and bound class 20
Back tracking and branch and bound class 20Back tracking and branch and bound class 20
Back tracking and branch and bound class 20
 
Backtracking Basics.pptx
Backtracking Basics.pptxBacktracking Basics.pptx
Backtracking Basics.pptx
 
D034017022
D034017022D034017022
D034017022
 
Genetic operators
Genetic operatorsGenetic operators
Genetic operators
 
Types Of Recursion in C++, Data Stuctures by DHEERAJ KATARIA
Types Of Recursion in C++, Data Stuctures by DHEERAJ KATARIATypes Of Recursion in C++, Data Stuctures by DHEERAJ KATARIA
Types Of Recursion in C++, Data Stuctures by DHEERAJ KATARIA
 
8 QUEENS PROBLEM.pptx
8 QUEENS PROBLEM.pptx8 QUEENS PROBLEM.pptx
8 QUEENS PROBLEM.pptx
 
Mathematics PPT.pptx
Mathematics PPT.pptxMathematics PPT.pptx
Mathematics PPT.pptx
 
Branch and bound
Branch and boundBranch and bound
Branch and bound
 
AI Lesson 09
AI Lesson 09AI Lesson 09
AI Lesson 09
 
linear equation and gaussian elimination
linear equation and gaussian eliminationlinear equation and gaussian elimination
linear equation and gaussian elimination
 
A Condensation-Projection Method For The Generalized Eigenvalue Problem
A Condensation-Projection Method For The Generalized Eigenvalue ProblemA Condensation-Projection Method For The Generalized Eigenvalue Problem
A Condensation-Projection Method For The Generalized Eigenvalue Problem
 

More from Tianlu Wang

14 pro resolution
14 pro resolution14 pro resolution
14 pro resolutionTianlu Wang
 
13 propositional calculus
13 propositional calculus13 propositional calculus
13 propositional calculusTianlu Wang
 
12 adversal search
12 adversal search12 adversal search
12 adversal searchTianlu Wang
 
20 bayes learning
20 bayes learning20 bayes learning
20 bayes learningTianlu Wang
 
19 uncertain evidence
19 uncertain evidence19 uncertain evidence
19 uncertain evidenceTianlu Wang
 
17 2 expert systems
17 2 expert systems17 2 expert systems
17 2 expert systemsTianlu Wang
 
17 1 knowledge-based system
17 1 knowledge-based system17 1 knowledge-based system
17 1 knowledge-based systemTianlu Wang
 
16 1 predicate resolution
16 1 predicate resolution16 1 predicate resolution
16 1 predicate resolutionTianlu Wang
 
09 heuristic search
09 heuristic search09 heuristic search
09 heuristic searchTianlu Wang
 
08 uninformed search
08 uninformed search08 uninformed search
08 uninformed searchTianlu Wang
 
05 state machine
05 state machine05 state machine
05 state machineTianlu Wang
 

More from Tianlu Wang (20)

L7 er2
L7 er2L7 er2
L7 er2
 
L8 design1
L8 design1L8 design1
L8 design1
 
L9 design2
L9 design2L9 design2
L9 design2
 
14 pro resolution
14 pro resolution14 pro resolution
14 pro resolution
 
13 propositional calculus
13 propositional calculus13 propositional calculus
13 propositional calculus
 
12 adversal search
12 adversal search12 adversal search
12 adversal search
 
10 2 sum
10 2 sum10 2 sum
10 2 sum
 
22 planning
22 planning22 planning
22 planning
 
20 bayes learning
20 bayes learning20 bayes learning
20 bayes learning
 
19 uncertain evidence
19 uncertain evidence19 uncertain evidence
19 uncertain evidence
 
17 2 expert systems
17 2 expert systems17 2 expert systems
17 2 expert systems
 
17 1 knowledge-based system
17 1 knowledge-based system17 1 knowledge-based system
17 1 knowledge-based system
 
16 1 predicate resolution
16 1 predicate resolution16 1 predicate resolution
16 1 predicate resolution
 
15 predicate
15 predicate15 predicate
15 predicate
 
09 heuristic search
09 heuristic search09 heuristic search
09 heuristic search
 
08 uninformed search
08 uninformed search08 uninformed search
08 uninformed search
 
07 plan agent
07 plan agent07 plan agent
07 plan agent
 
06 robot vision
06 robot vision06 robot vision
06 robot vision
 
05 state machine
05 state machine05 state machine
05 state machine
 
04 1 evolution
04 1 evolution04 1 evolution
04 1 evolution
 

Recently uploaded

SLIDESHARE. ART OF THE ROMANTIC PERIOD/ROMANTICISM Art
SLIDESHARE. ART OF THE ROMANTIC PERIOD/ROMANTICISM ArtSLIDESHARE. ART OF THE ROMANTIC PERIOD/ROMANTICISM Art
SLIDESHARE. ART OF THE ROMANTIC PERIOD/ROMANTICISM ArtChum26
 
Element of art, Transcreation and usions and overlapping and interrelated ele...
Element of art, Transcreation and usions and overlapping and interrelated ele...Element of art, Transcreation and usions and overlapping and interrelated ele...
Element of art, Transcreation and usions and overlapping and interrelated ele...jheramypagoyoiman801
 
Escort Service in Al Jaddaf +971509530047 UAE
Escort Service in Al Jaddaf +971509530047 UAEEscort Service in Al Jaddaf +971509530047 UAE
Escort Service in Al Jaddaf +971509530047 UAEvecevep119
 
Hiway Motel, Motel/Residence, Albuquerque NM
Hiway Motel, Motel/Residence, Albuquerque NMHiway Motel, Motel/Residence, Albuquerque NM
Hiway Motel, Motel/Residence, Albuquerque NMroute66connected
 
Escort Service in Al Nahda +971509530047 UAE
Escort Service in Al Nahda +971509530047 UAEEscort Service in Al Nahda +971509530047 UAE
Escort Service in Al Nahda +971509530047 UAEvecevep119
 
Bai tap thuc hanh Anh 6 Mai Lan Huong.docx
Bai tap thuc hanh Anh 6 Mai Lan Huong.docxBai tap thuc hanh Anh 6 Mai Lan Huong.docx
Bai tap thuc hanh Anh 6 Mai Lan Huong.docxbichthuyt81
 
Escort Service in Al Barsha +971509530047 UAE
Escort Service in Al Barsha +971509530047 UAEEscort Service in Al Barsha +971509530047 UAE
Escort Service in Al Barsha +971509530047 UAEvecevep119
 
Escort Service in Abu Dhabi +971509530047 UAE
Escort Service in Abu Dhabi +971509530047 UAEEscort Service in Abu Dhabi +971509530047 UAE
Escort Service in Abu Dhabi +971509530047 UAEvecevep119
 
My Morning Routine - Storyboard Sequence
My Morning Routine - Storyboard SequenceMy Morning Routine - Storyboard Sequence
My Morning Routine - Storyboard Sequenceartbysarahrodriguezg
 
Escort Service in Ajman +971509530047 UAE
Escort Service in Ajman +971509530047 UAEEscort Service in Ajman +971509530047 UAE
Escort Service in Ajman +971509530047 UAEvecevep119
 
Indian Escorts In Al Mankhool 0509430017 Escort Agency in Al Mankhool
Indian Escorts In Al Mankhool 0509430017 Escort Agency in Al MankhoolIndian Escorts In Al Mankhool 0509430017 Escort Agency in Al Mankhool
Indian Escorts In Al Mankhool 0509430017 Escort Agency in Al Mankhoolqueenbanni425
 
Bobbie goods colorinsssssssssssg book.pdf
Bobbie goods colorinsssssssssssg book.pdfBobbie goods colorinsssssssssssg book.pdf
Bobbie goods colorinsssssssssssg book.pdflunavro0105
 
Americana Motel, Motel/Residence, Tucumcari, NM
Americana Motel, Motel/Residence, Tucumcari, NMAmericana Motel, Motel/Residence, Tucumcari, NM
Americana Motel, Motel/Residence, Tucumcari, NMroute66connected
 
Jvc Call Girl +971528604116 Indian Call Girl in Jvc By Dubai Call Girl
Jvc Call Girl +971528604116 Indian Call Girl in Jvc By Dubai Call GirlJvc Call Girl +971528604116 Indian Call Girl in Jvc By Dubai Call Girl
Jvc Call Girl +971528604116 Indian Call Girl in Jvc By Dubai Call Girllijeho2176
 
FORTH QUARTER MAPEH7-PHILIPPINE FESTIVALS.pptx
FORTH QUARTER MAPEH7-PHILIPPINE FESTIVALS.pptxFORTH QUARTER MAPEH7-PHILIPPINE FESTIVALS.pptx
FORTH QUARTER MAPEH7-PHILIPPINE FESTIVALS.pptxJadeTamme
 
Yvette Heiser -How to go viral with your photography?
Yvette Heiser -How to go viral with your photography?Yvette Heiser -How to go viral with your photography?
Yvette Heiser -How to go viral with your photography?Yvette Heiser
 
Roadrunner Motel, Motel/Residence. Tucumcari, NM
Roadrunner Motel, Motel/Residence. Tucumcari, NMRoadrunner Motel, Motel/Residence. Tucumcari, NM
Roadrunner Motel, Motel/Residence. Tucumcari, NMroute66connected
 
San Jon Motel, Motel/Residence, San Jon, NM
San Jon Motel, Motel/Residence, San Jon, NMSan Jon Motel, Motel/Residence, San Jon, NM
San Jon Motel, Motel/Residence, San Jon, NMroute66connected
 
Abu Dhabi Housewife Call Girls +971509530047 Abu Dhabi Call Girls
Abu Dhabi Housewife Call Girls +971509530047 Abu Dhabi Call GirlsAbu Dhabi Housewife Call Girls +971509530047 Abu Dhabi Call Girls
Abu Dhabi Housewife Call Girls +971509530047 Abu Dhabi Call Girlshayawit234
 

Recently uploaded (20)

SLIDESHARE. ART OF THE ROMANTIC PERIOD/ROMANTICISM Art
SLIDESHARE. ART OF THE ROMANTIC PERIOD/ROMANTICISM ArtSLIDESHARE. ART OF THE ROMANTIC PERIOD/ROMANTICISM Art
SLIDESHARE. ART OF THE ROMANTIC PERIOD/ROMANTICISM Art
 
Element of art, Transcreation and usions and overlapping and interrelated ele...
Element of art, Transcreation and usions and overlapping and interrelated ele...Element of art, Transcreation and usions and overlapping and interrelated ele...
Element of art, Transcreation and usions and overlapping and interrelated ele...
 
Escort Service in Al Jaddaf +971509530047 UAE
Escort Service in Al Jaddaf +971509530047 UAEEscort Service in Al Jaddaf +971509530047 UAE
Escort Service in Al Jaddaf +971509530047 UAE
 
Hiway Motel, Motel/Residence, Albuquerque NM
Hiway Motel, Motel/Residence, Albuquerque NMHiway Motel, Motel/Residence, Albuquerque NM
Hiway Motel, Motel/Residence, Albuquerque NM
 
Escort Service in Al Nahda +971509530047 UAE
Escort Service in Al Nahda +971509530047 UAEEscort Service in Al Nahda +971509530047 UAE
Escort Service in Al Nahda +971509530047 UAE
 
Bai tap thuc hanh Anh 6 Mai Lan Huong.docx
Bai tap thuc hanh Anh 6 Mai Lan Huong.docxBai tap thuc hanh Anh 6 Mai Lan Huong.docx
Bai tap thuc hanh Anh 6 Mai Lan Huong.docx
 
Escort Service in Al Barsha +971509530047 UAE
Escort Service in Al Barsha +971509530047 UAEEscort Service in Al Barsha +971509530047 UAE
Escort Service in Al Barsha +971509530047 UAE
 
Escort Service in Abu Dhabi +971509530047 UAE
Escort Service in Abu Dhabi +971509530047 UAEEscort Service in Abu Dhabi +971509530047 UAE
Escort Service in Abu Dhabi +971509530047 UAE
 
My Morning Routine - Storyboard Sequence
My Morning Routine - Storyboard SequenceMy Morning Routine - Storyboard Sequence
My Morning Routine - Storyboard Sequence
 
Escort Service in Ajman +971509530047 UAE
Escort Service in Ajman +971509530047 UAEEscort Service in Ajman +971509530047 UAE
Escort Service in Ajman +971509530047 UAE
 
Indian Escorts In Al Mankhool 0509430017 Escort Agency in Al Mankhool
Indian Escorts In Al Mankhool 0509430017 Escort Agency in Al MankhoolIndian Escorts In Al Mankhool 0509430017 Escort Agency in Al Mankhool
Indian Escorts In Al Mankhool 0509430017 Escort Agency in Al Mankhool
 
Bobbie goods colorinsssssssssssg book.pdf
Bobbie goods colorinsssssssssssg book.pdfBobbie goods colorinsssssssssssg book.pdf
Bobbie goods colorinsssssssssssg book.pdf
 
Americana Motel, Motel/Residence, Tucumcari, NM
Americana Motel, Motel/Residence, Tucumcari, NMAmericana Motel, Motel/Residence, Tucumcari, NM
Americana Motel, Motel/Residence, Tucumcari, NM
 
Jvc Call Girl +971528604116 Indian Call Girl in Jvc By Dubai Call Girl
Jvc Call Girl +971528604116 Indian Call Girl in Jvc By Dubai Call GirlJvc Call Girl +971528604116 Indian Call Girl in Jvc By Dubai Call Girl
Jvc Call Girl +971528604116 Indian Call Girl in Jvc By Dubai Call Girl
 
School :)
School                                 :)School                                 :)
School :)
 
FORTH QUARTER MAPEH7-PHILIPPINE FESTIVALS.pptx
FORTH QUARTER MAPEH7-PHILIPPINE FESTIVALS.pptxFORTH QUARTER MAPEH7-PHILIPPINE FESTIVALS.pptx
FORTH QUARTER MAPEH7-PHILIPPINE FESTIVALS.pptx
 
Yvette Heiser -How to go viral with your photography?
Yvette Heiser -How to go viral with your photography?Yvette Heiser -How to go viral with your photography?
Yvette Heiser -How to go viral with your photography?
 
Roadrunner Motel, Motel/Residence. Tucumcari, NM
Roadrunner Motel, Motel/Residence. Tucumcari, NMRoadrunner Motel, Motel/Residence. Tucumcari, NM
Roadrunner Motel, Motel/Residence. Tucumcari, NM
 
San Jon Motel, Motel/Residence, San Jon, NM
San Jon Motel, Motel/Residence, San Jon, NMSan Jon Motel, Motel/Residence, San Jon, NM
San Jon Motel, Motel/Residence, San Jon, NM
 
Abu Dhabi Housewife Call Girls +971509530047 Abu Dhabi Call Girls
Abu Dhabi Housewife Call Girls +971509530047 Abu Dhabi Call GirlsAbu Dhabi Housewife Call Girls +971509530047 Abu Dhabi Call Girls
Abu Dhabi Housewife Call Girls +971509530047 Abu Dhabi Call Girls
 

11 alternative search

  • 1. Alternative Search Formulations and Applications Chapter 11.
  • 2. 2 Outline  Assignment Problems  Constraint Propagation  Constructive Methods  Heuristic Repair  Function Optimization
  • 3. 3 Assignment Problems  Assigning values to variables subject to constraints  Examples – Eight-Queens problem – Crossword puzzles
  • 4. 4 Eight-Queens Problem X X X X X X X X No queen can be placed so that it can capture any of the others, according to the rules of chess An obvious data structure is 8-by-8 array containing queen(1) or empty(0)
  • 5. 5 Eight-Queens Problem (cont’d)  We can solve constraint-satisfaction problems by graph-search methods – Constructive method – Repair approach – Function optimization
  • 6. 6 Constructive Method – Begin with no assignments – Each operator adds a queen to the array in such a way that the resulting array satisfies constraints among its queens – Constraint propagation technique helps markedly in reducing the size of the search space
  • 7. 7 Constraint Propagation (four-queens problem) – Each variable constrains all of the others, so all of the nodes have arcs to all other nodes – A directed constraint arc(i,j), variable labeling i is constrained by the value of the variable labeling j
  • 8. 8 Constraint Propagation (cont’d) – Circle: Values eliminated by first making arc(q2,q3) consistent – Box: Values eliminated by next making arc(q3,q4) consistent
  • 9. 9 Heuristic Repair – Starts with a proposed solution, which most probably does not satisfy the constraints – The operators change a data structure so that it violates fewer constraints
  • 10. 10 Function Optimization  Hill-climbing – Traversing by moving from one point to that “adjacent” point having the highest elevation – To solve local maxima problem  Several separate hill-climbing, stating at different locations(choose the highest of these)  Simulated annealing (choose by probability distribution)
  • 11. 11 Solving the Two-Color Problem (Hill Climbing) 1. Set the current node, n, to a randomly selected node, n0. 2. Generate the successors of n. 3. If Vb<V(n), exit with n as the best node found so far. 4. Otherwise,set n to nb, and go to step 2.