SlideShare a Scribd company logo
1 of 43
COMBINATORIAL 
OPTIMIZATION 
Guided By: Prepared By 
Dhaval Jha Anjali Bidua 
Asst Professor 12bce155
Overview 
What is Optimization? 
What is Combinatorial Optimization? 
Applications of Combinatorial Optimization 
Identification of different Combinatorial Problems 
Minimum Spanning Tree 
Overview Of Travelling Salesman Problem
Optimization 
Optimization is technique of finding the optimal solution when 
more than one solutions are available. 
It is a live field of Mathematics. 
It can be better known by Integer Programming. 
Linear programming is a mathematical programming technique 
to optimize performance under a set of resource constraints.
There are various methods for solving optimization problems by 
integer programming. 
Some of them are: 
Graphical Method 
Simplex Method
Combinatorial Optimization 
Combinatorial optimization deals with algorithmic 
approaches to finding specified configurations or 
objects in finite structures such as directed and 
undirected graphs, hyper graphs, networks, matroids, 
partially ordered sets, and so forth.
Major Combinatorial Optimization Problems 
Minimum spanning tree 
Travelling salesman problem 
Vehicle routing problem 
Weapon target assignment problem 
Knapsack problem
Minimum Spanning Tree 
Given a connected, undirected graph, a spanning tree 
of that graph is a subgraph that is a tree and connects 
all the vertices together. 
A minimum spanning tree (MST) or minimum weight 
spanning tree is then a spanning tree with weight less 
than or equal to the weight of every other spanning 
tree.
Travelling Salesman Problem 
Given a set of cities and the distance between each 
possible pair, the Travelling Salesman Problem is to 
find the best possible way of ‘visiting all the cities 
exactly once and returning to the starting point’.
Vehicle Routing Problem 
The vehicle routing problem (VRP) is a combinatorial optimization and 
integer programming problem seeking to service a number of customers 
with a fleet of vehicles. 
VRP is an important problem in the fields of transportation, distribution and 
logistics. Often the context is that of delivering goods located at a central 
depot to customers who have placed orders for such goods. 
Implicit is the goal of minimizing the cost of distributing the goods. Many 
methods have been developed for searching for good solutions to the 
problem, but for all but the smallest problems, finding global minimum for 
the cost function is computationally complex.
Weapon Target Assignment problem 
It consists of finding an optimal assignment of a set of 
weapons of various types to a set of targets in order 
to maximize the total expected damage done to the 
opponent
Knapsack problem 
The problem often arises in resource allocation 
where there are financial constraints and is 
studied in fields such as combinatorics, 
computer science, complexity theory, 
cryptography and applied mathematics.
Minimum Spanning Tree 
Definition: A tree is a connected undirected graph with no 
simple circuits. 
A spanning tree of a graph is just a subgraph that contains all 
the vertices and is a tree. 
Spanning Tree properties: On a connected graph G=(V, E), a 
spanning tree: 
• is a connected subgraph 
• acyclic 
• is a tree (|E| = |V| - 1) 
• contains all vertices of G (spanning)
Minimum weight spanning tree (MST) 
On a weighted graph, A MST: 
connects all vertices through edges with least weights. 
has w(T) ≤ w(T’) for every other spanning tree T’ in G 
Adding one edge not in MST will create a cycle
Finding Minimum Spanning Tree 
Algorithms : 
Kruskal’s 
Prim’s
Compare Prim and Kruskal 
Complexity 
Kruskal: O(NlogN) 
comparison sort for edges 
Prim: O(NlogN) 
search the least weight edge for 
every vertice
MST Conclusion 
Kruskal’s has better running times if the number 
of edges is low, while Prim’s has a better running 
time if both the number of edges and the 
number of nodes are low. 
So, of course, the best algorithm depends on the 
graph and if you want to bear the cost of 
complex data structures.
Applications of MST 
Design of networks, including computer networks, 
telecommunications networks, transportation 
networks, water supply networks, and electrical grids 
Applications of MST in Sensor Networks 
A tree is formed from all sensor nodes to the sink so 
that the transmission power of all sensor nodes is 
minimum
Travelling Salesman Problem 
In the theory of computational complexity, the 
decision version of the TSP where, given a length L, 
the task is to decide whether the graph has any tour 
shorter than L.
TSP : An NP-HARD Problem! 
TSP is an NP-hard problem in combinatorial optimization 
studied in theoretical computer science. 
In many applications, additional constraints such as limited 
resources or time windows make the problem 
considerably harder. 
Removing the constraint of visiting each city exactly one 
time also doesn't reduce complexity of the problem.
Applications of TSP 
Planning 
Logistics 
Manufacture of microchips 
Slightly modified, it appears as a sub-problem in many areas, such as DNA sequencing 
Integrated circuit 
Mechanical arm
Solutions 
Exact solutions 
Heuristic algorithms 
Finding subproblems for the problem
Exact Solution 
Consider city 1 as the starting and ending point. 
Generate all (n-1)! Permutations of cities. 
Calculate cost of every permutation and keep track of 
minimum cost permutation. 
Return the permutation with minimum cost. 
Time Complexity: O(n!)
Heuristic Solution 
The greedy algorithm can be used to give a good 
but not optimal solution in a reasonably short 
amount of time. 
The greedy algorithm heuristic says to pick 
whatever is currently the best next step 
regardless of whether that precludes good steps 
later.
Dynamic Programming 
Division of Problem into Sub-Problems 
Memoization
An Example
An Example 
Let the given set of vertices be {1, 2, 3, 4,….n}. 
Let us consider 1 as starting and ending point of 
output. 
For every other vertex i (other than 1), we find 
the minimum cost path with 1 as the starting 
point, i as the ending point and all vertices 
appearing exactly once.
Let the cost of this path be cost(i), the cost of corresponding 
Cycle would be cost(i) + dist(i, 1) where dist(i, 1) is the distance 
from i to 1. Finally, we return the minimum of all [cost(i) + dist(i, 
1)] values. 
Let us define a term C(S, i) be the cost of the minimum cost 
path visiting each vertex in set S exactly once, starting at 1 and 
ending at i. 
We start with all subsets of size 2 and calculate C(S, i) for all 
subsets where S is the subset, then we calculate C(S, i) for all 
subsets S of size 3 and so on. Note that 1 must be present in 
every subset.
If size of S is 2, then 
S must be {1, i}, C(S, i) = dist(1, i) 
Else if size of S is greater than 2 
C(S, i) = min { C(S-{i}, j) + dis(j, i)} 
where j belongs to S, j != i and j != 1. 
For a set of size n, we consider n-2 subsets each of size n-1 such that all 
subsets don’t have nth in them. 
The total running time is O(n2*2n). The time complexity is much less 
than O(n!), but still exponential. Space required is also exponential. So 
this approach is also infeasible even for slightly higher number of 
vertices.
TSP Using Dynamic Programming
TSP Without Dynamic 
Programming
Sparse Graphs 
For 2 cities
With Dynamic Programming
Without Dynamic Programming
Dense Graphs 
For 6 cities
With Dynamic Programming
Without dynamic Programming
Conclusion 
• When we have a limited set of targets to 
meet, Tsp using Dynamic Programming is 
efficient. 
• But when we have a considerable more 
number of targets this concept is not much 
useful.
Various scenarios
Connected Graph
Complete Graph
References 
• Discrete Optimization". Elsevier. Jump up Jump up Cook, 
William. "Optimal TSP Tours". University of Waterloo. 
• Fredman, M. L.; Willard, D. E. (1994), "Trans-dichotomous 
algorithms for minimum spanning trees and shortest 
paths", Journal of Computer and System Sciences 
• Karger, David R.; Klein, Philip N.; Tarjan, Robert E. (1995), "A 
randomized linear-time algorithm to find minimum 
spanning trees", Journal of the Association for Computing 
Machinery 
• Applegate, D. L.; Bixby, R. M.; Chvátal, V.; Cook, W. J. (2006), 
The Traveling Salesman Problem 
• Bellman, R. (1962), "Dynamic Programming Treatment of 
the Travelling Salesman Problem", J. Assoc. Comput. Mach.

More Related Content

What's hot

Optimization technique genetic algorithm
Optimization technique genetic algorithmOptimization technique genetic algorithm
Optimization technique genetic algorithmUday Wankar
 
Particle swarm optimization
Particle swarm optimizationParticle swarm optimization
Particle swarm optimizationSuman Chatterjee
 
Ant Colony Optimization - ACO
Ant Colony Optimization - ACOAnt Colony Optimization - ACO
Ant Colony Optimization - ACOMohamed Talaat
 
Genetic Algorithm in Artificial Intelligence
Genetic Algorithm in Artificial IntelligenceGenetic Algorithm in Artificial Intelligence
Genetic Algorithm in Artificial IntelligenceSinbad Konick
 
Flowchart of GA
Flowchart of GAFlowchart of GA
Flowchart of GAIshucs
 
PSO and Its application in Engineering
PSO and Its application in EngineeringPSO and Its application in Engineering
PSO and Its application in EngineeringPrince Jain
 
Multi Objective Optimization and Pareto Multi Objective Optimization with cas...
Multi Objective Optimization and Pareto Multi Objective Optimization with cas...Multi Objective Optimization and Pareto Multi Objective Optimization with cas...
Multi Objective Optimization and Pareto Multi Objective Optimization with cas...Aditya Deshpande
 
Particle Swarm Optimization by Rajorshi Mukherjee
Particle Swarm Optimization by Rajorshi MukherjeeParticle Swarm Optimization by Rajorshi Mukherjee
Particle Swarm Optimization by Rajorshi MukherjeeRajorshi Mukherjee
 
Genetic algorithm raktim
Genetic algorithm raktimGenetic algorithm raktim
Genetic algorithm raktimRaktim Halder
 
Particle swarm optimization
Particle swarm optimizationParticle swarm optimization
Particle swarm optimizationHanya Mohammed
 
Particle swarm optimization
Particle swarm optimizationParticle swarm optimization
Particle swarm optimizationanurag singh
 
Genetic Algorithm
Genetic AlgorithmGenetic Algorithm
Genetic AlgorithmSHIMI S L
 
Genetic algorithm
Genetic algorithmGenetic algorithm
Genetic algorithmMegha V
 
Particle Swarm Optimization
Particle Swarm OptimizationParticle Swarm Optimization
Particle Swarm OptimizationQasimRehman
 

What's hot (20)

Optimization technique genetic algorithm
Optimization technique genetic algorithmOptimization technique genetic algorithm
Optimization technique genetic algorithm
 
Particle swarm optimization
Particle swarm optimizationParticle swarm optimization
Particle swarm optimization
 
Metaheuristics
MetaheuristicsMetaheuristics
Metaheuristics
 
Ant Colony Optimization - ACO
Ant Colony Optimization - ACOAnt Colony Optimization - ACO
Ant Colony Optimization - ACO
 
AI Lecture 4 (informed search and exploration)
AI Lecture 4 (informed search and exploration)AI Lecture 4 (informed search and exploration)
AI Lecture 4 (informed search and exploration)
 
Genetic Algorithm in Artificial Intelligence
Genetic Algorithm in Artificial IntelligenceGenetic Algorithm in Artificial Intelligence
Genetic Algorithm in Artificial Intelligence
 
search strategies in artificial intelligence
search strategies in artificial intelligencesearch strategies in artificial intelligence
search strategies in artificial intelligence
 
Flowchart of GA
Flowchart of GAFlowchart of GA
Flowchart of GA
 
PSO and Its application in Engineering
PSO and Its application in EngineeringPSO and Its application in Engineering
PSO and Its application in Engineering
 
Multi Objective Optimization and Pareto Multi Objective Optimization with cas...
Multi Objective Optimization and Pareto Multi Objective Optimization with cas...Multi Objective Optimization and Pareto Multi Objective Optimization with cas...
Multi Objective Optimization and Pareto Multi Objective Optimization with cas...
 
Particle Swarm Optimization by Rajorshi Mukherjee
Particle Swarm Optimization by Rajorshi MukherjeeParticle Swarm Optimization by Rajorshi Mukherjee
Particle Swarm Optimization by Rajorshi Mukherjee
 
Genetic algorithm raktim
Genetic algorithm raktimGenetic algorithm raktim
Genetic algorithm raktim
 
Introduction to optimization Problems
Introduction to optimization ProblemsIntroduction to optimization Problems
Introduction to optimization Problems
 
Particle swarm optimization
Particle swarm optimizationParticle swarm optimization
Particle swarm optimization
 
Particle swarm optimization
Particle swarm optimizationParticle swarm optimization
Particle swarm optimization
 
Tabu search
Tabu searchTabu search
Tabu search
 
Genetic Algorithm
Genetic AlgorithmGenetic Algorithm
Genetic Algorithm
 
Dynamic programming
Dynamic programmingDynamic programming
Dynamic programming
 
Genetic algorithm
Genetic algorithmGenetic algorithm
Genetic algorithm
 
Particle Swarm Optimization
Particle Swarm OptimizationParticle Swarm Optimization
Particle Swarm Optimization
 

Viewers also liked

Optimum polygon triangulation
Optimum polygon triangulationOptimum polygon triangulation
Optimum polygon triangulationHarsukh Chandak
 
Dynamic Programming
Dynamic ProgrammingDynamic Programming
Dynamic ProgrammingSahil Kumar
 
Dynamic Programming
Dynamic ProgrammingDynamic Programming
Dynamic Programmingparamalways
 
Graph problem & lp formulation
Graph problem & lp formulationGraph problem & lp formulation
Graph problem & lp formulationDharmesh Tank
 
Algoritmos para el problema de árbol de expansión mínima robusto con datos in...
Algoritmos para el problema de árbol de expansión mínima robusto con datos in...Algoritmos para el problema de árbol de expansión mínima robusto con datos in...
Algoritmos para el problema de árbol de expansión mínima robusto con datos in...Francisco Pérez
 
Connected components and shortest path
Connected components and shortest pathConnected components and shortest path
Connected components and shortest pathKaushik Koneru
 
Minimum Spanning Tree
Minimum Spanning TreeMinimum Spanning Tree
Minimum Spanning Treezhaokatherine
 
5.3 arbol de expansión minima algoritmo de prim
5.3 arbol de expansión minima algoritmo de prim5.3 arbol de expansión minima algoritmo de prim
5.3 arbol de expansión minima algoritmo de primADRIANA NIETO
 
My presentation minimum spanning tree
My presentation minimum spanning treeMy presentation minimum spanning tree
My presentation minimum spanning treeAlona Salva
 
Dynamic programming - fundamentals review
Dynamic programming - fundamentals reviewDynamic programming - fundamentals review
Dynamic programming - fundamentals reviewElifTech
 
Spanning trees & applications
Spanning trees & applicationsSpanning trees & applications
Spanning trees & applicationsTech_MX
 
El problema de la ruta mas corta
El problema de la ruta mas corta El problema de la ruta mas corta
El problema de la ruta mas corta Luis Fajardo
 
Optimizacion De Redes
Optimizacion De RedesOptimizacion De Redes
Optimizacion De RedesHero Valrey
 
Prim's Algorithm on minimum spanning tree
Prim's Algorithm on minimum spanning treePrim's Algorithm on minimum spanning tree
Prim's Algorithm on minimum spanning treeoneous
 
Lecture 8 dynamic programming
Lecture 8 dynamic programmingLecture 8 dynamic programming
Lecture 8 dynamic programmingOye Tu
 
Operations research - an overview
Operations research -  an overviewOperations research -  an overview
Operations research - an overviewJoseph Konnully
 

Viewers also liked (20)

Optimum polygon triangulation
Optimum polygon triangulationOptimum polygon triangulation
Optimum polygon triangulation
 
Dynamic pgmming
Dynamic pgmmingDynamic pgmming
Dynamic pgmming
 
Dynamic Programming
Dynamic ProgrammingDynamic Programming
Dynamic Programming
 
Dynamic Programming
Dynamic ProgrammingDynamic Programming
Dynamic Programming
 
Graph problem & lp formulation
Graph problem & lp formulationGraph problem & lp formulation
Graph problem & lp formulation
 
Algoritmos para el problema de árbol de expansión mínima robusto con datos in...
Algoritmos para el problema de árbol de expansión mínima robusto con datos in...Algoritmos para el problema de árbol de expansión mínima robusto con datos in...
Algoritmos para el problema de árbol de expansión mínima robusto con datos in...
 
Connected components and shortest path
Connected components and shortest pathConnected components and shortest path
Connected components and shortest path
 
Dynamic programming
Dynamic programmingDynamic programming
Dynamic programming
 
Minimum Spanning Tree
Minimum Spanning TreeMinimum Spanning Tree
Minimum Spanning Tree
 
5.3 arbol de expansión minima algoritmo de prim
5.3 arbol de expansión minima algoritmo de prim5.3 arbol de expansión minima algoritmo de prim
5.3 arbol de expansión minima algoritmo de prim
 
Operations research
Operations researchOperations research
Operations research
 
My presentation minimum spanning tree
My presentation minimum spanning treeMy presentation minimum spanning tree
My presentation minimum spanning tree
 
Dynamic programming - fundamentals review
Dynamic programming - fundamentals reviewDynamic programming - fundamentals review
Dynamic programming - fundamentals review
 
Spanning trees & applications
Spanning trees & applicationsSpanning trees & applications
Spanning trees & applications
 
El problema de la ruta mas corta
El problema de la ruta mas corta El problema de la ruta mas corta
El problema de la ruta mas corta
 
Optimizacion De Redes
Optimizacion De RedesOptimizacion De Redes
Optimizacion De Redes
 
Prim's Algorithm on minimum spanning tree
Prim's Algorithm on minimum spanning treePrim's Algorithm on minimum spanning tree
Prim's Algorithm on minimum spanning tree
 
Lecture 8 dynamic programming
Lecture 8 dynamic programmingLecture 8 dynamic programming
Lecture 8 dynamic programming
 
Operations research - an overview
Operations research -  an overviewOperations research -  an overview
Operations research - an overview
 
Triangulation
Triangulation Triangulation
Triangulation
 

Similar to Combinatorial Optimization

Traveling Salesman Problem in Distributed Environment
Traveling Salesman Problem in Distributed EnvironmentTraveling Salesman Problem in Distributed Environment
Traveling Salesman Problem in Distributed Environmentcsandit
 
TRAVELING SALESMAN PROBLEM IN DISTRIBUTED ENVIRONMENT
TRAVELING SALESMAN PROBLEM IN DISTRIBUTED ENVIRONMENTTRAVELING SALESMAN PROBLEM IN DISTRIBUTED ENVIRONMENT
TRAVELING SALESMAN PROBLEM IN DISTRIBUTED ENVIRONMENTcscpconf
 
Particle Swarm Optimization to Solve Multiple Traveling Salesman Problem
Particle Swarm Optimization to Solve Multiple Traveling Salesman ProblemParticle Swarm Optimization to Solve Multiple Traveling Salesman Problem
Particle Swarm Optimization to Solve Multiple Traveling Salesman ProblemIRJET Journal
 
implementation of travelling salesman problem with complexity ppt
implementation of travelling salesman problem with complexity pptimplementation of travelling salesman problem with complexity ppt
implementation of travelling salesman problem with complexity pptAntaraBhattacharya12
 
ETCS262A-Analysis of design Algorithm.pptx
ETCS262A-Analysis of design Algorithm.pptxETCS262A-Analysis of design Algorithm.pptx
ETCS262A-Analysis of design Algorithm.pptxRahulSingh190790
 
MapReduceAlgorithms.ppt
MapReduceAlgorithms.pptMapReduceAlgorithms.ppt
MapReduceAlgorithms.pptCheeWeiTan10
 
Undecidable Problems and Approximation Algorithms
Undecidable Problems and Approximation AlgorithmsUndecidable Problems and Approximation Algorithms
Undecidable Problems and Approximation AlgorithmsMuthu Vinayagam
 
Optimization Techniques
Optimization TechniquesOptimization Techniques
Optimization TechniquesAjay Bidyarthy
 
Time and space complexity
Time and space complexityTime and space complexity
Time and space complexityAnkit Katiyar
 
Travelling Salesman Problem using Partical Swarm Optimization
Travelling Salesman Problem using Partical Swarm OptimizationTravelling Salesman Problem using Partical Swarm Optimization
Travelling Salesman Problem using Partical Swarm OptimizationIlgın Kavaklıoğulları
 
unit-4-dynamic programming
unit-4-dynamic programmingunit-4-dynamic programming
unit-4-dynamic programminghodcsencet
 
Introduction to dynamic programming
Introduction to dynamic programmingIntroduction to dynamic programming
Introduction to dynamic programmingAmisha Narsingani
 

Similar to Combinatorial Optimization (20)

NP-Completeness - II
NP-Completeness - IINP-Completeness - II
NP-Completeness - II
 
Traveling Salesman Problem in Distributed Environment
Traveling Salesman Problem in Distributed EnvironmentTraveling Salesman Problem in Distributed Environment
Traveling Salesman Problem in Distributed Environment
 
TRAVELING SALESMAN PROBLEM IN DISTRIBUTED ENVIRONMENT
TRAVELING SALESMAN PROBLEM IN DISTRIBUTED ENVIRONMENTTRAVELING SALESMAN PROBLEM IN DISTRIBUTED ENVIRONMENT
TRAVELING SALESMAN PROBLEM IN DISTRIBUTED ENVIRONMENT
 
Particle Swarm Optimization to Solve Multiple Traveling Salesman Problem
Particle Swarm Optimization to Solve Multiple Traveling Salesman ProblemParticle Swarm Optimization to Solve Multiple Traveling Salesman Problem
Particle Swarm Optimization to Solve Multiple Traveling Salesman Problem
 
implementation of travelling salesman problem with complexity ppt
implementation of travelling salesman problem with complexity pptimplementation of travelling salesman problem with complexity ppt
implementation of travelling salesman problem with complexity ppt
 
Chap12 slides
Chap12 slidesChap12 slides
Chap12 slides
 
ETCS262A-Analysis of design Algorithm.pptx
ETCS262A-Analysis of design Algorithm.pptxETCS262A-Analysis of design Algorithm.pptx
ETCS262A-Analysis of design Algorithm.pptx
 
MapReduceAlgorithms.ppt
MapReduceAlgorithms.pptMapReduceAlgorithms.ppt
MapReduceAlgorithms.ppt
 
Analysis of Algorithm
Analysis of AlgorithmAnalysis of Algorithm
Analysis of Algorithm
 
Approximation algorithms
Approximation  algorithms Approximation  algorithms
Approximation algorithms
 
Undecidable Problems and Approximation Algorithms
Undecidable Problems and Approximation AlgorithmsUndecidable Problems and Approximation Algorithms
Undecidable Problems and Approximation Algorithms
 
MS Project
MS ProjectMS Project
MS Project
 
Optimization Techniques
Optimization TechniquesOptimization Techniques
Optimization Techniques
 
Time and space complexity
Time and space complexityTime and space complexity
Time and space complexity
 
Shortest Path Problem
Shortest Path ProblemShortest Path Problem
Shortest Path Problem
 
1535 graph algorithms
1535 graph algorithms1535 graph algorithms
1535 graph algorithms
 
Travelling Salesman Problem using Partical Swarm Optimization
Travelling Salesman Problem using Partical Swarm OptimizationTravelling Salesman Problem using Partical Swarm Optimization
Travelling Salesman Problem using Partical Swarm Optimization
 
unit-4-dynamic programming
unit-4-dynamic programmingunit-4-dynamic programming
unit-4-dynamic programming
 
Chap10 slides
Chap10 slidesChap10 slides
Chap10 slides
 
Introduction to dynamic programming
Introduction to dynamic programmingIntroduction to dynamic programming
Introduction to dynamic programming
 

Recently uploaded

EduAI - E learning Platform integrated with AI
EduAI - E learning Platform integrated with AIEduAI - E learning Platform integrated with AI
EduAI - E learning Platform integrated with AIkoyaldeepu123
 
Sachpazis Costas: Geotechnical Engineering: A student's Perspective Introduction
Sachpazis Costas: Geotechnical Engineering: A student's Perspective IntroductionSachpazis Costas: Geotechnical Engineering: A student's Perspective Introduction
Sachpazis Costas: Geotechnical Engineering: A student's Perspective IntroductionDr.Costas Sachpazis
 
CCS355 Neural Network & Deep Learning Unit II Notes with Question bank .pdf
CCS355 Neural Network & Deep Learning Unit II Notes with Question bank .pdfCCS355 Neural Network & Deep Learning Unit II Notes with Question bank .pdf
CCS355 Neural Network & Deep Learning Unit II Notes with Question bank .pdfAsst.prof M.Gokilavani
 
Architect Hassan Khalil Portfolio for 2024
Architect Hassan Khalil Portfolio for 2024Architect Hassan Khalil Portfolio for 2024
Architect Hassan Khalil Portfolio for 2024hassan khalil
 
Software and Systems Engineering Standards: Verification and Validation of Sy...
Software and Systems Engineering Standards: Verification and Validation of Sy...Software and Systems Engineering Standards: Verification and Validation of Sy...
Software and Systems Engineering Standards: Verification and Validation of Sy...VICTOR MAESTRE RAMIREZ
 
Work Experience-Dalton Park.pptxfvvvvvvv
Work Experience-Dalton Park.pptxfvvvvvvvWork Experience-Dalton Park.pptxfvvvvvvv
Work Experience-Dalton Park.pptxfvvvvvvvLewisJB
 
Call Us ≽ 8377877756 ≼ Call Girls In Shastri Nagar (Delhi)
Call Us ≽ 8377877756 ≼ Call Girls In Shastri Nagar (Delhi)Call Us ≽ 8377877756 ≼ Call Girls In Shastri Nagar (Delhi)
Call Us ≽ 8377877756 ≼ Call Girls In Shastri Nagar (Delhi)dollysharma2066
 
Application of Residue Theorem to evaluate real integrations.pptx
Application of Residue Theorem to evaluate real integrations.pptxApplication of Residue Theorem to evaluate real integrations.pptx
Application of Residue Theorem to evaluate real integrations.pptx959SahilShah
 
UNIT III ANALOG ELECTRONICS (BASIC ELECTRONICS)
UNIT III ANALOG ELECTRONICS (BASIC ELECTRONICS)UNIT III ANALOG ELECTRONICS (BASIC ELECTRONICS)
UNIT III ANALOG ELECTRONICS (BASIC ELECTRONICS)Dr SOUNDIRARAJ N
 
Gurgaon ✡️9711147426✨Call In girls Gurgaon Sector 51 escort service
Gurgaon ✡️9711147426✨Call In girls Gurgaon Sector 51 escort serviceGurgaon ✡️9711147426✨Call In girls Gurgaon Sector 51 escort service
Gurgaon ✡️9711147426✨Call In girls Gurgaon Sector 51 escort servicejennyeacort
 
DATA ANALYTICS PPT definition usage example
DATA ANALYTICS PPT definition usage exampleDATA ANALYTICS PPT definition usage example
DATA ANALYTICS PPT definition usage examplePragyanshuParadkar1
 
Introduction to Machine Learning Unit-3 for II MECH
Introduction to Machine Learning Unit-3 for II MECHIntroduction to Machine Learning Unit-3 for II MECH
Introduction to Machine Learning Unit-3 for II MECHC Sai Kiran
 
Introduction-To-Agricultural-Surveillance-Rover.pptx
Introduction-To-Agricultural-Surveillance-Rover.pptxIntroduction-To-Agricultural-Surveillance-Rover.pptx
Introduction-To-Agricultural-Surveillance-Rover.pptxk795866
 
Past, Present and Future of Generative AI
Past, Present and Future of Generative AIPast, Present and Future of Generative AI
Past, Present and Future of Generative AIabhishek36461
 
CCS355 Neural Network & Deep Learning UNIT III notes and Question bank .pdf
CCS355 Neural Network & Deep Learning UNIT III notes and Question bank .pdfCCS355 Neural Network & Deep Learning UNIT III notes and Question bank .pdf
CCS355 Neural Network & Deep Learning UNIT III notes and Question bank .pdfAsst.prof M.Gokilavani
 
What are the advantages and disadvantages of membrane structures.pptx
What are the advantages and disadvantages of membrane structures.pptxWhat are the advantages and disadvantages of membrane structures.pptx
What are the advantages and disadvantages of membrane structures.pptxwendy cai
 
Electronically Controlled suspensions system .pdf
Electronically Controlled suspensions system .pdfElectronically Controlled suspensions system .pdf
Electronically Controlled suspensions system .pdfme23b1001
 

Recently uploaded (20)

EduAI - E learning Platform integrated with AI
EduAI - E learning Platform integrated with AIEduAI - E learning Platform integrated with AI
EduAI - E learning Platform integrated with AI
 
Sachpazis Costas: Geotechnical Engineering: A student's Perspective Introduction
Sachpazis Costas: Geotechnical Engineering: A student's Perspective IntroductionSachpazis Costas: Geotechnical Engineering: A student's Perspective Introduction
Sachpazis Costas: Geotechnical Engineering: A student's Perspective Introduction
 
CCS355 Neural Network & Deep Learning Unit II Notes with Question bank .pdf
CCS355 Neural Network & Deep Learning Unit II Notes with Question bank .pdfCCS355 Neural Network & Deep Learning Unit II Notes with Question bank .pdf
CCS355 Neural Network & Deep Learning Unit II Notes with Question bank .pdf
 
Architect Hassan Khalil Portfolio for 2024
Architect Hassan Khalil Portfolio for 2024Architect Hassan Khalil Portfolio for 2024
Architect Hassan Khalil Portfolio for 2024
 
Software and Systems Engineering Standards: Verification and Validation of Sy...
Software and Systems Engineering Standards: Verification and Validation of Sy...Software and Systems Engineering Standards: Verification and Validation of Sy...
Software and Systems Engineering Standards: Verification and Validation of Sy...
 
Work Experience-Dalton Park.pptxfvvvvvvv
Work Experience-Dalton Park.pptxfvvvvvvvWork Experience-Dalton Park.pptxfvvvvvvv
Work Experience-Dalton Park.pptxfvvvvvvv
 
Call Us ≽ 8377877756 ≼ Call Girls In Shastri Nagar (Delhi)
Call Us ≽ 8377877756 ≼ Call Girls In Shastri Nagar (Delhi)Call Us ≽ 8377877756 ≼ Call Girls In Shastri Nagar (Delhi)
Call Us ≽ 8377877756 ≼ Call Girls In Shastri Nagar (Delhi)
 
Application of Residue Theorem to evaluate real integrations.pptx
Application of Residue Theorem to evaluate real integrations.pptxApplication of Residue Theorem to evaluate real integrations.pptx
Application of Residue Theorem to evaluate real integrations.pptx
 
UNIT III ANALOG ELECTRONICS (BASIC ELECTRONICS)
UNIT III ANALOG ELECTRONICS (BASIC ELECTRONICS)UNIT III ANALOG ELECTRONICS (BASIC ELECTRONICS)
UNIT III ANALOG ELECTRONICS (BASIC ELECTRONICS)
 
Gurgaon ✡️9711147426✨Call In girls Gurgaon Sector 51 escort service
Gurgaon ✡️9711147426✨Call In girls Gurgaon Sector 51 escort serviceGurgaon ✡️9711147426✨Call In girls Gurgaon Sector 51 escort service
Gurgaon ✡️9711147426✨Call In girls Gurgaon Sector 51 escort service
 
DATA ANALYTICS PPT definition usage example
DATA ANALYTICS PPT definition usage exampleDATA ANALYTICS PPT definition usage example
DATA ANALYTICS PPT definition usage example
 
young call girls in Green Park🔝 9953056974 🔝 escort Service
young call girls in Green Park🔝 9953056974 🔝 escort Serviceyoung call girls in Green Park🔝 9953056974 🔝 escort Service
young call girls in Green Park🔝 9953056974 🔝 escort Service
 
Introduction to Machine Learning Unit-3 for II MECH
Introduction to Machine Learning Unit-3 for II MECHIntroduction to Machine Learning Unit-3 for II MECH
Introduction to Machine Learning Unit-3 for II MECH
 
Introduction-To-Agricultural-Surveillance-Rover.pptx
Introduction-To-Agricultural-Surveillance-Rover.pptxIntroduction-To-Agricultural-Surveillance-Rover.pptx
Introduction-To-Agricultural-Surveillance-Rover.pptx
 
🔝9953056974🔝!!-YOUNG call girls in Rajendra Nagar Escort rvice Shot 2000 nigh...
🔝9953056974🔝!!-YOUNG call girls in Rajendra Nagar Escort rvice Shot 2000 nigh...🔝9953056974🔝!!-YOUNG call girls in Rajendra Nagar Escort rvice Shot 2000 nigh...
🔝9953056974🔝!!-YOUNG call girls in Rajendra Nagar Escort rvice Shot 2000 nigh...
 
Past, Present and Future of Generative AI
Past, Present and Future of Generative AIPast, Present and Future of Generative AI
Past, Present and Future of Generative AI
 
CCS355 Neural Network & Deep Learning UNIT III notes and Question bank .pdf
CCS355 Neural Network & Deep Learning UNIT III notes and Question bank .pdfCCS355 Neural Network & Deep Learning UNIT III notes and Question bank .pdf
CCS355 Neural Network & Deep Learning UNIT III notes and Question bank .pdf
 
What are the advantages and disadvantages of membrane structures.pptx
What are the advantages and disadvantages of membrane structures.pptxWhat are the advantages and disadvantages of membrane structures.pptx
What are the advantages and disadvantages of membrane structures.pptx
 
Electronically Controlled suspensions system .pdf
Electronically Controlled suspensions system .pdfElectronically Controlled suspensions system .pdf
Electronically Controlled suspensions system .pdf
 
Exploring_Network_Security_with_JA3_by_Rakesh Seal.pptx
Exploring_Network_Security_with_JA3_by_Rakesh Seal.pptxExploring_Network_Security_with_JA3_by_Rakesh Seal.pptx
Exploring_Network_Security_with_JA3_by_Rakesh Seal.pptx
 

Combinatorial Optimization

  • 1. COMBINATORIAL OPTIMIZATION Guided By: Prepared By Dhaval Jha Anjali Bidua Asst Professor 12bce155
  • 2. Overview What is Optimization? What is Combinatorial Optimization? Applications of Combinatorial Optimization Identification of different Combinatorial Problems Minimum Spanning Tree Overview Of Travelling Salesman Problem
  • 3. Optimization Optimization is technique of finding the optimal solution when more than one solutions are available. It is a live field of Mathematics. It can be better known by Integer Programming. Linear programming is a mathematical programming technique to optimize performance under a set of resource constraints.
  • 4. There are various methods for solving optimization problems by integer programming. Some of them are: Graphical Method Simplex Method
  • 5. Combinatorial Optimization Combinatorial optimization deals with algorithmic approaches to finding specified configurations or objects in finite structures such as directed and undirected graphs, hyper graphs, networks, matroids, partially ordered sets, and so forth.
  • 6. Major Combinatorial Optimization Problems Minimum spanning tree Travelling salesman problem Vehicle routing problem Weapon target assignment problem Knapsack problem
  • 7. Minimum Spanning Tree Given a connected, undirected graph, a spanning tree of that graph is a subgraph that is a tree and connects all the vertices together. A minimum spanning tree (MST) or minimum weight spanning tree is then a spanning tree with weight less than or equal to the weight of every other spanning tree.
  • 8. Travelling Salesman Problem Given a set of cities and the distance between each possible pair, the Travelling Salesman Problem is to find the best possible way of ‘visiting all the cities exactly once and returning to the starting point’.
  • 9. Vehicle Routing Problem The vehicle routing problem (VRP) is a combinatorial optimization and integer programming problem seeking to service a number of customers with a fleet of vehicles. VRP is an important problem in the fields of transportation, distribution and logistics. Often the context is that of delivering goods located at a central depot to customers who have placed orders for such goods. Implicit is the goal of minimizing the cost of distributing the goods. Many methods have been developed for searching for good solutions to the problem, but for all but the smallest problems, finding global minimum for the cost function is computationally complex.
  • 10. Weapon Target Assignment problem It consists of finding an optimal assignment of a set of weapons of various types to a set of targets in order to maximize the total expected damage done to the opponent
  • 11. Knapsack problem The problem often arises in resource allocation where there are financial constraints and is studied in fields such as combinatorics, computer science, complexity theory, cryptography and applied mathematics.
  • 12. Minimum Spanning Tree Definition: A tree is a connected undirected graph with no simple circuits. A spanning tree of a graph is just a subgraph that contains all the vertices and is a tree. Spanning Tree properties: On a connected graph G=(V, E), a spanning tree: • is a connected subgraph • acyclic • is a tree (|E| = |V| - 1) • contains all vertices of G (spanning)
  • 13. Minimum weight spanning tree (MST) On a weighted graph, A MST: connects all vertices through edges with least weights. has w(T) ≤ w(T’) for every other spanning tree T’ in G Adding one edge not in MST will create a cycle
  • 14. Finding Minimum Spanning Tree Algorithms : Kruskal’s Prim’s
  • 15. Compare Prim and Kruskal Complexity Kruskal: O(NlogN) comparison sort for edges Prim: O(NlogN) search the least weight edge for every vertice
  • 16. MST Conclusion Kruskal’s has better running times if the number of edges is low, while Prim’s has a better running time if both the number of edges and the number of nodes are low. So, of course, the best algorithm depends on the graph and if you want to bear the cost of complex data structures.
  • 17. Applications of MST Design of networks, including computer networks, telecommunications networks, transportation networks, water supply networks, and electrical grids Applications of MST in Sensor Networks A tree is formed from all sensor nodes to the sink so that the transmission power of all sensor nodes is minimum
  • 18. Travelling Salesman Problem In the theory of computational complexity, the decision version of the TSP where, given a length L, the task is to decide whether the graph has any tour shorter than L.
  • 19. TSP : An NP-HARD Problem! TSP is an NP-hard problem in combinatorial optimization studied in theoretical computer science. In many applications, additional constraints such as limited resources or time windows make the problem considerably harder. Removing the constraint of visiting each city exactly one time also doesn't reduce complexity of the problem.
  • 20. Applications of TSP Planning Logistics Manufacture of microchips Slightly modified, it appears as a sub-problem in many areas, such as DNA sequencing Integrated circuit Mechanical arm
  • 21. Solutions Exact solutions Heuristic algorithms Finding subproblems for the problem
  • 22. Exact Solution Consider city 1 as the starting and ending point. Generate all (n-1)! Permutations of cities. Calculate cost of every permutation and keep track of minimum cost permutation. Return the permutation with minimum cost. Time Complexity: O(n!)
  • 23. Heuristic Solution The greedy algorithm can be used to give a good but not optimal solution in a reasonably short amount of time. The greedy algorithm heuristic says to pick whatever is currently the best next step regardless of whether that precludes good steps later.
  • 24. Dynamic Programming Division of Problem into Sub-Problems Memoization
  • 26. An Example Let the given set of vertices be {1, 2, 3, 4,….n}. Let us consider 1 as starting and ending point of output. For every other vertex i (other than 1), we find the minimum cost path with 1 as the starting point, i as the ending point and all vertices appearing exactly once.
  • 27. Let the cost of this path be cost(i), the cost of corresponding Cycle would be cost(i) + dist(i, 1) where dist(i, 1) is the distance from i to 1. Finally, we return the minimum of all [cost(i) + dist(i, 1)] values. Let us define a term C(S, i) be the cost of the minimum cost path visiting each vertex in set S exactly once, starting at 1 and ending at i. We start with all subsets of size 2 and calculate C(S, i) for all subsets where S is the subset, then we calculate C(S, i) for all subsets S of size 3 and so on. Note that 1 must be present in every subset.
  • 28. If size of S is 2, then S must be {1, i}, C(S, i) = dist(1, i) Else if size of S is greater than 2 C(S, i) = min { C(S-{i}, j) + dis(j, i)} where j belongs to S, j != i and j != 1. For a set of size n, we consider n-2 subsets each of size n-1 such that all subsets don’t have nth in them. The total running time is O(n2*2n). The time complexity is much less than O(n!), but still exponential. Space required is also exponential. So this approach is also infeasible even for slightly higher number of vertices.
  • 29. TSP Using Dynamic Programming
  • 30.
  • 31. TSP Without Dynamic Programming
  • 32.
  • 33. Sparse Graphs For 2 cities
  • 36. Dense Graphs For 6 cities
  • 39. Conclusion • When we have a limited set of targets to meet, Tsp using Dynamic Programming is efficient. • But when we have a considerable more number of targets this concept is not much useful.
  • 43. References • Discrete Optimization". Elsevier. Jump up Jump up Cook, William. "Optimal TSP Tours". University of Waterloo. • Fredman, M. L.; Willard, D. E. (1994), "Trans-dichotomous algorithms for minimum spanning trees and shortest paths", Journal of Computer and System Sciences • Karger, David R.; Klein, Philip N.; Tarjan, Robert E. (1995), "A randomized linear-time algorithm to find minimum spanning trees", Journal of the Association for Computing Machinery • Applegate, D. L.; Bixby, R. M.; Chvátal, V.; Cook, W. J. (2006), The Traveling Salesman Problem • Bellman, R. (1962), "Dynamic Programming Treatment of the Travelling Salesman Problem", J. Assoc. Comput. Mach.