SlideShare a Scribd company logo
1 of 53
Prof.Mrs.M.P.Atre
PVG’s COET, SPPU
Waltz Algorithm: Artificial Intelligence
9/18/20171
Here I have presented the Waltz
algorithm in three different parts as
Part 1, 2 and 3 for better
understanding
9/18/20172
Part 1
9/18/20173
Constraints in Search and Knowledge
Representation
 Constraints and constraint satisfaction are interesting in two
ways.
 1. Constraints supply a different method of imposing
knowledge on a problem
 2. Constraint propagation enables on to reach a global solution
using only local search, with obvious savings in the search space
9/18/20174
 Again, (2) shows the interdependency of knowledge and
search.
 In practice one typically has a set of parameters whose values
you are after, and a set of constraints which when applied to a
single parameter do not determine it uniquely, but when
applied to all the parameters do provide a unique global
solution.
9/18/20175
The algorithm goes like:
9/18/20176
 Until a complete solution is found or all paths are dead ends
 1. Select an unexpanded node of the search graph.
 2.Apply the constraint inference rules to the selected node to
generate all possible new constraints.
 3. If the set of constraints contains a contradiction announce this
path is dead end.
 4. Else if the set of constraints describes a complete solution
announce SUCCESS.
 5. Else apply the problem space rules to generate new partial
solutions which are consistent with the latest constraints. Insert
these solutions in the search graph.
Constraint Propagation in line labeling
9/18/20177
 One of the most elegantAI applications of constraint
satisfaction is junction and line labeling in computer vision,
an example of symbolic, rather than numeric, constraint
propagation.
 Human beings have been shown to have an in-built ability to
make sense of the 3D shape implications of 2D line drawings,
especially polyhedra.
 This ability comes about because there are provably very few
ways of interpretation line drawings.
 This ability has been captured in machine vision programs,
the simplest of which we outline now
9/18/20178
 Consider objects which:
 are without cracks and opaque
 with only 3-faced junctions
 and are viewed from general (generic) positions.
Let us now look at edges on a polyhedral object.
These can be convex, concave or occluding (two sorts), so there
are four ways of labeling a line.
We label these with a plus, a minus, or left or right arrows (by
convention the solid face is to right of edge when traversed in
the direction of the arrow).
9/18/20179
If we make these restrictions (Note they can be lifted), it turns out
that there are only four types of junction to be considered.These are
L-junctions,Y- or fork-junctions,W- or arrow-junctions andT-
junctions.
9/18/201710
9/18/201711
An example of a correctly labeled drawing is given below
How can line-labeling be done
automatically?
9/18/201712
 There are some powerful constraints on the possible junction type.
 These are related to the way surfaces can be arranged in the 3D
world.
 You will deal with this aspect in the (selective) computer vision
course.
 There are four ways of labeling a line, there should be 16 ways of
describing an L-junction and 64 ways for each ofW,Y andT.
 So there could be 208 labeled junction types in all. In fact there
are only 16 allowed junction types.
Waltz labeling algorithm
9/18/201713
 Take the line drawing and on each vertex heap up the possible
junctions.
 Now suppose we exit the junction along an edge via a (+) label,
for example.
 This would mean we must enter the next junction via a (+) label.
 Suppose there was no such possibility: we should obviously
discount the initial choice of junction and so on.
 Thus we travel around loops propagating the constraints, until we
can do no more in that loop.
 Then we pass to another and so on.
 Only when there is a complete irreducible interpretation do we
stop.
An example of Waltz Constraint
Propagation
9/18/201714
Ambiguous drawings
9/18/201715
All 4 labeling shown below are consistent and correspond to different objects and backgrounds.
Problems
9/18/201716
Part 2
9/18/201717
Waltz Algorithm: Constraint
Satisfaction
 Talks about the line drawings
 Many perceptual tasks appear to be highly complex
 because the number of interpretations that can be assigned to
individual components of an input is large and the number of
combinations of those components also appears to be
enormous
 Clear analysis can show that many combinations can not
occur
 These natural constraints can be exploited in the
understanding process to reduce the complexity from
unmanageable to manageable.
9/18/201718
Important steps for using constraints in
problem solving:
 1.Analyze the problem domain to determine the actual
constraints.
 2. Solve the problem by applying a constraint satisfaction
algorithm.
9/18/201719
 Consider for example
 a three dimensional line drawing
 analysis process is to determine the object described by the
lines.
 geometric relationships between different types of line
junctions helped to determine the object types
Three Dimensional Polyhedral junction types. 9/18/201720
 InWaltz’s algorithm, labels are assigned to lines of various
types-say concave edges are produced by two adjacent
touching surfaces which induce a concave (less than 180
Degrees) depth change
 Conversely, convex edges produce a convexly viewed depth
(greater than 180 degrees), and a boundary edge outlines a
surface that obstructs other objects
9/18/201721
 To label a concave edge, a minus sign is used
 Convex edges one labeled with a plus sign, and a right or left
arrow is used to label the boundary edges
 By restricting vertices to be the intersection of three object
faces, it is possible to reduce the number of basic vertex
types to only four : the L, theT , the Fork and the Arrow
9/18/201722
 The L types ForkTypesT types
 Valid junction labels for three-dimensional shapes.
9/18/201723
Referring to previous figure
 When a three-dimensional object is viewed from all possible
positions, the four junction types, together with the valid
edge labels, give rise to eighteen different permissible
junction configurations as shown in previous slide figure
 Geometric constraints, together with a consistent labeling
scheme, can simplify the object identification process.
 A set of labeling rules which facilitates this process can be
developed for different classes of objects
9/18/201724
Following rules will apply for many
polyhedral objects:
 1.The arrow should be directed to mark boundaries by
traversing the object in a clockwise direction.
 2. Unbroken lines should have the same lable assigned at both
ends.
 3.When a fork is labeled with a+ edge, it must have all three
edges label as + , and
 4.Arrow junctions which have a label on both bard edges
must also have a + label on the shaft.
9/18/201725
These rules can be applied to a
polygonal object as given in figure
Example of object labeling
9/18/201726
Applying Waltz for Pyramid
 Starting with any edge having an object face on its right, the
external boundary is labeled with the a in a clockwise
direction
 Interior lines are then labeled with + or _ consistent with
the other labeling rules
 To see how waltz constraint satisfaction algorithm works,
consider the image drawing of a pyramid as given in figure3
at the right side of the pyramid are all possible labeling for
the four ujunctionsA, b, C and D.
9/18/201727
Waltz to Pyramid
9/18/201728
 Using these labels as mutual constraints on connected junctions,
permissible labels for the whole pyramid can be determined
 The constraint satisfaction procedure works as follows:
 Starting at an arbitrary junction, sayA, a record of all permissible
labels is made for that junction.
 An adjacent junction is then chosen, say , B and labels which are
inconsistent with the lineAB are then eliminated from the permissible
A and B lists
 In this case, the line joining B can only be a +, - or an up arrow a
 consequently, two of the possible A labeling can be eliminated and the
remaining are
9/18/201729
 Choosing junction c next, we find that the BC constraints are
satisfied by all of the B and C labeling, so on reduction is
possible with this step
 On the other hand, the line AC must be labeled as – or as an
up-left-arrow ß to be consistent
 Therefore, an additional label for A can be eliminated to
reduce the remainder to the following:
9/18/201730
 This new restriction on a now permit the elimination of one B
labeling to maintain consistency.
 Thus, the permissible B labeling remaining are now
 This reduction in turn, places a new restriction on BC, permitting
the elimination of one C label, since BC must now be labeled as a
+ only.
 This leaves the remaining C labels as show in below diagram.
9/18/201731
 Moving now to junction d, we see that of the six possible D
leadings, only three satisfy the BD constraint of a up or a
down arrow.
 Therefore, the remaining permissible labeling for d are now
 Continuing with the above procedure, we see that further
label eliminations are not possible since all constraints have
been satisfied
 This process is completed by finding the different
combinations of unique labeling that can be assigned to the
figure
 An enumerations of the remaining label shows that its is
possible to find only three different labeling
9/18/201732
To summarize the Waltz Algorithm
9/18/201733
Part 3
9/18/201734
Waltz with Example: courtesy to
Dr.Lehman
9/18/201735
Before we start with Waltz Algorithm,
let’s recall CSP: Constraint Satisfaction
Problem
9/18/201736
9/18/201737
9/18/201738
9/18/201739
Real world CSPs
 Assignment problems: e.g., who teaches what class !
 Timetabling problems: e.g., which class is offered when and
where? !
 Hardware configuration !
 Transportation scheduling ! Factory scheduling !
 Floor-planning !
 Fault diagnosis ! … lots more! !
 Many real-world problems involve real-valued variables…
9/18/201740
9/18/201741
9/18/201742
9/18/201743
9/18/201744
9/18/201745
9/18/201746
9/18/201747
9/18/201748
9/18/201749
9/18/201750
9/18/201751
9/18/201752
THANK YOU
9/18/201753

More Related Content

What's hot

Lecture 16 memory bounded search
Lecture 16 memory bounded searchLecture 16 memory bounded search
Lecture 16 memory bounded searchHema Kashyap
 
Knowledge representation and Predicate logic
Knowledge representation and Predicate logicKnowledge representation and Predicate logic
Knowledge representation and Predicate logicAmey Kerkar
 
Chapter 10. Cluster Analysis Basic Concepts and Methods.ppt
Chapter 10. Cluster Analysis Basic Concepts and Methods.pptChapter 10. Cluster Analysis Basic Concepts and Methods.ppt
Chapter 10. Cluster Analysis Basic Concepts and Methods.pptSubrata Kumer Paul
 
lazy learners and other classication methods
lazy learners and other classication methodslazy learners and other classication methods
lazy learners and other classication methodsrajshreemuthiah
 
Control Strategies in AI
Control Strategies in AIControl Strategies in AI
Control Strategies in AIAmey Kerkar
 
Induction and Decision Tree Learning (Part 1)
Induction and Decision Tree Learning (Part 1)Induction and Decision Tree Learning (Part 1)
Induction and Decision Tree Learning (Part 1)butest
 
Knowledge representation In Artificial Intelligence
Knowledge representation In Artificial IntelligenceKnowledge representation In Artificial Intelligence
Knowledge representation In Artificial IntelligenceRamla Sheikh
 
4.3 multimedia datamining
4.3 multimedia datamining4.3 multimedia datamining
4.3 multimedia dataminingKrish_ver2
 
AI PPT-ALR_Unit-3-1.pdf
AI PPT-ALR_Unit-3-1.pdfAI PPT-ALR_Unit-3-1.pdf
AI PPT-ALR_Unit-3-1.pdflokesh406075
 
Implement principal component analysis (PCA) in python from scratch
Implement principal component analysis (PCA) in python from scratchImplement principal component analysis (PCA) in python from scratch
Implement principal component analysis (PCA) in python from scratchEshanAgarwal4
 
knowledge representation using rules
knowledge representation using rulesknowledge representation using rules
knowledge representation using rulesHarini Balamurugan
 

What's hot (20)

Ai 8 puzzle problem
Ai 8 puzzle problemAi 8 puzzle problem
Ai 8 puzzle problem
 
Lecture 16 memory bounded search
Lecture 16 memory bounded searchLecture 16 memory bounded search
Lecture 16 memory bounded search
 
Knowledge representation and Predicate logic
Knowledge representation and Predicate logicKnowledge representation and Predicate logic
Knowledge representation and Predicate logic
 
Chapter 10. Cluster Analysis Basic Concepts and Methods.ppt
Chapter 10. Cluster Analysis Basic Concepts and Methods.pptChapter 10. Cluster Analysis Basic Concepts and Methods.ppt
Chapter 10. Cluster Analysis Basic Concepts and Methods.ppt
 
lazy learners and other classication methods
lazy learners and other classication methodslazy learners and other classication methods
lazy learners and other classication methods
 
And or search
And or searchAnd or search
And or search
 
And or graph
And or graphAnd or graph
And or graph
 
Control Strategies in AI
Control Strategies in AIControl Strategies in AI
Control Strategies in AI
 
Knowledge representation
Knowledge representationKnowledge representation
Knowledge representation
 
Ontology engineering
Ontology engineering Ontology engineering
Ontology engineering
 
Induction and Decision Tree Learning (Part 1)
Induction and Decision Tree Learning (Part 1)Induction and Decision Tree Learning (Part 1)
Induction and Decision Tree Learning (Part 1)
 
Knowledge representation In Artificial Intelligence
Knowledge representation In Artificial IntelligenceKnowledge representation In Artificial Intelligence
Knowledge representation In Artificial Intelligence
 
4.3 multimedia datamining
4.3 multimedia datamining4.3 multimedia datamining
4.3 multimedia datamining
 
data mining
data miningdata mining
data mining
 
AI PPT-ALR_Unit-3-1.pdf
AI PPT-ALR_Unit-3-1.pdfAI PPT-ALR_Unit-3-1.pdf
AI PPT-ALR_Unit-3-1.pdf
 
Computer Vision
Computer VisionComputer Vision
Computer Vision
 
And or graph problem reduction using predicate logic
And or graph problem reduction using predicate logicAnd or graph problem reduction using predicate logic
And or graph problem reduction using predicate logic
 
Implement principal component analysis (PCA) in python from scratch
Implement principal component analysis (PCA) in python from scratchImplement principal component analysis (PCA) in python from scratch
Implement principal component analysis (PCA) in python from scratch
 
AI: AI & Problem Solving
AI: AI & Problem SolvingAI: AI & Problem Solving
AI: AI & Problem Solving
 
knowledge representation using rules
knowledge representation using rulesknowledge representation using rules
knowledge representation using rules
 

Similar to Waltz algorithm in artificial intelligence

Another Simple but Faster Method for 2D Line Clipping
Another Simple but Faster Method for 2D Line ClippingAnother Simple but Faster Method for 2D Line Clipping
Another Simple but Faster Method for 2D Line Clippingijcga
 
Another Simple but Faster Method for 2D Line Clipping
Another Simple but Faster Method for 2D Line ClippingAnother Simple but Faster Method for 2D Line Clipping
Another Simple but Faster Method for 2D Line Clippingijcga
 
Another simple but faster method for 2 d line clipping
Another simple but faster method for 2 d line clippingAnother simple but faster method for 2 d line clipping
Another simple but faster method for 2 d line clippingijcga
 
Data Compression in Data mining and Business Intelligencs
Data Compression in Data mining and Business Intelligencs Data Compression in Data mining and Business Intelligencs
Data Compression in Data mining and Business Intelligencs ShahDhruv21
 
Graph Theory 117 © David Lippman Creative Commons BY-
  Graph Theory   117 © David Lippman  Creative Commons BY-  Graph Theory   117 © David Lippman  Creative Commons BY-
Graph Theory 117 © David Lippman Creative Commons BY-maple8qvlisbey
 
Graph Theory 117 © David Lippman Creative Commons BY-.docx
Graph Theory   117 © David Lippman  Creative Commons BY-.docxGraph Theory   117 © David Lippman  Creative Commons BY-.docx
Graph Theory 117 © David Lippman Creative Commons BY-.docxdurantheseldine
 
How to draw a good graph
How to draw a good graphHow to draw a good graph
How to draw a good graphTarun Gehlot
 
Essay On Linear Function
Essay On Linear FunctionEssay On Linear Function
Essay On Linear FunctionAngie Lee
 
A TRIANGLE-TRIANGLE INTERSECTION ALGORITHM
A TRIANGLE-TRIANGLE INTERSECTION ALGORITHM A TRIANGLE-TRIANGLE INTERSECTION ALGORITHM
A TRIANGLE-TRIANGLE INTERSECTION ALGORITHM csandit
 
FREQUENT SUBGRAPH MINING ALGORITHMS - A SURVEY AND FRAMEWORK FOR CLASSIFICATION
FREQUENT SUBGRAPH MINING ALGORITHMS - A SURVEY AND FRAMEWORK FOR CLASSIFICATIONFREQUENT SUBGRAPH MINING ALGORITHMS - A SURVEY AND FRAMEWORK FOR CLASSIFICATION
FREQUENT SUBGRAPH MINING ALGORITHMS - A SURVEY AND FRAMEWORK FOR CLASSIFICATIONcscpconf
 
Linear Inequality slayerix
Linear Inequality slayerixLinear Inequality slayerix
Linear Inequality slayerixAshams kurian
 
for sbi so Ds c c++ unix rdbms sql cn os
for sbi so   Ds c c++ unix rdbms sql cn osfor sbi so   Ds c c++ unix rdbms sql cn os
for sbi so Ds c c++ unix rdbms sql cn osalisha230390
 

Similar to Waltz algorithm in artificial intelligence (20)

16_graphical_models.pdf
16_graphical_models.pdf16_graphical_models.pdf
16_graphical_models.pdf
 
Another Simple but Faster Method for 2D Line Clipping
Another Simple but Faster Method for 2D Line ClippingAnother Simple but Faster Method for 2D Line Clipping
Another Simple but Faster Method for 2D Line Clipping
 
Another Simple but Faster Method for 2D Line Clipping
Another Simple but Faster Method for 2D Line ClippingAnother Simple but Faster Method for 2D Line Clipping
Another Simple but Faster Method for 2D Line Clipping
 
Another simple but faster method for 2 d line clipping
Another simple but faster method for 2 d line clippingAnother simple but faster method for 2 d line clipping
Another simple but faster method for 2 d line clipping
 
Lar calc10 ch03_sec5
Lar calc10 ch03_sec5Lar calc10 ch03_sec5
Lar calc10 ch03_sec5
 
Data Compression in Data mining and Business Intelligencs
Data Compression in Data mining and Business Intelligencs Data Compression in Data mining and Business Intelligencs
Data Compression in Data mining and Business Intelligencs
 
Graph Theory 117 © David Lippman Creative Commons BY-
  Graph Theory   117 © David Lippman  Creative Commons BY-  Graph Theory   117 © David Lippman  Creative Commons BY-
Graph Theory 117 © David Lippman Creative Commons BY-
 
Graph Theory 117 © David Lippman Creative Commons BY-.docx
Graph Theory   117 © David Lippman  Creative Commons BY-.docxGraph Theory   117 © David Lippman  Creative Commons BY-.docx
Graph Theory 117 © David Lippman Creative Commons BY-.docx
 
How to draw a good graph
How to draw a good graphHow to draw a good graph
How to draw a good graph
 
Thesis_Draft_Nurkhaidarov
Thesis_Draft_NurkhaidarovThesis_Draft_Nurkhaidarov
Thesis_Draft_Nurkhaidarov
 
Class8 calculus ii
Class8 calculus iiClass8 calculus ii
Class8 calculus ii
 
logic.pptx
logic.pptxlogic.pptx
logic.pptx
 
DATA STRUCTURES.pptx
DATA STRUCTURES.pptxDATA STRUCTURES.pptx
DATA STRUCTURES.pptx
 
Essay On Linear Function
Essay On Linear FunctionEssay On Linear Function
Essay On Linear Function
 
A TRIANGLE-TRIANGLE INTERSECTION ALGORITHM
A TRIANGLE-TRIANGLE INTERSECTION ALGORITHM A TRIANGLE-TRIANGLE INTERSECTION ALGORITHM
A TRIANGLE-TRIANGLE INTERSECTION ALGORITHM
 
Ijetr011961
Ijetr011961Ijetr011961
Ijetr011961
 
FREQUENT SUBGRAPH MINING ALGORITHMS - A SURVEY AND FRAMEWORK FOR CLASSIFICATION
FREQUENT SUBGRAPH MINING ALGORITHMS - A SURVEY AND FRAMEWORK FOR CLASSIFICATIONFREQUENT SUBGRAPH MINING ALGORITHMS - A SURVEY AND FRAMEWORK FOR CLASSIFICATION
FREQUENT SUBGRAPH MINING ALGORITHMS - A SURVEY AND FRAMEWORK FOR CLASSIFICATION
 
Linear Inequality slayerix
Linear Inequality slayerixLinear Inequality slayerix
Linear Inequality slayerix
 
Linear Inequality
Linear InequalityLinear Inequality
Linear Inequality
 
for sbi so Ds c c++ unix rdbms sql cn os
for sbi so   Ds c c++ unix rdbms sql cn osfor sbi so   Ds c c++ unix rdbms sql cn os
for sbi so Ds c c++ unix rdbms sql cn os
 

More from Minakshi Atre

Signals&Systems: Quick pointers to Fundamentals
Signals&Systems: Quick pointers to FundamentalsSignals&Systems: Quick pointers to Fundamentals
Signals&Systems: Quick pointers to FundamentalsMinakshi Atre
 
Unit 4 Statistical Learning Methods: EM algorithm
Unit 4 Statistical Learning Methods: EM algorithmUnit 4 Statistical Learning Methods: EM algorithm
Unit 4 Statistical Learning Methods: EM algorithmMinakshi Atre
 
Inference in HMM and Bayesian Models
Inference in HMM and Bayesian ModelsInference in HMM and Bayesian Models
Inference in HMM and Bayesian ModelsMinakshi Atre
 
Artificial Intelligence: Basic Terminologies
Artificial Intelligence: Basic TerminologiesArtificial Intelligence: Basic Terminologies
Artificial Intelligence: Basic TerminologiesMinakshi Atre
 
2)local search algorithms
2)local search algorithms2)local search algorithms
2)local search algorithmsMinakshi Atre
 
Performance appraisal/ assessment in higher educational institutes (HEI)
Performance appraisal/ assessment in higher educational institutes (HEI)Performance appraisal/ assessment in higher educational institutes (HEI)
Performance appraisal/ assessment in higher educational institutes (HEI)Minakshi Atre
 
Artificial intelligence agents and environment
Artificial intelligence agents and environmentArtificial intelligence agents and environment
Artificial intelligence agents and environmentMinakshi Atre
 
Unit 6: DSP applications
Unit 6: DSP applications Unit 6: DSP applications
Unit 6: DSP applications Minakshi Atre
 
Unit 6: DSP applications
Unit 6: DSP applicationsUnit 6: DSP applications
Unit 6: DSP applicationsMinakshi Atre
 
Learning occam razor
Learning occam razorLearning occam razor
Learning occam razorMinakshi Atre
 
Perception in artificial intelligence
Perception in artificial intelligencePerception in artificial intelligence
Perception in artificial intelligenceMinakshi Atre
 
Popular search algorithms
Popular search algorithmsPopular search algorithms
Popular search algorithmsMinakshi Atre
 
Artificial Intelligence Terminologies
Artificial Intelligence TerminologiesArtificial Intelligence Terminologies
Artificial Intelligence TerminologiesMinakshi Atre
 
composite video signal
composite video signalcomposite video signal
composite video signalMinakshi Atre
 
Basic terminologies of television
Basic terminologies of televisionBasic terminologies of television
Basic terminologies of televisionMinakshi Atre
 

More from Minakshi Atre (20)

Part1 speech basics
Part1 speech basicsPart1 speech basics
Part1 speech basics
 
Signals&Systems: Quick pointers to Fundamentals
Signals&Systems: Quick pointers to FundamentalsSignals&Systems: Quick pointers to Fundamentals
Signals&Systems: Quick pointers to Fundamentals
 
Unit 4 Statistical Learning Methods: EM algorithm
Unit 4 Statistical Learning Methods: EM algorithmUnit 4 Statistical Learning Methods: EM algorithm
Unit 4 Statistical Learning Methods: EM algorithm
 
Inference in HMM and Bayesian Models
Inference in HMM and Bayesian ModelsInference in HMM and Bayesian Models
Inference in HMM and Bayesian Models
 
Artificial Intelligence: Basic Terminologies
Artificial Intelligence: Basic TerminologiesArtificial Intelligence: Basic Terminologies
Artificial Intelligence: Basic Terminologies
 
2)local search algorithms
2)local search algorithms2)local search algorithms
2)local search algorithms
 
Performance appraisal/ assessment in higher educational institutes (HEI)
Performance appraisal/ assessment in higher educational institutes (HEI)Performance appraisal/ assessment in higher educational institutes (HEI)
Performance appraisal/ assessment in higher educational institutes (HEI)
 
DSP preliminaries
DSP preliminariesDSP preliminaries
DSP preliminaries
 
Artificial intelligence agents and environment
Artificial intelligence agents and environmentArtificial intelligence agents and environment
Artificial intelligence agents and environment
 
Unit 6: DSP applications
Unit 6: DSP applications Unit 6: DSP applications
Unit 6: DSP applications
 
Unit 6: DSP applications
Unit 6: DSP applicationsUnit 6: DSP applications
Unit 6: DSP applications
 
Learning occam razor
Learning occam razorLearning occam razor
Learning occam razor
 
Learning in AI
Learning in AILearning in AI
Learning in AI
 
Perception in artificial intelligence
Perception in artificial intelligencePerception in artificial intelligence
Perception in artificial intelligence
 
Popular search algorithms
Popular search algorithmsPopular search algorithms
Popular search algorithms
 
Artificial Intelligence Terminologies
Artificial Intelligence TerminologiesArtificial Intelligence Terminologies
Artificial Intelligence Terminologies
 
composite video signal
composite video signalcomposite video signal
composite video signal
 
Basic terminologies of television
Basic terminologies of televisionBasic terminologies of television
Basic terminologies of television
 
Mpeg 2
Mpeg 2Mpeg 2
Mpeg 2
 
Beginning of dtv
Beginning of dtvBeginning of dtv
Beginning of dtv
 

Recently uploaded

Unleashing the Power of the SORA AI lastest leap
Unleashing the Power of the SORA AI lastest leapUnleashing the Power of the SORA AI lastest leap
Unleashing the Power of the SORA AI lastest leapRishantSharmaFr
 
KubeKraft presentation @CloudNativeHooghly
KubeKraft presentation @CloudNativeHooghlyKubeKraft presentation @CloudNativeHooghly
KubeKraft presentation @CloudNativeHooghlysanyuktamishra911
 
Double Revolving field theory-how the rotor develops torque
Double Revolving field theory-how the rotor develops torqueDouble Revolving field theory-how the rotor develops torque
Double Revolving field theory-how the rotor develops torqueBhangaleSonal
 
Call Girls In Bangalore ☎ 7737669865 🥵 Book Your One night Stand
Call Girls In Bangalore ☎ 7737669865 🥵 Book Your One night StandCall Girls In Bangalore ☎ 7737669865 🥵 Book Your One night Stand
Call Girls In Bangalore ☎ 7737669865 🥵 Book Your One night Standamitlee9823
 
Design For Accessibility: Getting it right from the start
Design For Accessibility: Getting it right from the startDesign For Accessibility: Getting it right from the start
Design For Accessibility: Getting it right from the startQuintin Balsdon
 
22-prompt engineering noted slide shown.pdf
22-prompt engineering noted slide shown.pdf22-prompt engineering noted slide shown.pdf
22-prompt engineering noted slide shown.pdf203318pmpc
 
Thermal Engineering-R & A / C - unit - V
Thermal Engineering-R & A / C - unit - VThermal Engineering-R & A / C - unit - V
Thermal Engineering-R & A / C - unit - VDineshKumar4165
 
University management System project report..pdf
University management System project report..pdfUniversity management System project report..pdf
University management System project report..pdfKamal Acharya
 
A Study of Urban Area Plan for Pabna Municipality
A Study of Urban Area Plan for Pabna MunicipalityA Study of Urban Area Plan for Pabna Municipality
A Study of Urban Area Plan for Pabna MunicipalityMorshed Ahmed Rahath
 
Generative AI or GenAI technology based PPT
Generative AI or GenAI technology based PPTGenerative AI or GenAI technology based PPT
Generative AI or GenAI technology based PPTbhaskargani46
 
Navigating Complexity: The Role of Trusted Partners and VIAS3D in Dassault Sy...
Navigating Complexity: The Role of Trusted Partners and VIAS3D in Dassault Sy...Navigating Complexity: The Role of Trusted Partners and VIAS3D in Dassault Sy...
Navigating Complexity: The Role of Trusted Partners and VIAS3D in Dassault Sy...Arindam Chakraborty, Ph.D., P.E. (CA, TX)
 
UNIT - IV - Air Compressors and its Performance
UNIT - IV - Air Compressors and its PerformanceUNIT - IV - Air Compressors and its Performance
UNIT - IV - Air Compressors and its Performancesivaprakash250
 
Employee leave management system project.
Employee leave management system project.Employee leave management system project.
Employee leave management system project.Kamal Acharya
 
Thermal Engineering Unit - I & II . ppt
Thermal Engineering  Unit - I & II . pptThermal Engineering  Unit - I & II . ppt
Thermal Engineering Unit - I & II . pptDineshKumar4165
 
notes on Evolution Of Analytic Scalability.ppt
notes on Evolution Of Analytic Scalability.pptnotes on Evolution Of Analytic Scalability.ppt
notes on Evolution Of Analytic Scalability.pptMsecMca
 

Recently uploaded (20)

Unleashing the Power of the SORA AI lastest leap
Unleashing the Power of the SORA AI lastest leapUnleashing the Power of the SORA AI lastest leap
Unleashing the Power of the SORA AI lastest leap
 
KubeKraft presentation @CloudNativeHooghly
KubeKraft presentation @CloudNativeHooghlyKubeKraft presentation @CloudNativeHooghly
KubeKraft presentation @CloudNativeHooghly
 
Double Revolving field theory-how the rotor develops torque
Double Revolving field theory-how the rotor develops torqueDouble Revolving field theory-how the rotor develops torque
Double Revolving field theory-how the rotor develops torque
 
Call Girls In Bangalore ☎ 7737669865 🥵 Book Your One night Stand
Call Girls In Bangalore ☎ 7737669865 🥵 Book Your One night StandCall Girls In Bangalore ☎ 7737669865 🥵 Book Your One night Stand
Call Girls In Bangalore ☎ 7737669865 🥵 Book Your One night Stand
 
Water Industry Process Automation & Control Monthly - April 2024
Water Industry Process Automation & Control Monthly - April 2024Water Industry Process Automation & Control Monthly - April 2024
Water Industry Process Automation & Control Monthly - April 2024
 
Call Girls in Netaji Nagar, Delhi 💯 Call Us 🔝9953056974 🔝 Escort Service
Call Girls in Netaji Nagar, Delhi 💯 Call Us 🔝9953056974 🔝 Escort ServiceCall Girls in Netaji Nagar, Delhi 💯 Call Us 🔝9953056974 🔝 Escort Service
Call Girls in Netaji Nagar, Delhi 💯 Call Us 🔝9953056974 🔝 Escort Service
 
Design For Accessibility: Getting it right from the start
Design For Accessibility: Getting it right from the startDesign For Accessibility: Getting it right from the start
Design For Accessibility: Getting it right from the start
 
22-prompt engineering noted slide shown.pdf
22-prompt engineering noted slide shown.pdf22-prompt engineering noted slide shown.pdf
22-prompt engineering noted slide shown.pdf
 
Thermal Engineering-R & A / C - unit - V
Thermal Engineering-R & A / C - unit - VThermal Engineering-R & A / C - unit - V
Thermal Engineering-R & A / C - unit - V
 
Call Now ≽ 9953056974 ≼🔝 Call Girls In New Ashok Nagar ≼🔝 Delhi door step de...
Call Now ≽ 9953056974 ≼🔝 Call Girls In New Ashok Nagar  ≼🔝 Delhi door step de...Call Now ≽ 9953056974 ≼🔝 Call Girls In New Ashok Nagar  ≼🔝 Delhi door step de...
Call Now ≽ 9953056974 ≼🔝 Call Girls In New Ashok Nagar ≼🔝 Delhi door step de...
 
University management System project report..pdf
University management System project report..pdfUniversity management System project report..pdf
University management System project report..pdf
 
A Study of Urban Area Plan for Pabna Municipality
A Study of Urban Area Plan for Pabna MunicipalityA Study of Urban Area Plan for Pabna Municipality
A Study of Urban Area Plan for Pabna Municipality
 
(INDIRA) Call Girl Aurangabad Call Now 8617697112 Aurangabad Escorts 24x7
(INDIRA) Call Girl Aurangabad Call Now 8617697112 Aurangabad Escorts 24x7(INDIRA) Call Girl Aurangabad Call Now 8617697112 Aurangabad Escorts 24x7
(INDIRA) Call Girl Aurangabad Call Now 8617697112 Aurangabad Escorts 24x7
 
Generative AI or GenAI technology based PPT
Generative AI or GenAI technology based PPTGenerative AI or GenAI technology based PPT
Generative AI or GenAI technology based PPT
 
Navigating Complexity: The Role of Trusted Partners and VIAS3D in Dassault Sy...
Navigating Complexity: The Role of Trusted Partners and VIAS3D in Dassault Sy...Navigating Complexity: The Role of Trusted Partners and VIAS3D in Dassault Sy...
Navigating Complexity: The Role of Trusted Partners and VIAS3D in Dassault Sy...
 
UNIT - IV - Air Compressors and its Performance
UNIT - IV - Air Compressors and its PerformanceUNIT - IV - Air Compressors and its Performance
UNIT - IV - Air Compressors and its Performance
 
Employee leave management system project.
Employee leave management system project.Employee leave management system project.
Employee leave management system project.
 
Thermal Engineering Unit - I & II . ppt
Thermal Engineering  Unit - I & II . pptThermal Engineering  Unit - I & II . ppt
Thermal Engineering Unit - I & II . ppt
 
notes on Evolution Of Analytic Scalability.ppt
notes on Evolution Of Analytic Scalability.pptnotes on Evolution Of Analytic Scalability.ppt
notes on Evolution Of Analytic Scalability.ppt
 
FEA Based Level 3 Assessment of Deformed Tanks with Fluid Induced Loads
FEA Based Level 3 Assessment of Deformed Tanks with Fluid Induced LoadsFEA Based Level 3 Assessment of Deformed Tanks with Fluid Induced Loads
FEA Based Level 3 Assessment of Deformed Tanks with Fluid Induced Loads
 

Waltz algorithm in artificial intelligence

  • 1. Prof.Mrs.M.P.Atre PVG’s COET, SPPU Waltz Algorithm: Artificial Intelligence 9/18/20171
  • 2. Here I have presented the Waltz algorithm in three different parts as Part 1, 2 and 3 for better understanding 9/18/20172
  • 4. Constraints in Search and Knowledge Representation  Constraints and constraint satisfaction are interesting in two ways.  1. Constraints supply a different method of imposing knowledge on a problem  2. Constraint propagation enables on to reach a global solution using only local search, with obvious savings in the search space 9/18/20174
  • 5.  Again, (2) shows the interdependency of knowledge and search.  In practice one typically has a set of parameters whose values you are after, and a set of constraints which when applied to a single parameter do not determine it uniquely, but when applied to all the parameters do provide a unique global solution. 9/18/20175
  • 6. The algorithm goes like: 9/18/20176  Until a complete solution is found or all paths are dead ends  1. Select an unexpanded node of the search graph.  2.Apply the constraint inference rules to the selected node to generate all possible new constraints.  3. If the set of constraints contains a contradiction announce this path is dead end.  4. Else if the set of constraints describes a complete solution announce SUCCESS.  5. Else apply the problem space rules to generate new partial solutions which are consistent with the latest constraints. Insert these solutions in the search graph.
  • 7. Constraint Propagation in line labeling 9/18/20177  One of the most elegantAI applications of constraint satisfaction is junction and line labeling in computer vision, an example of symbolic, rather than numeric, constraint propagation.  Human beings have been shown to have an in-built ability to make sense of the 3D shape implications of 2D line drawings, especially polyhedra.  This ability comes about because there are provably very few ways of interpretation line drawings.  This ability has been captured in machine vision programs, the simplest of which we outline now
  • 8. 9/18/20178  Consider objects which:  are without cracks and opaque  with only 3-faced junctions  and are viewed from general (generic) positions. Let us now look at edges on a polyhedral object. These can be convex, concave or occluding (two sorts), so there are four ways of labeling a line. We label these with a plus, a minus, or left or right arrows (by convention the solid face is to right of edge when traversed in the direction of the arrow).
  • 9. 9/18/20179 If we make these restrictions (Note they can be lifted), it turns out that there are only four types of junction to be considered.These are L-junctions,Y- or fork-junctions,W- or arrow-junctions andT- junctions.
  • 11. 9/18/201711 An example of a correctly labeled drawing is given below
  • 12. How can line-labeling be done automatically? 9/18/201712  There are some powerful constraints on the possible junction type.  These are related to the way surfaces can be arranged in the 3D world.  You will deal with this aspect in the (selective) computer vision course.  There are four ways of labeling a line, there should be 16 ways of describing an L-junction and 64 ways for each ofW,Y andT.  So there could be 208 labeled junction types in all. In fact there are only 16 allowed junction types.
  • 13. Waltz labeling algorithm 9/18/201713  Take the line drawing and on each vertex heap up the possible junctions.  Now suppose we exit the junction along an edge via a (+) label, for example.  This would mean we must enter the next junction via a (+) label.  Suppose there was no such possibility: we should obviously discount the initial choice of junction and so on.  Thus we travel around loops propagating the constraints, until we can do no more in that loop.  Then we pass to another and so on.  Only when there is a complete irreducible interpretation do we stop.
  • 14. An example of Waltz Constraint Propagation 9/18/201714
  • 15. Ambiguous drawings 9/18/201715 All 4 labeling shown below are consistent and correspond to different objects and backgrounds.
  • 18. Waltz Algorithm: Constraint Satisfaction  Talks about the line drawings  Many perceptual tasks appear to be highly complex  because the number of interpretations that can be assigned to individual components of an input is large and the number of combinations of those components also appears to be enormous  Clear analysis can show that many combinations can not occur  These natural constraints can be exploited in the understanding process to reduce the complexity from unmanageable to manageable. 9/18/201718
  • 19. Important steps for using constraints in problem solving:  1.Analyze the problem domain to determine the actual constraints.  2. Solve the problem by applying a constraint satisfaction algorithm. 9/18/201719
  • 20.  Consider for example  a three dimensional line drawing  analysis process is to determine the object described by the lines.  geometric relationships between different types of line junctions helped to determine the object types Three Dimensional Polyhedral junction types. 9/18/201720
  • 21.  InWaltz’s algorithm, labels are assigned to lines of various types-say concave edges are produced by two adjacent touching surfaces which induce a concave (less than 180 Degrees) depth change  Conversely, convex edges produce a convexly viewed depth (greater than 180 degrees), and a boundary edge outlines a surface that obstructs other objects 9/18/201721
  • 22.  To label a concave edge, a minus sign is used  Convex edges one labeled with a plus sign, and a right or left arrow is used to label the boundary edges  By restricting vertices to be the intersection of three object faces, it is possible to reduce the number of basic vertex types to only four : the L, theT , the Fork and the Arrow 9/18/201722
  • 23.  The L types ForkTypesT types  Valid junction labels for three-dimensional shapes. 9/18/201723
  • 24. Referring to previous figure  When a three-dimensional object is viewed from all possible positions, the four junction types, together with the valid edge labels, give rise to eighteen different permissible junction configurations as shown in previous slide figure  Geometric constraints, together with a consistent labeling scheme, can simplify the object identification process.  A set of labeling rules which facilitates this process can be developed for different classes of objects 9/18/201724
  • 25. Following rules will apply for many polyhedral objects:  1.The arrow should be directed to mark boundaries by traversing the object in a clockwise direction.  2. Unbroken lines should have the same lable assigned at both ends.  3.When a fork is labeled with a+ edge, it must have all three edges label as + , and  4.Arrow junctions which have a label on both bard edges must also have a + label on the shaft. 9/18/201725
  • 26. These rules can be applied to a polygonal object as given in figure Example of object labeling 9/18/201726
  • 27. Applying Waltz for Pyramid  Starting with any edge having an object face on its right, the external boundary is labeled with the a in a clockwise direction  Interior lines are then labeled with + or _ consistent with the other labeling rules  To see how waltz constraint satisfaction algorithm works, consider the image drawing of a pyramid as given in figure3 at the right side of the pyramid are all possible labeling for the four ujunctionsA, b, C and D. 9/18/201727
  • 29.  Using these labels as mutual constraints on connected junctions, permissible labels for the whole pyramid can be determined  The constraint satisfaction procedure works as follows:  Starting at an arbitrary junction, sayA, a record of all permissible labels is made for that junction.  An adjacent junction is then chosen, say , B and labels which are inconsistent with the lineAB are then eliminated from the permissible A and B lists  In this case, the line joining B can only be a +, - or an up arrow a  consequently, two of the possible A labeling can be eliminated and the remaining are 9/18/201729
  • 30.  Choosing junction c next, we find that the BC constraints are satisfied by all of the B and C labeling, so on reduction is possible with this step  On the other hand, the line AC must be labeled as – or as an up-left-arrow ß to be consistent  Therefore, an additional label for A can be eliminated to reduce the remainder to the following: 9/18/201730
  • 31.  This new restriction on a now permit the elimination of one B labeling to maintain consistency.  Thus, the permissible B labeling remaining are now  This reduction in turn, places a new restriction on BC, permitting the elimination of one C label, since BC must now be labeled as a + only.  This leaves the remaining C labels as show in below diagram. 9/18/201731
  • 32.  Moving now to junction d, we see that of the six possible D leadings, only three satisfy the BD constraint of a up or a down arrow.  Therefore, the remaining permissible labeling for d are now  Continuing with the above procedure, we see that further label eliminations are not possible since all constraints have been satisfied  This process is completed by finding the different combinations of unique labeling that can be assigned to the figure  An enumerations of the remaining label shows that its is possible to find only three different labeling 9/18/201732
  • 33. To summarize the Waltz Algorithm 9/18/201733
  • 35. Waltz with Example: courtesy to Dr.Lehman 9/18/201735
  • 36. Before we start with Waltz Algorithm, let’s recall CSP: Constraint Satisfaction Problem 9/18/201736
  • 40. Real world CSPs  Assignment problems: e.g., who teaches what class !  Timetabling problems: e.g., which class is offered when and where? !  Hardware configuration !  Transportation scheduling ! Factory scheduling !  Floor-planning !  Fault diagnosis ! … lots more! !  Many real-world problems involve real-valued variables… 9/18/201740