SlideShare a Scribd company logo
1 of 11
Using Hopfield Neural Networks
for Solving TSP
Tolga Varol, June 2015
Background: TSP
 What is TSP?
 Given a network visits all nodes
 Hamiltonian Path
 NP-complete(NP & NP-hard)
 Application Areas
 Planning, Logistics, Microchip Manufacturing, etc.
Background: TSP cont’d
 How should we approach by hand ?
 Find the best Upper Bound(NNA) & Lower Bound(Delete a Vertex + NNA)
 Any route between the boundaries are fine for us(namely optimal)
Reason
 But how should we approach to big networks, everybody can find a 3-4 node network’s
optimal paths, but what about a 10 node network or a 1000 node one?
What can be used ?
 Hopfield Neural Networks, Genetic Algorithms(Randomized Improvement), etc.
Why we can use HNN?
 Because the recurrent structure of HNN is quite proper for representing
a network which has vertices connected each other with distances
 Synaptic weight matrix is quite analogous to node distance matrix
 If there are 5 nodes, there will be 5*5=25 distances and 5 of them, which
are the distances to themselves, will be 0. And this can be represented
easily by synaptic weights assuming;
 Wii = Wjj = 0
Background: Hopfield Neural Network
 John Hopfield, 1982
 An Energy Based Model, energy minimization guarantees convergence to
a stable attractor
 Input and output are binary (0 & 1 || -1 & 1)
 Auto-associative; automatically associates an output to a given input
 Hebbian Learning or Storkey Learning Rules can be used
 Learning corresponds to modification of synaptic(weights between neurons) weights
 Usually used for Pattern Recognition and is very useful for it. Learning
many patterns can be a problem(local minima ; spurious memory)..
Consists of a single layer which contains one or more
fully connected(so called recurrent) neurons
Has two update rules;
Synchronous(might oscillate)
Asynchronous(will converge or go to a chaotic trajectory)
Ordered
Random
Demonstration Using MATLAB
 A HNN model can be represented using many programming languages.
References
 Prof. G. Srinivasan – IIT Madras
 http://www.psychology.mcmaster.ca
 http://www.mini.pw.edu.pl/~mandziuk
 Photo Credit : www.heatonresearch.com
 Artificial Intelligence Courses(Channel) – www.youtube.com
 http://en.wikipedia.org/wiki/Hopfield_network#Learning_rules

More Related Content

What's hot

SCALING THE HTM SPATIAL POOLER
SCALING THE HTM SPATIAL POOLERSCALING THE HTM SPATIAL POOLER
SCALING THE HTM SPATIAL POOLER
ijaia
 

What's hot (20)

Artificial neural network
Artificial neural networkArtificial neural network
Artificial neural network
 
SCALING THE HTM SPATIAL POOLER
SCALING THE HTM SPATIAL POOLERSCALING THE HTM SPATIAL POOLER
SCALING THE HTM SPATIAL POOLER
 
Perceptron & Neural Networks
Perceptron & Neural NetworksPerceptron & Neural Networks
Perceptron & Neural Networks
 
Counter propagation Network
Counter propagation NetworkCounter propagation Network
Counter propagation Network
 
A TWO-LAYER RECURRENT NEURAL NETWORK FOR NONSMOOTH CONVEX OPTIMIZATION PROBLEMS
A TWO-LAYER RECURRENT NEURAL NETWORK FOR NONSMOOTH CONVEX OPTIMIZATION PROBLEMSA TWO-LAYER RECURRENT NEURAL NETWORK FOR NONSMOOTH CONVEX OPTIMIZATION PROBLEMS
A TWO-LAYER RECURRENT NEURAL NETWORK FOR NONSMOOTH CONVEX OPTIMIZATION PROBLEMS
 
Artificial Neural Network Abstract
Artificial Neural Network AbstractArtificial Neural Network Abstract
Artificial Neural Network Abstract
 
Simulation of Scale-Free Networks
Simulation of Scale-Free NetworksSimulation of Scale-Free Networks
Simulation of Scale-Free Networks
 
Data Applied:Forecast
Data Applied:ForecastData Applied:Forecast
Data Applied:Forecast
 
Introduction To Machine Learning and Neural Networks
Introduction To Machine Learning and Neural NetworksIntroduction To Machine Learning and Neural Networks
Introduction To Machine Learning and Neural Networks
 
Talk at MIT, Maths on deep neural networks
Talk at MIT, Maths on deep neural networks Talk at MIT, Maths on deep neural networks
Talk at MIT, Maths on deep neural networks
 
Basics Of Neural Network Analysis
Basics Of Neural Network AnalysisBasics Of Neural Network Analysis
Basics Of Neural Network Analysis
 
The Predictron: End-to-end Learning and Planning
The Predictron: End-to-end Learning and PlanningThe Predictron: End-to-end Learning and Planning
The Predictron: End-to-end Learning and Planning
 
Scale free network Visualiuzation
Scale free network VisualiuzationScale free network Visualiuzation
Scale free network Visualiuzation
 
Advanced topics in artificial neural networks
Advanced topics in artificial neural networksAdvanced topics in artificial neural networks
Advanced topics in artificial neural networks
 
density based method and expectation maximization
density based method and expectation maximizationdensity based method and expectation maximization
density based method and expectation maximization
 
Allinone topology
Allinone topologyAllinone topology
Allinone topology
 
Neural Networks on Steroids (Poster)
Neural Networks on Steroids (Poster)Neural Networks on Steroids (Poster)
Neural Networks on Steroids (Poster)
 
Artificial Neural Networks - ANN
Artificial Neural Networks - ANNArtificial Neural Networks - ANN
Artificial Neural Networks - ANN
 
Labmeeting - 20150512 - New Secure Routing Method & Applications Facing MitM ...
Labmeeting - 20150512 - New Secure Routing Method & Applications Facing MitM ...Labmeeting - 20150512 - New Secure Routing Method & Applications Facing MitM ...
Labmeeting - 20150512 - New Secure Routing Method & Applications Facing MitM ...
 
Adaptive Resonance Theory
Adaptive Resonance TheoryAdaptive Resonance Theory
Adaptive Resonance Theory
 

Similar to Using Hopfield Networks for Solving TSP

Multi-Layer Perceptrons
Multi-Layer PerceptronsMulti-Layer Perceptrons
Multi-Layer Perceptrons
ESCOM
 
Neuralnetwork 101222074552-phpapp02
Neuralnetwork 101222074552-phpapp02Neuralnetwork 101222074552-phpapp02
Neuralnetwork 101222074552-phpapp02
Deepu Gupta
 
Artificial neural networks and its application
Artificial neural networks and its applicationArtificial neural networks and its application
Artificial neural networks and its application
Hưng Đặng
 
Soft Computing-173101
Soft Computing-173101Soft Computing-173101
Soft Computing-173101
AMIT KUMAR
 

Similar to Using Hopfield Networks for Solving TSP (20)

Deep learning lecture - part 1 (basics, CNN)
Deep learning lecture - part 1 (basics, CNN)Deep learning lecture - part 1 (basics, CNN)
Deep learning lecture - part 1 (basics, CNN)
 
Ffnn
FfnnFfnn
Ffnn
 
Multi-Layer Perceptrons
Multi-Layer PerceptronsMulti-Layer Perceptrons
Multi-Layer Perceptrons
 
Perceptron
PerceptronPerceptron
Perceptron
 
Artificial Neural Network Topology
Artificial Neural Network TopologyArtificial Neural Network Topology
Artificial Neural Network Topology
 
Deep Learning - RNN and CNN
Deep Learning - RNN and CNNDeep Learning - RNN and CNN
Deep Learning - RNN and CNN
 
02 Fundamental Concepts of ANN
02 Fundamental Concepts of ANN02 Fundamental Concepts of ANN
02 Fundamental Concepts of ANN
 
Intro to Deep learning - Autoencoders
Intro to Deep learning - Autoencoders Intro to Deep learning - Autoencoders
Intro to Deep learning - Autoencoders
 
ANN.ppt
ANN.pptANN.ppt
ANN.ppt
 
BACKPROPOGATION ALGO.pdfLECTURE NOTES WITH SOLVED EXAMPLE AND FEED FORWARD NE...
BACKPROPOGATION ALGO.pdfLECTURE NOTES WITH SOLVED EXAMPLE AND FEED FORWARD NE...BACKPROPOGATION ALGO.pdfLECTURE NOTES WITH SOLVED EXAMPLE AND FEED FORWARD NE...
BACKPROPOGATION ALGO.pdfLECTURE NOTES WITH SOLVED EXAMPLE AND FEED FORWARD NE...
 
Neuralnetwork 101222074552-phpapp02
Neuralnetwork 101222074552-phpapp02Neuralnetwork 101222074552-phpapp02
Neuralnetwork 101222074552-phpapp02
 
ML_Unit_2_Part_A
ML_Unit_2_Part_AML_Unit_2_Part_A
ML_Unit_2_Part_A
 
Artificial Neural Networks Lect1: Introduction & neural computation
Artificial Neural Networks Lect1: Introduction & neural computationArtificial Neural Networks Lect1: Introduction & neural computation
Artificial Neural Networks Lect1: Introduction & neural computation
 
Introduction to Artificial Neural Networks
Introduction to Artificial Neural Networks Introduction to Artificial Neural Networks
Introduction to Artificial Neural Networks
 
Recurrent Neural Network
Recurrent Neural NetworkRecurrent Neural Network
Recurrent Neural Network
 
Artificial neural networks and its application
Artificial neural networks and its applicationArtificial neural networks and its application
Artificial neural networks and its application
 
Artificial neural networks and its application
Artificial neural networks and its applicationArtificial neural networks and its application
Artificial neural networks and its application
 
Evolving Connection Weights for Pattern Storage and Recall in Hopfield Model ...
Evolving Connection Weights for Pattern Storage and Recall in Hopfield Model ...Evolving Connection Weights for Pattern Storage and Recall in Hopfield Model ...
Evolving Connection Weights for Pattern Storage and Recall in Hopfield Model ...
 
NEURALNETWORKS_DM_SOWMYAJYOTHI.pdf
NEURALNETWORKS_DM_SOWMYAJYOTHI.pdfNEURALNETWORKS_DM_SOWMYAJYOTHI.pdf
NEURALNETWORKS_DM_SOWMYAJYOTHI.pdf
 
Soft Computing-173101
Soft Computing-173101Soft Computing-173101
Soft Computing-173101
 

Recently uploaded

VIP Call Girls Ankleshwar 7001035870 Whatsapp Number, 24/07 Booking
VIP Call Girls Ankleshwar 7001035870 Whatsapp Number, 24/07 BookingVIP Call Girls Ankleshwar 7001035870 Whatsapp Number, 24/07 Booking
VIP Call Girls Ankleshwar 7001035870 Whatsapp Number, 24/07 Booking
dharasingh5698
 
Call for Papers - Educational Administration: Theory and Practice, E-ISSN: 21...
Call for Papers - Educational Administration: Theory and Practice, E-ISSN: 21...Call for Papers - Educational Administration: Theory and Practice, E-ISSN: 21...
Call for Papers - Educational Administration: Theory and Practice, E-ISSN: 21...
Christo Ananth
 

Recently uploaded (20)

Call Girls Walvekar Nagar Call Me 7737669865 Budget Friendly No Advance Booking
Call Girls Walvekar Nagar Call Me 7737669865 Budget Friendly No Advance BookingCall Girls Walvekar Nagar Call Me 7737669865 Budget Friendly No Advance Booking
Call Girls Walvekar Nagar Call Me 7737669865 Budget Friendly No Advance Booking
 
VIP Call Girls Ankleshwar 7001035870 Whatsapp Number, 24/07 Booking
VIP Call Girls Ankleshwar 7001035870 Whatsapp Number, 24/07 BookingVIP Call Girls Ankleshwar 7001035870 Whatsapp Number, 24/07 Booking
VIP Call Girls Ankleshwar 7001035870 Whatsapp Number, 24/07 Booking
 
(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
 
Extrusion Processes and Their Limitations
Extrusion Processes and Their LimitationsExtrusion Processes and Their Limitations
Extrusion Processes and Their Limitations
 
VIP Model Call Girls Kothrud ( Pune ) Call ON 8005736733 Starting From 5K to ...
VIP Model Call Girls Kothrud ( Pune ) Call ON 8005736733 Starting From 5K to ...VIP Model Call Girls Kothrud ( Pune ) Call ON 8005736733 Starting From 5K to ...
VIP Model Call Girls Kothrud ( Pune ) Call ON 8005736733 Starting From 5K to ...
 
PVC VS. FIBERGLASS (FRP) GRAVITY SEWER - UNI BELL
PVC VS. FIBERGLASS (FRP) GRAVITY SEWER - UNI BELLPVC VS. FIBERGLASS (FRP) GRAVITY SEWER - UNI BELL
PVC VS. FIBERGLASS (FRP) GRAVITY SEWER - UNI BELL
 
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
 
(INDIRA) Call Girl Bhosari Call Now 8617697112 Bhosari Escorts 24x7
(INDIRA) Call Girl Bhosari Call Now 8617697112 Bhosari Escorts 24x7(INDIRA) Call Girl Bhosari Call Now 8617697112 Bhosari Escorts 24x7
(INDIRA) Call Girl Bhosari Call Now 8617697112 Bhosari Escorts 24x7
 
Booking open Available Pune Call Girls Pargaon 6297143586 Call Hot Indian Gi...
Booking open Available Pune Call Girls Pargaon  6297143586 Call Hot Indian Gi...Booking open Available Pune Call Girls Pargaon  6297143586 Call Hot Indian Gi...
Booking open Available Pune Call Girls Pargaon 6297143586 Call Hot Indian Gi...
 
UNIT-III FMM. DIMENSIONAL ANALYSIS
UNIT-III FMM.        DIMENSIONAL ANALYSISUNIT-III FMM.        DIMENSIONAL ANALYSIS
UNIT-III FMM. DIMENSIONAL ANALYSIS
 
Unit 1 - Soil Classification and Compaction.pdf
Unit 1 - Soil Classification and Compaction.pdfUnit 1 - Soil Classification and Compaction.pdf
Unit 1 - Soil Classification and Compaction.pdf
 
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
 
Vivazz, Mieres Social Housing Design Spain
Vivazz, Mieres Social Housing Design SpainVivazz, Mieres Social Housing Design Spain
Vivazz, Mieres Social Housing Design Spain
 
UNIT-IFLUID PROPERTIES & FLOW CHARACTERISTICS
UNIT-IFLUID PROPERTIES & FLOW CHARACTERISTICSUNIT-IFLUID PROPERTIES & FLOW CHARACTERISTICS
UNIT-IFLUID PROPERTIES & FLOW CHARACTERISTICS
 
Thermal Engineering -unit - III & IV.ppt
Thermal Engineering -unit - III & IV.pptThermal Engineering -unit - III & IV.ppt
Thermal Engineering -unit - III & IV.ppt
 
Java Programming :Event Handling(Types of Events)
Java Programming :Event Handling(Types of Events)Java Programming :Event Handling(Types of Events)
Java Programming :Event Handling(Types of Events)
 
Call for Papers - Educational Administration: Theory and Practice, E-ISSN: 21...
Call for Papers - Educational Administration: Theory and Practice, E-ISSN: 21...Call for Papers - Educational Administration: Theory and Practice, E-ISSN: 21...
Call for Papers - Educational Administration: Theory and Practice, E-ISSN: 21...
 
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
 
Thermal Engineering Unit - I & II . ppt
Thermal Engineering  Unit - I & II . pptThermal Engineering  Unit - I & II . ppt
Thermal Engineering Unit - I & II . ppt
 
chapter 5.pptx: drainage and irrigation engineering
chapter 5.pptx: drainage and irrigation engineeringchapter 5.pptx: drainage and irrigation engineering
chapter 5.pptx: drainage and irrigation engineering
 

Using Hopfield Networks for Solving TSP

  • 1. Using Hopfield Neural Networks for Solving TSP Tolga Varol, June 2015
  • 2. Background: TSP  What is TSP?  Given a network visits all nodes  Hamiltonian Path  NP-complete(NP & NP-hard)  Application Areas  Planning, Logistics, Microchip Manufacturing, etc.
  • 3. Background: TSP cont’d  How should we approach by hand ?  Find the best Upper Bound(NNA) & Lower Bound(Delete a Vertex + NNA)  Any route between the boundaries are fine for us(namely optimal)
  • 4. Reason  But how should we approach to big networks, everybody can find a 3-4 node network’s optimal paths, but what about a 10 node network or a 1000 node one?
  • 5. What can be used ?  Hopfield Neural Networks, Genetic Algorithms(Randomized Improvement), etc.
  • 6. Why we can use HNN?  Because the recurrent structure of HNN is quite proper for representing a network which has vertices connected each other with distances  Synaptic weight matrix is quite analogous to node distance matrix  If there are 5 nodes, there will be 5*5=25 distances and 5 of them, which are the distances to themselves, will be 0. And this can be represented easily by synaptic weights assuming;  Wii = Wjj = 0
  • 7. Background: Hopfield Neural Network  John Hopfield, 1982  An Energy Based Model, energy minimization guarantees convergence to a stable attractor  Input and output are binary (0 & 1 || -1 & 1)  Auto-associative; automatically associates an output to a given input  Hebbian Learning or Storkey Learning Rules can be used  Learning corresponds to modification of synaptic(weights between neurons) weights  Usually used for Pattern Recognition and is very useful for it. Learning many patterns can be a problem(local minima ; spurious memory)..
  • 8. Consists of a single layer which contains one or more fully connected(so called recurrent) neurons Has two update rules; Synchronous(might oscillate) Asynchronous(will converge or go to a chaotic trajectory) Ordered Random
  • 9. Demonstration Using MATLAB  A HNN model can be represented using many programming languages.
  • 10.
  • 11. References  Prof. G. Srinivasan – IIT Madras  http://www.psychology.mcmaster.ca  http://www.mini.pw.edu.pl/~mandziuk  Photo Credit : www.heatonresearch.com  Artificial Intelligence Courses(Channel) – www.youtube.com  http://en.wikipedia.org/wiki/Hopfield_network#Learning_rules