SlideShare a Scribd company logo
Ant Colony
Optimization
Mohamed Talaat
1
Agenda
• What is ACO?
• Behaviors of Real ANTs
• Basic Idea of ACO.
• ACO Algorithm.
• Demo
• Applications of ACO.
• Advantages of ACO.
• Limitations of ACO.
2
3
What is ACO?
• Search technique to calculate a shortest path
between the source and destination. Biologically-
inspired from the behavior of natural ANTs.
• Ant system was developed by Marco Dorigo (Italy) in
his PhD thesis in 1992.
4
Behaviors of Real ANTs
• Regulation of nest temperature;
• Forming bridges;
• Raiding specific areas for food;
• Building and protecting nest;
• Sorting brood and food items;
• Cooperating in carrying large items;
• Emigration of a colony;
• Finding shortest route from nest to food source;
• Preferentially exploiting the richest food source available.
The ACO algorithm is inspired by this:
5
Stigmergy
• Stigmergy is indirect communication via interaction
with the environment.
• Ants have highly developed sophisticated sign-based
Stigmergy:
– They communicate using pheromones.
– They lay trails of pheromone that can be
followed by other ants.
6
Basic Idea Of ACO
• 2 ants start with equal probability of
going on either path.
7
Basic Idea Of ACO
• The ant on shorter path has a shorter
to-and-from time from it’s nest to the
food.
8
Basic Idea Of ACO
• The density of pheromone on the shorter path
is higher because of 2 passes by the ant (as
compared to 1 by the other).
9
Basic Idea Of ACO
• The next ant takes the shorter route.
10
Basic Idea Of ACO
• Over many iterations, more ants begin using
the path with higher pheromone, thereby
further reinforcing it.
11
Basic Idea Of ACO
• After some time, the shorter path is almost
exclusively used.
12
Basic Idea Of ACO
• The first ant wonders randomly until it finds its food source (F),
then it return to the nest (N), laying a pheromone trail.
• Other ants follow one on of the paths at random, also laying
pheromone trails.
• The ant on the shortest path lay pheromone trails faster, making
it more appearing to future ants.
• The ants become increasingly likely to follow this shortest path.
• The pheromone trails of the longer paths evaporate.
Shortest path is discovered via pheromone trails.
ACO Algorithm
• At the beginning of the search process, a constant amount of
pheromone is assigned to all arcs. When located at a node i an ant k use
the pheromone trail to compute the probability of choosing j as the next
node:
ACO Algorithm
• When the arc (i,j) is traversed, the pheromone value changes as follows:
ACO Algorithm
Demo
TSP – ACOhttp://www.theprojectspot.com/downloads/tsp-aco.html
16
17
Applications of ACO
• Routing in telecommunication networks.
• Traveling Salesman.
• Graph Coloring
• Scheduling
• Vehicle routing.
18
Advantage/Disadvantages s of ACO
• Advantages:
• Simple implementation.
• Easily parallelized for concurrent processing.
• Derivative free.
• Efficient for TSP and similar problems.
• Disadvantages:
• Probability distribution changes by iteration.
• Time to convergence uncertain (but convergence is
guaranteed!)
Thanks 
19

More Related Content

What's hot

Ant colony optimization
Ant colony optimizationAnt colony optimization
Ant colony optimization
Meenakshi Devi
 
Ant colony optimization
Ant colony optimizationAnt colony optimization
Ant colony optimization
Abdul Rahman
 

What's hot (20)

Ant colony optimization
Ant colony optimizationAnt colony optimization
Ant colony optimization
 
Ant colony optimization
Ant colony optimizationAnt colony optimization
Ant colony optimization
 
Ant colony optimization
Ant colony optimizationAnt colony optimization
Ant colony optimization
 
Ant colony algorithm
Ant colony algorithm Ant colony algorithm
Ant colony algorithm
 
Ant Colony Optimization: The Algorithm and Its Applications
Ant Colony Optimization: The Algorithm and Its ApplicationsAnt Colony Optimization: The Algorithm and Its Applications
Ant Colony Optimization: The Algorithm and Its Applications
 
ant colony optimization
ant colony optimizationant colony optimization
ant colony optimization
 
Ant colony optimization (aco)
Ant colony optimization (aco)Ant colony optimization (aco)
Ant colony optimization (aco)
 
Ant colony optimization
Ant colony optimizationAnt colony optimization
Ant colony optimization
 
Particle Swarm Optimization: The Algorithm and Its Applications
Particle Swarm Optimization: The Algorithm and Its ApplicationsParticle Swarm Optimization: The Algorithm and Its Applications
Particle Swarm Optimization: The Algorithm and Its Applications
 
Ant colony Optimization
Ant colony OptimizationAnt colony Optimization
Ant colony Optimization
 
Particle swarm optimization
Particle swarm optimizationParticle swarm optimization
Particle swarm optimization
 
Ant colony optimization
Ant colony optimizationAnt colony optimization
Ant colony optimization
 
Firefly algorithm
Firefly algorithmFirefly algorithm
Firefly algorithm
 
Ant Colony Optimization
Ant Colony OptimizationAnt Colony Optimization
Ant Colony Optimization
 
Firefly algorithm
Firefly algorithmFirefly algorithm
Firefly algorithm
 
Ant Colony Optimization
Ant Colony OptimizationAnt Colony Optimization
Ant Colony Optimization
 
Classification with ant colony optimization
Classification with ant colony optimizationClassification with ant colony optimization
Classification with ant colony optimization
 
ant colony algorithm
ant colony algorithmant colony algorithm
ant colony algorithm
 
Particle Swarm Optimization - PSO
Particle Swarm Optimization - PSOParticle Swarm Optimization - PSO
Particle Swarm Optimization - PSO
 
Practical Swarm Optimization (PSO)
Practical Swarm Optimization (PSO)Practical Swarm Optimization (PSO)
Practical Swarm Optimization (PSO)
 

Similar to Ant Colony Optimization - ACO

Ant_Colony_Optimization
Ant_Colony_OptimizationAnt_Colony_Optimization
Ant_Colony_Optimization
Neha Reddy
 
Neural nw ant colony algorithm
Neural nw   ant colony algorithmNeural nw   ant colony algorithm
Neural nw ant colony algorithm
Eng. Dr. Dennis N. Mwighusa
 
Ants and ants based routing
Ants and ants based routingAnts and ants based routing
Ants and ants based routing
Varun Chopra
 

Similar to Ant Colony Optimization - ACO (20)

Ant_Colony_Optimization
Ant_Colony_OptimizationAnt_Colony_Optimization
Ant_Colony_Optimization
 
Swarm Intelligence: An Application of Ant Colony Optimization
Swarm Intelligence: An Application of Ant Colony OptimizationSwarm Intelligence: An Application of Ant Colony Optimization
Swarm Intelligence: An Application of Ant Colony Optimization
 
Swarm intelligence and particle swarm optimization
Swarm intelligence and particle swarm optimizationSwarm intelligence and particle swarm optimization
Swarm intelligence and particle swarm optimization
 
Swarm intelligence and particle swarm optimization
Swarm intelligence and particle swarm optimizationSwarm intelligence and particle swarm optimization
Swarm intelligence and particle swarm optimization
 
Classification with ant colony optimization
Classification with ant colony optimizationClassification with ant colony optimization
Classification with ant colony optimization
 
Swarm Optimization Techniques_ACO.pdf
Swarm Optimization Techniques_ACO.pdfSwarm Optimization Techniques_ACO.pdf
Swarm Optimization Techniques_ACO.pdf
 
Neural nw ant colony algorithm
Neural nw   ant colony algorithmNeural nw   ant colony algorithm
Neural nw ant colony algorithm
 
Ants and ants based routing
Ants and ants based routingAnts and ants based routing
Ants and ants based routing
 
Swarm intelligence
Swarm intelligenceSwarm intelligence
Swarm intelligence
 
ANT ALGORITME.pptx
ANT ALGORITME.pptxANT ALGORITME.pptx
ANT ALGORITME.pptx
 
How ants find shortest path
How ants find shortest pathHow ants find shortest path
How ants find shortest path
 
Ant colony algorithm
Ant colony algorithmAnt colony algorithm
Ant colony algorithm
 
acoa
acoaacoa
acoa
 
11:12:2017 research project1_ppt
11:12:2017 research project1_ppt11:12:2017 research project1_ppt
11:12:2017 research project1_ppt
 
Bio-inspired computing Algorithms.pptx
Bio-inspired computing Algorithms.pptxBio-inspired computing Algorithms.pptx
Bio-inspired computing Algorithms.pptx
 
cs621-lect7-SI-13aug07.ppt
cs621-lect7-SI-13aug07.pptcs621-lect7-SI-13aug07.ppt
cs621-lect7-SI-13aug07.ppt
 
Cs621 lect7-si-13aug07
Cs621 lect7-si-13aug07Cs621 lect7-si-13aug07
Cs621 lect7-si-13aug07
 
2nd Order Swarm Intelligence
2nd Order Swarm Intelligence2nd Order Swarm Intelligence
2nd Order Swarm Intelligence
 
Path Navigation in ACO Using Mobile Robot
Path Navigation in ACO Using Mobile RobotPath Navigation in ACO Using Mobile Robot
Path Navigation in ACO Using Mobile Robot
 
Swarm intelligence
Swarm intelligenceSwarm intelligence
Swarm intelligence
 

More from Mohamed Talaat (6)

Digital Image Forgery
Digital Image ForgeryDigital Image Forgery
Digital Image Forgery
 
Digital Signature
Digital SignatureDigital Signature
Digital Signature
 
Genetic Algorithms - GAs
Genetic Algorithms - GAsGenetic Algorithms - GAs
Genetic Algorithms - GAs
 
Artificial Neural Networks - ANN
Artificial Neural Networks - ANNArtificial Neural Networks - ANN
Artificial Neural Networks - ANN
 
Digital Watermarking
Digital WatermarkingDigital Watermarking
Digital Watermarking
 
Data hiding - Steganography
Data hiding - SteganographyData hiding - Steganography
Data hiding - Steganography
 

Recently uploaded

Future Visions: Predictions to Guide and Time Tech Innovation, Peter Udo Diehl
Future Visions: Predictions to Guide and Time Tech Innovation, Peter Udo DiehlFuture Visions: Predictions to Guide and Time Tech Innovation, Peter Udo Diehl
Future Visions: Predictions to Guide and Time Tech Innovation, Peter Udo Diehl
Peter Udo Diehl
 
Essentials of Automations: Optimizing FME Workflows with Parameters
Essentials of Automations: Optimizing FME Workflows with ParametersEssentials of Automations: Optimizing FME Workflows with Parameters
Essentials of Automations: Optimizing FME Workflows with Parameters
Safe Software
 

Recently uploaded (20)

ODC, Data Fabric and Architecture User Group
ODC, Data Fabric and Architecture User GroupODC, Data Fabric and Architecture User Group
ODC, Data Fabric and Architecture User Group
 
De-mystifying Zero to One: Design Informed Techniques for Greenfield Innovati...
De-mystifying Zero to One: Design Informed Techniques for Greenfield Innovati...De-mystifying Zero to One: Design Informed Techniques for Greenfield Innovati...
De-mystifying Zero to One: Design Informed Techniques for Greenfield Innovati...
 
To Graph or Not to Graph Knowledge Graph Architectures and LLMs
To Graph or Not to Graph Knowledge Graph Architectures and LLMsTo Graph or Not to Graph Knowledge Graph Architectures and LLMs
To Graph or Not to Graph Knowledge Graph Architectures and LLMs
 
Accelerate your Kubernetes clusters with Varnish Caching
Accelerate your Kubernetes clusters with Varnish CachingAccelerate your Kubernetes clusters with Varnish Caching
Accelerate your Kubernetes clusters with Varnish Caching
 
Key Trends Shaping the Future of Infrastructure.pdf
Key Trends Shaping the Future of Infrastructure.pdfKey Trends Shaping the Future of Infrastructure.pdf
Key Trends Shaping the Future of Infrastructure.pdf
 
UiPath Test Automation using UiPath Test Suite series, part 3
UiPath Test Automation using UiPath Test Suite series, part 3UiPath Test Automation using UiPath Test Suite series, part 3
UiPath Test Automation using UiPath Test Suite series, part 3
 
FIDO Alliance Osaka Seminar: Passkeys and the Road Ahead.pdf
FIDO Alliance Osaka Seminar: Passkeys and the Road Ahead.pdfFIDO Alliance Osaka Seminar: Passkeys and the Road Ahead.pdf
FIDO Alliance Osaka Seminar: Passkeys and the Road Ahead.pdf
 
Future Visions: Predictions to Guide and Time Tech Innovation, Peter Udo Diehl
Future Visions: Predictions to Guide and Time Tech Innovation, Peter Udo DiehlFuture Visions: Predictions to Guide and Time Tech Innovation, Peter Udo Diehl
Future Visions: Predictions to Guide and Time Tech Innovation, Peter Udo Diehl
 
Le nuove frontiere dell'AI nell'RPA con UiPath Autopilot™
Le nuove frontiere dell'AI nell'RPA con UiPath Autopilot™Le nuove frontiere dell'AI nell'RPA con UiPath Autopilot™
Le nuove frontiere dell'AI nell'RPA con UiPath Autopilot™
 
Neuro-symbolic is not enough, we need neuro-*semantic*
Neuro-symbolic is not enough, we need neuro-*semantic*Neuro-symbolic is not enough, we need neuro-*semantic*
Neuro-symbolic is not enough, we need neuro-*semantic*
 
IOS-PENTESTING-BEGINNERS-PRACTICAL-GUIDE-.pptx
IOS-PENTESTING-BEGINNERS-PRACTICAL-GUIDE-.pptxIOS-PENTESTING-BEGINNERS-PRACTICAL-GUIDE-.pptx
IOS-PENTESTING-BEGINNERS-PRACTICAL-GUIDE-.pptx
 
From Daily Decisions to Bottom Line: Connecting Product Work to Revenue by VP...
From Daily Decisions to Bottom Line: Connecting Product Work to Revenue by VP...From Daily Decisions to Bottom Line: Connecting Product Work to Revenue by VP...
From Daily Decisions to Bottom Line: Connecting Product Work to Revenue by VP...
 
Ransomware Mallox [EN].pdf
Ransomware         Mallox       [EN].pdfRansomware         Mallox       [EN].pdf
Ransomware Mallox [EN].pdf
 
FIDO Alliance Osaka Seminar: Passkeys at Amazon.pdf
FIDO Alliance Osaka Seminar: Passkeys at Amazon.pdfFIDO Alliance Osaka Seminar: Passkeys at Amazon.pdf
FIDO Alliance Osaka Seminar: Passkeys at Amazon.pdf
 
Elevating Tactical DDD Patterns Through Object Calisthenics
Elevating Tactical DDD Patterns Through Object CalisthenicsElevating Tactical DDD Patterns Through Object Calisthenics
Elevating Tactical DDD Patterns Through Object Calisthenics
 
Connector Corner: Automate dynamic content and events by pushing a button
Connector Corner: Automate dynamic content and events by pushing a buttonConnector Corner: Automate dynamic content and events by pushing a button
Connector Corner: Automate dynamic content and events by pushing a button
 
Essentials of Automations: Optimizing FME Workflows with Parameters
Essentials of Automations: Optimizing FME Workflows with ParametersEssentials of Automations: Optimizing FME Workflows with Parameters
Essentials of Automations: Optimizing FME Workflows with Parameters
 
Dev Dives: Train smarter, not harder – active learning and UiPath LLMs for do...
Dev Dives: Train smarter, not harder – active learning and UiPath LLMs for do...Dev Dives: Train smarter, not harder – active learning and UiPath LLMs for do...
Dev Dives: Train smarter, not harder – active learning and UiPath LLMs for do...
 
Kubernetes & AI - Beauty and the Beast !?! @KCD Istanbul 2024
Kubernetes & AI - Beauty and the Beast !?! @KCD Istanbul 2024Kubernetes & AI - Beauty and the Beast !?! @KCD Istanbul 2024
Kubernetes & AI - Beauty and the Beast !?! @KCD Istanbul 2024
 
The Art of the Pitch: WordPress Relationships and Sales
The Art of the Pitch: WordPress Relationships and SalesThe Art of the Pitch: WordPress Relationships and Sales
The Art of the Pitch: WordPress Relationships and Sales
 

Ant Colony Optimization - ACO

  • 2. Agenda • What is ACO? • Behaviors of Real ANTs • Basic Idea of ACO. • ACO Algorithm. • Demo • Applications of ACO. • Advantages of ACO. • Limitations of ACO. 2
  • 3. 3 What is ACO? • Search technique to calculate a shortest path between the source and destination. Biologically- inspired from the behavior of natural ANTs. • Ant system was developed by Marco Dorigo (Italy) in his PhD thesis in 1992.
  • 4. 4 Behaviors of Real ANTs • Regulation of nest temperature; • Forming bridges; • Raiding specific areas for food; • Building and protecting nest; • Sorting brood and food items; • Cooperating in carrying large items; • Emigration of a colony; • Finding shortest route from nest to food source; • Preferentially exploiting the richest food source available. The ACO algorithm is inspired by this:
  • 5. 5 Stigmergy • Stigmergy is indirect communication via interaction with the environment. • Ants have highly developed sophisticated sign-based Stigmergy: – They communicate using pheromones. – They lay trails of pheromone that can be followed by other ants.
  • 6. 6 Basic Idea Of ACO • 2 ants start with equal probability of going on either path.
  • 7. 7 Basic Idea Of ACO • The ant on shorter path has a shorter to-and-from time from it’s nest to the food.
  • 8. 8 Basic Idea Of ACO • The density of pheromone on the shorter path is higher because of 2 passes by the ant (as compared to 1 by the other).
  • 9. 9 Basic Idea Of ACO • The next ant takes the shorter route.
  • 10. 10 Basic Idea Of ACO • Over many iterations, more ants begin using the path with higher pheromone, thereby further reinforcing it.
  • 11. 11 Basic Idea Of ACO • After some time, the shorter path is almost exclusively used.
  • 12. 12 Basic Idea Of ACO • The first ant wonders randomly until it finds its food source (F), then it return to the nest (N), laying a pheromone trail. • Other ants follow one on of the paths at random, also laying pheromone trails. • The ant on the shortest path lay pheromone trails faster, making it more appearing to future ants. • The ants become increasingly likely to follow this shortest path. • The pheromone trails of the longer paths evaporate. Shortest path is discovered via pheromone trails.
  • 13. ACO Algorithm • At the beginning of the search process, a constant amount of pheromone is assigned to all arcs. When located at a node i an ant k use the pheromone trail to compute the probability of choosing j as the next node:
  • 14. ACO Algorithm • When the arc (i,j) is traversed, the pheromone value changes as follows:
  • 17. 17 Applications of ACO • Routing in telecommunication networks. • Traveling Salesman. • Graph Coloring • Scheduling • Vehicle routing.
  • 18. 18 Advantage/Disadvantages s of ACO • Advantages: • Simple implementation. • Easily parallelized for concurrent processing. • Derivative free. • Efficient for TSP and similar problems. • Disadvantages: • Probability distribution changes by iteration. • Time to convergence uncertain (but convergence is guaranteed!)