SlideShare a Scribd company logo
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

PPT
Knapsack problem using fixed tuple
PDF
N Queens problem
PPTX
Knights tour on chessboard using backtracking
PPT
BackTracking Algorithm: Technique and Examples
PPTX
Solution of N Queens Problem genetic algorithm
PPTX
Solving 0-1 knapsack problems based on amoeboid organism algorithm
DOCX
Math 5 problem set
PDF
backtracking algorithms of ada
Knapsack problem using fixed tuple
N Queens problem
Knights tour on chessboard using backtracking
BackTracking Algorithm: Technique and Examples
Solution of N Queens Problem genetic algorithm
Solving 0-1 knapsack problems based on amoeboid organism algorithm
Math 5 problem set
backtracking algorithms of ada

What's hot (19)

PPTX
N queen problem
PPTX
The n Queen Problem
PPT
Backtracking
PDF
Thesis Presentation_Extreme Learning Machine_Nimai_SC14M045
PPTX
N queens using backtracking
PDF
3 handouts section3-5
PPTX
Daa unit 3
PPT
PDF
V2 i2 2013_paper10
PPT
3.6 systems and matrices[1]
PPTX
data structures- back tracking
PPTX
Backtracking
PDF
directed-research-report
PPT
Inner product
PPT
Genetic Algorithm based Approach to solve Non-Fractional (0/1) Knapsack Optim...
PDF
Spacey random walks and higher-order data analysis
PPTX
Ms nikita greedy agorithm
PDF
H023078082
N queen problem
The n Queen Problem
Backtracking
Thesis Presentation_Extreme Learning Machine_Nimai_SC14M045
N queens using backtracking
3 handouts section3-5
Daa unit 3
V2 i2 2013_paper10
3.6 systems and matrices[1]
data structures- back tracking
Backtracking
directed-research-report
Inner product
Genetic Algorithm based Approach to solve Non-Fractional (0/1) Knapsack Optim...
Spacey random walks and higher-order data analysis
Ms nikita greedy agorithm
H023078082
Ad

Viewers also liked (20)

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

Similar to 11 alternative search (20)

PPT
5 csp
PPT
05-constraint-satisfaction-problems-(us).ppt
PPT
Constraint Satisfaction problem in AI.ppt
PPT
AI Lecture 4 (informed search and exploration)
PPT
M4 heuristics
PPT
Searchadditional2
PPT
Presentacion nro 1 redes y comunicaciones de datos
PPT
m4-heuristics.ppt
PPT
Cs ps, sat, fol resolution strategies
PPTX
lecture9 constraint problem and path finding
PPTX
heuristic technique.pptx...............................
PDF
02LocalSearch.pdf
PPT
M4 Heuristics
PPTX
AI UNIT-1-Constraint Satisfaction Problem and MEA .pptx
PDF
AI 4 | Informed Search
PPT
CSP UNIT 2 AIML.ppt
PPT
Unit II Problem Solving Methods in AI K.sundar,AP/CSE,VEC
PPTX
Constrain satisfaction in artificial intelligence.pptx
PPT
Constraint_Satisfaction problem based_slides.ppt
PDF
Heuristic search
5 csp
05-constraint-satisfaction-problems-(us).ppt
Constraint Satisfaction problem in AI.ppt
AI Lecture 4 (informed search and exploration)
M4 heuristics
Searchadditional2
Presentacion nro 1 redes y comunicaciones de datos
m4-heuristics.ppt
Cs ps, sat, fol resolution strategies
lecture9 constraint problem and path finding
heuristic technique.pptx...............................
02LocalSearch.pdf
M4 Heuristics
AI UNIT-1-Constraint Satisfaction Problem and MEA .pptx
AI 4 | Informed Search
CSP UNIT 2 AIML.ppt
Unit II Problem Solving Methods in AI K.sundar,AP/CSE,VEC
Constrain satisfaction in artificial intelligence.pptx
Constraint_Satisfaction problem based_slides.ppt
Heuristic search

More from Tianlu Wang (20)

PDF
L7 er2
PDF
L8 design1
PDF
L9 design2
PDF
14 pro resolution
PDF
13 propositional calculus
PDF
12 adversal search
PDF
10 2 sum
PDF
22 planning
PDF
20 bayes learning
PDF
19 uncertain evidence
PDF
17 2 expert systems
PDF
17 1 knowledge-based system
PDF
16 1 predicate resolution
PDF
15 predicate
PDF
09 heuristic search
PDF
08 uninformed search
PDF
07 plan agent
PDF
06 robot vision
PDF
05 state machine
PDF
04 1 evolution
L7 er2
L8 design1
L9 design2
14 pro resolution
13 propositional calculus
12 adversal search
10 2 sum
22 planning
20 bayes learning
19 uncertain evidence
17 2 expert systems
17 1 knowledge-based system
16 1 predicate resolution
15 predicate
09 heuristic search
08 uninformed search
07 plan agent
06 robot vision
05 state machine
04 1 evolution

Recently uploaded (20)

PPTX
WEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEK
PPTX
400kV_Switchyardasdsfesfewffwefrrwewew_Training_Module.pptx
PPTX
Nationalism in India Ch-2.pptx ssssss classs 10
PPTX
philippine contemporary artscot ppt.pptx
PPTX
mineralsshow-160112142010.pptxkuygyu buybub
PPTX
Understanding Postmodernism Powerpoint.pptx
PPTX
GREEN BUILDINGS are eco friendly for environment
PPTX
668819271-A Relibility CCEPTANCE-SAMPLING.pptx
PPTX
Neoclassical and Mystery Plays Entertain
PPTX
National_Artists_for_Dance_with_Examples-1.pptx
PPTX
Structuralism and functionalism dhshjdjejdj
PDF
Music-and-Arts_jwkskwjsjsjsjsjsjsjdisiaiajsjjzjz
PPTX
Q1_TLE_8_Week_2asfsdgsgsdgdsgfasdgwrgrgqrweg
PPTX
Lc 10hhjkhhjjkkkkjhhuiooopojjjoookjji.pptx
PPTX
Review1_Bollywood_Project analysis of bolywood trends from 1950s to 2025
PPTX
Presentation on tradtional textiles of kutch
PDF
630895715-Romanesque-Architecture-ppt.pdf
PPTX
QA PROCESS FLOW CHART (1).pptxaaaaaaaaaaaa
PPTX
CPAR7 ARTS GRADE 112 LITERARY ARTS OR LI
PDF
Dating-Courtship-Marriage-and-Responsible-Parenthood.pdf
WEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEK
400kV_Switchyardasdsfesfewffwefrrwewew_Training_Module.pptx
Nationalism in India Ch-2.pptx ssssss classs 10
philippine contemporary artscot ppt.pptx
mineralsshow-160112142010.pptxkuygyu buybub
Understanding Postmodernism Powerpoint.pptx
GREEN BUILDINGS are eco friendly for environment
668819271-A Relibility CCEPTANCE-SAMPLING.pptx
Neoclassical and Mystery Plays Entertain
National_Artists_for_Dance_with_Examples-1.pptx
Structuralism and functionalism dhshjdjejdj
Music-and-Arts_jwkskwjsjsjsjsjsjsjdisiaiajsjjzjz
Q1_TLE_8_Week_2asfsdgsgsdgdsgfasdgwrgrgqrweg
Lc 10hhjkhhjjkkkkjhhuiooopojjjoookjji.pptx
Review1_Bollywood_Project analysis of bolywood trends from 1950s to 2025
Presentation on tradtional textiles of kutch
630895715-Romanesque-Architecture-ppt.pdf
QA PROCESS FLOW CHART (1).pptxaaaaaaaaaaaa
CPAR7 ARTS GRADE 112 LITERARY ARTS OR LI
Dating-Courtship-Marriage-and-Responsible-Parenthood.pdf

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.