SlideShare a Scribd company logo
1 of 10
ACTIVE LEARNING
ASSIGNMENT
FOR THE SUBJECT
“ARTIFICIAL INTELLIGENCE”
Simulated Annealing in N - Queens
Guided By : -
Prof. G. J. Sahani
Prepared By :-
Hemant H. Chetwani
(130410107010 TY CE-II)
Simulated Annealing - Definition
It is a technique of optimization based on the analogy
between the way the metal cools and freezes in a
minimum energy of the crystalline structure (the
annealing process) and the search for a minimum in a
more general system.
Natural Motivation
• Properties of structure depend on cooling factor after the substance was
heated to melting point. Slow cooling – large crystals are formed, that is
useful for a substance structure. Spasmodic cooling– the weak structure is
formed.
• «Agitation» at a heat is accompanied by high molecular activity in physical
system.
Disturbance
Disturbance
• The initial solution
• For the majority of problems the initial
solution is casual.
• Solution estimation
• The solution estimation consists of
decoding of the current solution and
performance of the necessary act,
allowing to fathom its expediency for the
solution of the given problem.
• Casual search of the solution
• Solution search begins with copying of
the current solution in the working
solution which is any way inoculated
further.
Create the initial
solution
Evaluate the solution
Change the solution
in a random way
Evaluate the new
solution
Criterion of the
admission
Reduce temperature
The current solution
The working solution
The best solution
Simulated Annealing
SA ALGORITHM
• Criterion of the admission
•At this stage of algorithm two solutions are available. First - the current
solution, second - the working solution. Certain energy (E) is connected with
each solution and represents its efficiency.
• The working solution is accepted as the current solution if :
• In the beginning of search the temperature has the greatest value and  is
close to 1. Therefore the sampling probability of the solution increasing value
of energy is great. Taking of such solutions corresponds to movement to saddle
point B, instead of to minimum A. As approaching a global minimum the
temperature decreases and probability of increase in energy drops.
SA ALGORITHM
• The N queens puzzle is the problem
of placing N chess queens on an
N×N chessboard so that none of
them is able to capture any other
using the standard chess queen's
moves.:
SA ALGORITHM
One of 92 solutions of 8 queens puzzle
EXAMPLE OF SOLUTION OF 40 QUEENS
PUZZLE
• Absence of restrictions of the form of the minimizing function.
• Search of a global minimum.
• Efficiency in a solving of the various classes of problems demanding
optimization.
CONCLUSION
ADVANTAGES OF ANNEALING
ANNEALING DEFICIENCIES
• The demand of infinitely slow cooling, in practice meaning slow work of
algorithm.
• Complexity of tuning.
RANGES OF APPLICATION
• Way Creation
• Image Reconstruction
• Assignment Routine And Planning
• Network Placement
• Global Routing
• Detection And Recognition Of Visual Targets
• Design Of Special Digital Filters
Simulated annealing in n - queens

More Related Content

What's hot

Backtracking-N Queens Problem-Graph Coloring-Hamiltonian cycle
Backtracking-N Queens Problem-Graph Coloring-Hamiltonian cycleBacktracking-N Queens Problem-Graph Coloring-Hamiltonian cycle
Backtracking-N Queens Problem-Graph Coloring-Hamiltonian cyclevarun arora
 
Travelling salesman dynamic programming
Travelling salesman dynamic programmingTravelling salesman dynamic programming
Travelling salesman dynamic programmingmaharajdey
 
Simulated Annealing - A Optimisation Technique
Simulated Annealing - A Optimisation TechniqueSimulated Annealing - A Optimisation Technique
Simulated Annealing - A Optimisation TechniqueAUSTIN MOSES
 
Hamiltonian cycle in data structure 2
Hamiltonian cycle in data structure  2Hamiltonian cycle in data structure  2
Hamiltonian cycle in data structure 2Home
 
Recursion tree method
Recursion tree methodRecursion tree method
Recursion tree methodRajendran
 
BackTracking Algorithm: Technique and Examples
BackTracking Algorithm: Technique and ExamplesBackTracking Algorithm: Technique and Examples
BackTracking Algorithm: Technique and ExamplesFahim Ferdous
 
Recurrence relation solutions
Recurrence relation solutionsRecurrence relation solutions
Recurrence relation solutionssubhashchandra197
 
Greedy Algorithm
Greedy AlgorithmGreedy Algorithm
Greedy AlgorithmWaqar Akram
 
Lecture 15 monkey banana problem
Lecture 15 monkey banana problemLecture 15 monkey banana problem
Lecture 15 monkey banana problemHema Kashyap
 
Lecture 2 role of algorithms in computing
Lecture 2   role of algorithms in computingLecture 2   role of algorithms in computing
Lecture 2 role of algorithms in computingjayavignesh86
 

What's hot (20)

Backtracking-N Queens Problem-Graph Coloring-Hamiltonian cycle
Backtracking-N Queens Problem-Graph Coloring-Hamiltonian cycleBacktracking-N Queens Problem-Graph Coloring-Hamiltonian cycle
Backtracking-N Queens Problem-Graph Coloring-Hamiltonian cycle
 
Net adapt
Net adaptNet adapt
Net adapt
 
Hill climbing
Hill climbingHill climbing
Hill climbing
 
Travelling salesman dynamic programming
Travelling salesman dynamic programmingTravelling salesman dynamic programming
Travelling salesman dynamic programming
 
Simulated Annealing - A Optimisation Technique
Simulated Annealing - A Optimisation TechniqueSimulated Annealing - A Optimisation Technique
Simulated Annealing - A Optimisation Technique
 
knn classification
knn classificationknn classification
knn classification
 
Recurrences
RecurrencesRecurrences
Recurrences
 
N queen problem
N queen problemN queen problem
N queen problem
 
Hamiltonian cycle in data structure 2
Hamiltonian cycle in data structure  2Hamiltonian cycle in data structure  2
Hamiltonian cycle in data structure 2
 
Recursion tree method
Recursion tree methodRecursion tree method
Recursion tree method
 
BackTracking Algorithm: Technique and Examples
BackTracking Algorithm: Technique and ExamplesBackTracking Algorithm: Technique and Examples
BackTracking Algorithm: Technique and Examples
 
Unit v
Unit vUnit v
Unit v
 
Recurrence relation solutions
Recurrence relation solutionsRecurrence relation solutions
Recurrence relation solutions
 
Greedy Algorithm
Greedy AlgorithmGreedy Algorithm
Greedy Algorithm
 
Lecture 15 monkey banana problem
Lecture 15 monkey banana problemLecture 15 monkey banana problem
Lecture 15 monkey banana problem
 
27 NP Completness
27 NP Completness27 NP Completness
27 NP Completness
 
Np complete
Np completeNp complete
Np complete
 
Lecture 2 role of algorithms in computing
Lecture 2   role of algorithms in computingLecture 2   role of algorithms in computing
Lecture 2 role of algorithms in computing
 
ch-10.ppt
ch-10.pptch-10.ppt
ch-10.ppt
 
Recurrences
RecurrencesRecurrences
Recurrences
 

Similar to Simulated annealing in n - queens

Simulated annealing
Simulated annealingSimulated annealing
Simulated annealingDaniel Suria
 
Activation Energy_final presentation
Activation Energy_final presentationActivation Energy_final presentation
Activation Energy_final presentationManjot Nijjar
 
Unit 12 rate & equilibrium lectures
Unit 12 rate & equilibrium lecturesUnit 12 rate & equilibrium lectures
Unit 12 rate & equilibrium lecturesjaykuecker
 
entropy-and-gibbs-free-energy.ppt
entropy-and-gibbs-free-energy.pptentropy-and-gibbs-free-energy.ppt
entropy-and-gibbs-free-energy.pptKatDestraYummero
 
BeyondClassicalSearch.ppt
BeyondClassicalSearch.pptBeyondClassicalSearch.ppt
BeyondClassicalSearch.pptGauravWani20
 
BeyondClassicalSearch.ppt
BeyondClassicalSearch.pptBeyondClassicalSearch.ppt
BeyondClassicalSearch.pptjpradha86
 
thermochemistry.pptx
thermochemistry.pptxthermochemistry.pptx
thermochemistry.pptxAliceRivera13
 
thermochemistry.pptxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
thermochemistry.pptxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxthermochemistry.pptxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
thermochemistry.pptxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxAliceRivera13
 
First Law of Thermodynamics
First Law of ThermodynamicsFirst Law of Thermodynamics
First Law of ThermodynamicsYujung Dong
 
Simulated annealing presentation
Simulated annealing presentation Simulated annealing presentation
Simulated annealing presentation AmarendraKrSaroj
 
Simulated Annealing for Optimal Power Flow (OPF)
Simulated Annealing for Optimal Power Flow (OPF)Simulated Annealing for Optimal Power Flow (OPF)
Simulated Annealing for Optimal Power Flow (OPF)Anmol Dwivedi
 

Similar to Simulated annealing in n - queens (15)

Simulated annealing
Simulated annealingSimulated annealing
Simulated annealing
 
Simulated annealing
Simulated annealingSimulated annealing
Simulated annealing
 
Activation Energy_final presentation
Activation Energy_final presentationActivation Energy_final presentation
Activation Energy_final presentation
 
Ch07
Ch07Ch07
Ch07
 
Unit 12 rate & equilibrium lectures
Unit 12 rate & equilibrium lecturesUnit 12 rate & equilibrium lectures
Unit 12 rate & equilibrium lectures
 
entropy-and-gibbs-free-energy.ppt
entropy-and-gibbs-free-energy.pptentropy-and-gibbs-free-energy.ppt
entropy-and-gibbs-free-energy.ppt
 
BeyondClassicalSearch.ppt
BeyondClassicalSearch.pptBeyondClassicalSearch.ppt
BeyondClassicalSearch.ppt
 
BeyondClassicalSearch.ppt
BeyondClassicalSearch.pptBeyondClassicalSearch.ppt
BeyondClassicalSearch.ppt
 
thermochemistry.pptx
thermochemistry.pptxthermochemistry.pptx
thermochemistry.pptx
 
thermochemistry.pptxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
thermochemistry.pptxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxthermochemistry.pptxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
thermochemistry.pptxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
 
Sl kinetics
Sl kineticsSl kinetics
Sl kinetics
 
Chapter5
Chapter5Chapter5
Chapter5
 
First Law of Thermodynamics
First Law of ThermodynamicsFirst Law of Thermodynamics
First Law of Thermodynamics
 
Simulated annealing presentation
Simulated annealing presentation Simulated annealing presentation
Simulated annealing presentation
 
Simulated Annealing for Optimal Power Flow (OPF)
Simulated Annealing for Optimal Power Flow (OPF)Simulated Annealing for Optimal Power Flow (OPF)
Simulated Annealing for Optimal Power Flow (OPF)
 

More from Hemant Chetwani

More from Hemant Chetwani (12)

Channel Capacity and transmission media
Channel Capacity and transmission mediaChannel Capacity and transmission media
Channel Capacity and transmission media
 
Pseudo Random Number
Pseudo Random NumberPseudo Random Number
Pseudo Random Number
 
CART – Classification & Regression Trees
CART – Classification & Regression TreesCART – Classification & Regression Trees
CART – Classification & Regression Trees
 
Types of Compilers
Types of CompilersTypes of Compilers
Types of Compilers
 
Properties and indexers in C#
Properties and indexers in C#Properties and indexers in C#
Properties and indexers in C#
 
Socket & Server Socket
Socket & Server SocketSocket & Server Socket
Socket & Server Socket
 
Pumming Lemma
Pumming LemmaPumming Lemma
Pumming Lemma
 
Hash table
Hash tableHash table
Hash table
 
First pass of assembler
First pass of assemblerFirst pass of assembler
First pass of assembler
 
130410107010 exception handling
130410107010 exception handling130410107010 exception handling
130410107010 exception handling
 
Counters & time delay
Counters & time delayCounters & time delay
Counters & time delay
 
Bucket sort
Bucket sortBucket sort
Bucket sort
 

Recently uploaded

Call Girls Service Nashik Vaishnavi 7001305949 Independent Escort Service Nashik
Call Girls Service Nashik Vaishnavi 7001305949 Independent Escort Service NashikCall Girls Service Nashik Vaishnavi 7001305949 Independent Escort Service Nashik
Call Girls Service Nashik Vaishnavi 7001305949 Independent Escort Service NashikCall Girls in Nagpur High Profile
 
Sheet Pile Wall Design and Construction: A Practical Guide for Civil Engineer...
Sheet Pile Wall Design and Construction: A Practical Guide for Civil Engineer...Sheet Pile Wall Design and Construction: A Practical Guide for Civil Engineer...
Sheet Pile Wall Design and Construction: A Practical Guide for Civil Engineer...Dr.Costas Sachpazis
 
MANUFACTURING PROCESS-II UNIT-2 LATHE MACHINE
MANUFACTURING PROCESS-II UNIT-2 LATHE MACHINEMANUFACTURING PROCESS-II UNIT-2 LATHE MACHINE
MANUFACTURING PROCESS-II UNIT-2 LATHE MACHINESIVASHANKAR N
 
UNIT-III FMM. DIMENSIONAL ANALYSIS
UNIT-III FMM.        DIMENSIONAL ANALYSISUNIT-III FMM.        DIMENSIONAL ANALYSIS
UNIT-III FMM. DIMENSIONAL ANALYSISrknatarajan
 
(RIA) Call Girls Bhosari ( 7001035870 ) HI-Fi Pune Escorts Service
(RIA) Call Girls Bhosari ( 7001035870 ) HI-Fi Pune Escorts Service(RIA) Call Girls Bhosari ( 7001035870 ) HI-Fi Pune Escorts Service
(RIA) Call Girls Bhosari ( 7001035870 ) HI-Fi Pune Escorts Serviceranjana rawat
 
VIP Call Girls Service Hitech City Hyderabad Call +91-8250192130
VIP Call Girls Service Hitech City Hyderabad Call +91-8250192130VIP Call Girls Service Hitech City Hyderabad Call +91-8250192130
VIP Call Girls Service Hitech City Hyderabad Call +91-8250192130Suhani Kapoor
 
High Profile Call Girls Nagpur Meera Call 7001035870 Meet With Nagpur Escorts
High Profile Call Girls Nagpur Meera Call 7001035870 Meet With Nagpur EscortsHigh Profile Call Girls Nagpur Meera Call 7001035870 Meet With Nagpur Escorts
High Profile Call Girls Nagpur Meera Call 7001035870 Meet With Nagpur EscortsCall Girls in Nagpur High Profile
 
Call Girls in Nagpur Suman Call 7001035870 Meet With Nagpur Escorts
Call Girls in Nagpur Suman Call 7001035870 Meet With Nagpur EscortsCall Girls in Nagpur Suman Call 7001035870 Meet With Nagpur Escorts
Call Girls in Nagpur Suman Call 7001035870 Meet With Nagpur EscortsCall Girls in Nagpur High Profile
 
APPLICATIONS-AC/DC DRIVES-OPERATING CHARACTERISTICS
APPLICATIONS-AC/DC DRIVES-OPERATING CHARACTERISTICSAPPLICATIONS-AC/DC DRIVES-OPERATING CHARACTERISTICS
APPLICATIONS-AC/DC DRIVES-OPERATING CHARACTERISTICSKurinjimalarL3
 
Top Rated Pune Call Girls Budhwar Peth ⟟ 6297143586 ⟟ Call Me For Genuine Se...
Top Rated  Pune Call Girls Budhwar Peth ⟟ 6297143586 ⟟ Call Me For Genuine Se...Top Rated  Pune Call Girls Budhwar Peth ⟟ 6297143586 ⟟ Call Me For Genuine Se...
Top Rated Pune Call Girls Budhwar Peth ⟟ 6297143586 ⟟ Call Me For Genuine Se...Call Girls in Nagpur High Profile
 
(TARA) Talegaon Dabhade Call Girls Just Call 7001035870 [ Cash on Delivery ] ...
(TARA) Talegaon Dabhade Call Girls Just Call 7001035870 [ Cash on Delivery ] ...(TARA) Talegaon Dabhade Call Girls Just Call 7001035870 [ Cash on Delivery ] ...
(TARA) Talegaon Dabhade Call Girls Just Call 7001035870 [ Cash on Delivery ] ...ranjana rawat
 
Coefficient of Thermal Expansion and their Importance.pptx
Coefficient of Thermal Expansion and their Importance.pptxCoefficient of Thermal Expansion and their Importance.pptx
Coefficient of Thermal Expansion and their Importance.pptxAsutosh Ranjan
 
the ladakh protest in leh ladakh 2024 sonam wangchuk.pptx
the ladakh protest in leh ladakh 2024 sonam wangchuk.pptxthe ladakh protest in leh ladakh 2024 sonam wangchuk.pptx
the ladakh protest in leh ladakh 2024 sonam wangchuk.pptxhumanexperienceaaa
 
Structural Analysis and Design of Foundations: A Comprehensive Handbook for S...
Structural Analysis and Design of Foundations: A Comprehensive Handbook for S...Structural Analysis and Design of Foundations: A Comprehensive Handbook for S...
Structural Analysis and Design of Foundations: A Comprehensive Handbook for S...Dr.Costas Sachpazis
 
Microscopic Analysis of Ceramic Materials.pptx
Microscopic Analysis of Ceramic Materials.pptxMicroscopic Analysis of Ceramic Materials.pptx
Microscopic Analysis of Ceramic Materials.pptxpurnimasatapathy1234
 
Introduction and different types of Ethernet.pptx
Introduction and different types of Ethernet.pptxIntroduction and different types of Ethernet.pptx
Introduction and different types of Ethernet.pptxupamatechverse
 
MANUFACTURING PROCESS-II UNIT-5 NC MACHINE TOOLS
MANUFACTURING PROCESS-II UNIT-5 NC MACHINE TOOLSMANUFACTURING PROCESS-II UNIT-5 NC MACHINE TOOLS
MANUFACTURING PROCESS-II UNIT-5 NC MACHINE TOOLSSIVASHANKAR N
 

Recently uploaded (20)

Call Girls Service Nashik Vaishnavi 7001305949 Independent Escort Service Nashik
Call Girls Service Nashik Vaishnavi 7001305949 Independent Escort Service NashikCall Girls Service Nashik Vaishnavi 7001305949 Independent Escort Service Nashik
Call Girls Service Nashik Vaishnavi 7001305949 Independent Escort Service Nashik
 
★ CALL US 9953330565 ( HOT Young Call Girls In Badarpur delhi NCR
★ CALL US 9953330565 ( HOT Young Call Girls In Badarpur delhi NCR★ CALL US 9953330565 ( HOT Young Call Girls In Badarpur delhi NCR
★ CALL US 9953330565 ( HOT Young Call Girls In Badarpur delhi NCR
 
Sheet Pile Wall Design and Construction: A Practical Guide for Civil Engineer...
Sheet Pile Wall Design and Construction: A Practical Guide for Civil Engineer...Sheet Pile Wall Design and Construction: A Practical Guide for Civil Engineer...
Sheet Pile Wall Design and Construction: A Practical Guide for Civil Engineer...
 
9953056974 Call Girls In South Ex, Escorts (Delhi) NCR.pdf
9953056974 Call Girls In South Ex, Escorts (Delhi) NCR.pdf9953056974 Call Girls In South Ex, Escorts (Delhi) NCR.pdf
9953056974 Call Girls In South Ex, Escorts (Delhi) NCR.pdf
 
MANUFACTURING PROCESS-II UNIT-2 LATHE MACHINE
MANUFACTURING PROCESS-II UNIT-2 LATHE MACHINEMANUFACTURING PROCESS-II UNIT-2 LATHE MACHINE
MANUFACTURING PROCESS-II UNIT-2 LATHE MACHINE
 
UNIT-III FMM. DIMENSIONAL ANALYSIS
UNIT-III FMM.        DIMENSIONAL ANALYSISUNIT-III FMM.        DIMENSIONAL ANALYSIS
UNIT-III FMM. DIMENSIONAL ANALYSIS
 
(RIA) Call Girls Bhosari ( 7001035870 ) HI-Fi Pune Escorts Service
(RIA) Call Girls Bhosari ( 7001035870 ) HI-Fi Pune Escorts Service(RIA) Call Girls Bhosari ( 7001035870 ) HI-Fi Pune Escorts Service
(RIA) Call Girls Bhosari ( 7001035870 ) HI-Fi Pune Escorts Service
 
VIP Call Girls Service Hitech City Hyderabad Call +91-8250192130
VIP Call Girls Service Hitech City Hyderabad Call +91-8250192130VIP Call Girls Service Hitech City Hyderabad Call +91-8250192130
VIP Call Girls Service Hitech City Hyderabad Call +91-8250192130
 
High Profile Call Girls Nagpur Meera Call 7001035870 Meet With Nagpur Escorts
High Profile Call Girls Nagpur Meera Call 7001035870 Meet With Nagpur EscortsHigh Profile Call Girls Nagpur Meera Call 7001035870 Meet With Nagpur Escorts
High Profile Call Girls Nagpur Meera Call 7001035870 Meet With Nagpur Escorts
 
Call Girls in Nagpur Suman Call 7001035870 Meet With Nagpur Escorts
Call Girls in Nagpur Suman Call 7001035870 Meet With Nagpur EscortsCall Girls in Nagpur Suman Call 7001035870 Meet With Nagpur Escorts
Call Girls in Nagpur Suman Call 7001035870 Meet With Nagpur Escorts
 
APPLICATIONS-AC/DC DRIVES-OPERATING CHARACTERISTICS
APPLICATIONS-AC/DC DRIVES-OPERATING CHARACTERISTICSAPPLICATIONS-AC/DC DRIVES-OPERATING CHARACTERISTICS
APPLICATIONS-AC/DC DRIVES-OPERATING CHARACTERISTICS
 
Top Rated Pune Call Girls Budhwar Peth ⟟ 6297143586 ⟟ Call Me For Genuine Se...
Top Rated  Pune Call Girls Budhwar Peth ⟟ 6297143586 ⟟ Call Me For Genuine Se...Top Rated  Pune Call Girls Budhwar Peth ⟟ 6297143586 ⟟ Call Me For Genuine Se...
Top Rated Pune Call Girls Budhwar Peth ⟟ 6297143586 ⟟ Call Me For Genuine Se...
 
(TARA) Talegaon Dabhade Call Girls Just Call 7001035870 [ Cash on Delivery ] ...
(TARA) Talegaon Dabhade Call Girls Just Call 7001035870 [ Cash on Delivery ] ...(TARA) Talegaon Dabhade Call Girls Just Call 7001035870 [ Cash on Delivery ] ...
(TARA) Talegaon Dabhade Call Girls Just Call 7001035870 [ Cash on Delivery ] ...
 
Coefficient of Thermal Expansion and their Importance.pptx
Coefficient of Thermal Expansion and their Importance.pptxCoefficient of Thermal Expansion and their Importance.pptx
Coefficient of Thermal Expansion and their Importance.pptx
 
the ladakh protest in leh ladakh 2024 sonam wangchuk.pptx
the ladakh protest in leh ladakh 2024 sonam wangchuk.pptxthe ladakh protest in leh ladakh 2024 sonam wangchuk.pptx
the ladakh protest in leh ladakh 2024 sonam wangchuk.pptx
 
Structural Analysis and Design of Foundations: A Comprehensive Handbook for S...
Structural Analysis and Design of Foundations: A Comprehensive Handbook for S...Structural Analysis and Design of Foundations: A Comprehensive Handbook for S...
Structural Analysis and Design of Foundations: A Comprehensive Handbook for S...
 
Roadmap to Membership of RICS - Pathways and Routes
Roadmap to Membership of RICS - Pathways and RoutesRoadmap to Membership of RICS - Pathways and Routes
Roadmap to Membership of RICS - Pathways and Routes
 
Microscopic Analysis of Ceramic Materials.pptx
Microscopic Analysis of Ceramic Materials.pptxMicroscopic Analysis of Ceramic Materials.pptx
Microscopic Analysis of Ceramic Materials.pptx
 
Introduction and different types of Ethernet.pptx
Introduction and different types of Ethernet.pptxIntroduction and different types of Ethernet.pptx
Introduction and different types of Ethernet.pptx
 
MANUFACTURING PROCESS-II UNIT-5 NC MACHINE TOOLS
MANUFACTURING PROCESS-II UNIT-5 NC MACHINE TOOLSMANUFACTURING PROCESS-II UNIT-5 NC MACHINE TOOLS
MANUFACTURING PROCESS-II UNIT-5 NC MACHINE TOOLS
 

Simulated annealing in n - queens

  • 1. ACTIVE LEARNING ASSIGNMENT FOR THE SUBJECT “ARTIFICIAL INTELLIGENCE” Simulated Annealing in N - Queens Guided By : - Prof. G. J. Sahani Prepared By :- Hemant H. Chetwani (130410107010 TY CE-II)
  • 2. Simulated Annealing - Definition It is a technique of optimization based on the analogy between the way the metal cools and freezes in a minimum energy of the crystalline structure (the annealing process) and the search for a minimum in a more general system.
  • 3. Natural Motivation • Properties of structure depend on cooling factor after the substance was heated to melting point. Slow cooling – large crystals are formed, that is useful for a substance structure. Spasmodic cooling– the weak structure is formed. • «Agitation» at a heat is accompanied by high molecular activity in physical system. Disturbance Disturbance
  • 4. • The initial solution • For the majority of problems the initial solution is casual. • Solution estimation • The solution estimation consists of decoding of the current solution and performance of the necessary act, allowing to fathom its expediency for the solution of the given problem. • Casual search of the solution • Solution search begins with copying of the current solution in the working solution which is any way inoculated further. Create the initial solution Evaluate the solution Change the solution in a random way Evaluate the new solution Criterion of the admission Reduce temperature The current solution The working solution The best solution Simulated Annealing SA ALGORITHM
  • 5. • Criterion of the admission •At this stage of algorithm two solutions are available. First - the current solution, second - the working solution. Certain energy (E) is connected with each solution and represents its efficiency. • The working solution is accepted as the current solution if : • In the beginning of search the temperature has the greatest value and  is close to 1. Therefore the sampling probability of the solution increasing value of energy is great. Taking of such solutions corresponds to movement to saddle point B, instead of to minimum A. As approaching a global minimum the temperature decreases and probability of increase in energy drops. SA ALGORITHM
  • 6. • The N queens puzzle is the problem of placing N chess queens on an N×N chessboard so that none of them is able to capture any other using the standard chess queen's moves.: SA ALGORITHM One of 92 solutions of 8 queens puzzle
  • 7. EXAMPLE OF SOLUTION OF 40 QUEENS PUZZLE
  • 8. • Absence of restrictions of the form of the minimizing function. • Search of a global minimum. • Efficiency in a solving of the various classes of problems demanding optimization. CONCLUSION ADVANTAGES OF ANNEALING ANNEALING DEFICIENCIES • The demand of infinitely slow cooling, in practice meaning slow work of algorithm. • Complexity of tuning.
  • 9. RANGES OF APPLICATION • Way Creation • Image Reconstruction • Assignment Routine And Planning • Network Placement • Global Routing • Detection And Recognition Of Visual Targets • Design Of Special Digital Filters