SlideShare a Scribd company logo
1 of 12
Operational
Research
Hungarian Algorithm
Hungarian method
 This method is a “Combinatorial Optimization
Algorithm” that solves assignment problems
 Developed and published by Harold Kuhn in
1955
 Basically, this method is for assigning jobs by
one-for-one matching to identify the lowest
cost solution
 This method is actually a special case of
Primal-Dual algorithm
2
Example
A building firm possesses four cranes each of which
has a distance(km) from four different construction
sites as shown in the table
Construction site #
1 2 3 4
Crane #
1 90 75 75 80
2 35 85 55 65
3 125 95 90 105
4 45 110 95 115
3
The objective is to place the cranes in such a way
that the overall distance required for the transfer is as
small as possible
Instructions
1. Subtract the smallest number in each row from every number in the row. This is
called a row reduction. Enter the results in a new table.
2. Subtract the smallest number in each column of the new table from every
number in the column. This is called a column reduction. Enter the results in
another table.
3. Test whether an optimum assignment can be made. You do this by
determining the minimum number of lines needed to cover all zeros. If the
number of lines equals the number of rows, an optimum assignment is possible. In
that case, go to step 6. Otherwise go on to step 4.
4. If the number of lines is less than the number of rows, modify the table in this
way:
a. Subtract the smallest uncovered number from every uncovered
number in the table.
b. Add the smallest uncovered number to the numbers at intersections
of covering lines.
c. Numbers crossed out but not at intersections of cross-out lines carry
over unchanged to the next table.
5. Repeat steps 3 and 4 until an optimal table is obtained.
6. Make the assignments. Begin with rows or columns with only one zero. Match
items that have zeros, using only one match for each row and each column.
Cross out both the row and the column after the match.
4
Solution
 The COST matrix is:
5
90 75 75 80
35 85 55 65
125 95 90 105
45 110 95 115
Step 01
Find the Row minimum for each row and subtract it
from all entries on that row
 Resultant matrix is:
15 0 0 5
0 50 20 30
35 5 0 15
0 65 50 70
90 75 75 80
35 85 55 65
125 95 90 105
45 110 95 115
Solution Cont….
6
 Resultant matrix is:
15 0 0 0
0 50 20 25
35 5 0 10
0 65 50 65
Step 02
From each row, find the Row minimum and subtract
it from all entries in that row
Step 03
Draw a minimum number of lines across rows and
columns so that all the “zeros” are covered.
Solution Cont.
7
Step 04 – Test for optimality
Number of lines = 3
Number of rows in the Cost matrix = 4
3 ≠ 4  An optimum assignment is not possible
Step 05
Find the Smallest entry which is not covered by the
lines  20
and subtract it from each entry not covered by the
lines.
We add the smallest entry to the crossed entries
15 0 0 0
0 50 20 25
35 5 0 10
0 65 50 65
Solution Cont.
8
Repeat Step 03
35 0 0 0
0 30 0 5
55 5 0 10
0 45 30 45
 Resultant matrix is:
Number of lines = 3
Number of rows in the Cost matrix = 4
3 ≠ 4  An optimum assignment is not possible
35 0 0 0
0 30 0 5
55 5 0 10
0 45 30 45
Solution Cont.
9
40 0 5 0
0 25 0 0
55 0 0 5
0 40 30 40
If the number of lines = 4
Number of rows in the Cost matrix = 4
4 = 4  An optimum assignment is possible.
‘0’ positions determine the possible combinations
Repeat Step 03
Solution Cont.
10
1 2 3 4
1 40 0 5 0
2 0 25 0 0
3 55 0 0 5
4 0 40 30 40
Option 01
Crane 1  Site 2
Crane 2  Site 4
Crane 3  Site 3
Crane 4  Site 1
Distance = 275
Construction Site #
Crane#
Select a matching by choosing a set of zeros so that each row
or column has only one selected
Option 02
Crane 1  Site 4
Crane 2  Site 3
Crane 3  Site 2
Crane 4  Site 1
Distance = 275
 Hungarian Method is for assigning jobs by
a one-for-one matching to identify the
lowest-cost solution where each job must
be assigned to only one machine.
11
Conclusion
12
C. S. Suriyakula
AS/07/08/077

More Related Content

What's hot

Modified distribution method (modi method)
Modified distribution method (modi method)Modified distribution method (modi method)
Modified distribution method (modi method)Dinesh Suthar
 
North west corner method
North west corner method North west corner method
North west corner method Akash Jadhav
 
Transportation Problem in Operational Research
Transportation Problem in Operational ResearchTransportation Problem in Operational Research
Transportation Problem in Operational ResearchNeha Sharma
 
Assignment Poblems
Assignment Poblems Assignment Poblems
Assignment Poblems vkabre
 
Stepping Stone Method
Stepping Stone MethodStepping Stone Method
Stepping Stone MethodHimanshi Gupta
 
Transportatopn problm
Transportatopn problmTransportatopn problm
Transportatopn problmAnshul Singh
 
LINEAR PROGRAMMING
LINEAR PROGRAMMINGLINEAR PROGRAMMING
LINEAR PROGRAMMINGrashi9
 
Unit.5. transportation and assignment problems
Unit.5. transportation and assignment problemsUnit.5. transportation and assignment problems
Unit.5. transportation and assignment problemsDagnaygebawGoshme
 
Transportation model
Transportation modelTransportation model
Transportation modelshakila haque
 
Assignment Problem
Assignment ProblemAssignment Problem
Assignment ProblemAmit Kumar
 
Transportation model and assignment model
Transportation model and assignment modelTransportation model and assignment model
Transportation model and assignment modelpriyanka yadav
 
Vogel's Approximation Method
Vogel's Approximation MethodVogel's Approximation Method
Vogel's Approximation MethodUsharaniRavikumar
 
Least Cost Method - operation research
Least Cost Method - operation researchLeast Cost Method - operation research
Least Cost Method - operation researchsajan gohel
 
Transportation Problem In Linear Programming
Transportation Problem In Linear ProgrammingTransportation Problem In Linear Programming
Transportation Problem In Linear ProgrammingMirza Tanzida
 
Transportation and Assignment
Transportation and AssignmentTransportation and Assignment
Transportation and AssignmentLokesh Payasi
 
Transportation problem ppt
Transportation problem pptTransportation problem ppt
Transportation problem pptDr T.Sivakami
 

What's hot (20)

Modified distribution method (modi method)
Modified distribution method (modi method)Modified distribution method (modi method)
Modified distribution method (modi method)
 
North west corner method
North west corner method North west corner method
North west corner method
 
Transportation Problem in Operational Research
Transportation Problem in Operational ResearchTransportation Problem in Operational Research
Transportation Problem in Operational Research
 
Assignment Poblems
Assignment Poblems Assignment Poblems
Assignment Poblems
 
Vam
VamVam
Vam
 
Stepping Stone Method
Stepping Stone MethodStepping Stone Method
Stepping Stone Method
 
Transportatopn problm
Transportatopn problmTransportatopn problm
Transportatopn problm
 
Assignment problem
Assignment problemAssignment problem
Assignment problem
 
Modi method
Modi methodModi method
Modi method
 
LINEAR PROGRAMMING
LINEAR PROGRAMMINGLINEAR PROGRAMMING
LINEAR PROGRAMMING
 
Unit.5. transportation and assignment problems
Unit.5. transportation and assignment problemsUnit.5. transportation and assignment problems
Unit.5. transportation and assignment problems
 
Transportation model
Transportation modelTransportation model
Transportation model
 
Assignment Problem
Assignment ProblemAssignment Problem
Assignment Problem
 
Transportation model and assignment model
Transportation model and assignment modelTransportation model and assignment model
Transportation model and assignment model
 
Vogel's Approximation Method
Vogel's Approximation MethodVogel's Approximation Method
Vogel's Approximation Method
 
Least Cost Method - operation research
Least Cost Method - operation researchLeast Cost Method - operation research
Least Cost Method - operation research
 
Vam ppt
Vam pptVam ppt
Vam ppt
 
Transportation Problem In Linear Programming
Transportation Problem In Linear ProgrammingTransportation Problem In Linear Programming
Transportation Problem In Linear Programming
 
Transportation and Assignment
Transportation and AssignmentTransportation and Assignment
Transportation and Assignment
 
Transportation problem ppt
Transportation problem pptTransportation problem ppt
Transportation problem ppt
 

Viewers also liked

Assgnment=hungarian method
Assgnment=hungarian methodAssgnment=hungarian method
Assgnment=hungarian methodJoseph Konnully
 
Assignment problem ppt
Assignment problem ppt Assignment problem ppt
Assignment problem ppt Babasab Patil
 
Kuhn munkres algorithm
Kuhn munkres algorithmKuhn munkres algorithm
Kuhn munkres algorithmAbdullah Nasser
 
Assignment problems
Assignment problemsAssignment problems
Assignment problemsRoshan Mammen
 
Assignment problem
Assignment problemAssignment problem
Assignment problemAbu Bashar
 
Quantitative Analysis For Decision Making
Quantitative Analysis For Decision MakingQuantitative Analysis For Decision Making
Quantitative Analysis For Decision Makingaminsand
 
Operational research on Assignment ppt
Operational research on Assignment pptOperational research on Assignment ppt
Operational research on Assignment pptNirali Solanki
 
Multiple Hypothesis Tracking Algorithm
Multiple Hypothesis Tracking AlgorithmMultiple Hypothesis Tracking Algorithm
Multiple Hypothesis Tracking Algorithmsersem1
 
Linear programming
Linear programmingLinear programming
Linear programmingKrantee More
 
Qm assignment problem slides
Qm assignment problem slidesQm assignment problem slides
Qm assignment problem slidesAmit Pai
 
Application of greedy method
Application  of  greedy methodApplication  of  greedy method
Application of greedy methodTech_MX
 
Solving travelling salesman problem using firefly algorithm
Solving travelling salesman problem using firefly algorithmSolving travelling salesman problem using firefly algorithm
Solving travelling salesman problem using firefly algorithmishmecse13
 
Dominance method
Dominance methodDominance method
Dominance methodpooja rani
 
Ap for b.tech. (mechanical) Assignment Problem
Ap for b.tech. (mechanical) Assignment Problem Ap for b.tech. (mechanical) Assignment Problem
Ap for b.tech. (mechanical) Assignment Problem Prashant Khandelwal
 
Multi Agent Systems presentation
Multi Agent Systems presentationMulti Agent Systems presentation
Multi Agent Systems presentationAditya Gupta
 
Management of interest rate risk
Management of interest rate riskManagement of interest rate risk
Management of interest rate riskspagi
 
1.2 numbers 0 30
1.2 numbers 0 301.2 numbers 0 30
1.2 numbers 0 30aperlick
 
Management of interest rate risk
Management of interest rate riskManagement of interest rate risk
Management of interest rate riskSonam Basia
 

Viewers also liked (20)

Assgnment=hungarian method
Assgnment=hungarian methodAssgnment=hungarian method
Assgnment=hungarian method
 
Assignment problem ppt
Assignment problem ppt Assignment problem ppt
Assignment problem ppt
 
Kuhn munkres algorithm
Kuhn munkres algorithmKuhn munkres algorithm
Kuhn munkres algorithm
 
Assignment problems
Assignment problemsAssignment problems
Assignment problems
 
Assignment problem
Assignment problemAssignment problem
Assignment problem
 
Quantitative Analysis For Decision Making
Quantitative Analysis For Decision MakingQuantitative Analysis For Decision Making
Quantitative Analysis For Decision Making
 
Assignment Problem
Assignment ProblemAssignment Problem
Assignment Problem
 
Operational research on Assignment ppt
Operational research on Assignment pptOperational research on Assignment ppt
Operational research on Assignment ppt
 
Multiple Hypothesis Tracking Algorithm
Multiple Hypothesis Tracking AlgorithmMultiple Hypothesis Tracking Algorithm
Multiple Hypothesis Tracking Algorithm
 
Linear programming
Linear programmingLinear programming
Linear programming
 
Qm assignment problem slides
Qm assignment problem slidesQm assignment problem slides
Qm assignment problem slides
 
Application of greedy method
Application  of  greedy methodApplication  of  greedy method
Application of greedy method
 
Game theory
Game theoryGame theory
Game theory
 
Solving travelling salesman problem using firefly algorithm
Solving travelling salesman problem using firefly algorithmSolving travelling salesman problem using firefly algorithm
Solving travelling salesman problem using firefly algorithm
 
Dominance method
Dominance methodDominance method
Dominance method
 
Ap for b.tech. (mechanical) Assignment Problem
Ap for b.tech. (mechanical) Assignment Problem Ap for b.tech. (mechanical) Assignment Problem
Ap for b.tech. (mechanical) Assignment Problem
 
Multi Agent Systems presentation
Multi Agent Systems presentationMulti Agent Systems presentation
Multi Agent Systems presentation
 
Management of interest rate risk
Management of interest rate riskManagement of interest rate risk
Management of interest rate risk
 
1.2 numbers 0 30
1.2 numbers 0 301.2 numbers 0 30
1.2 numbers 0 30
 
Management of interest rate risk
Management of interest rate riskManagement of interest rate risk
Management of interest rate risk
 

Similar to Hungarian algorithm

Chapter 1 Assignment Problems (DS) (1).pptx
Chapter 1 Assignment Problems (DS) (1).pptxChapter 1 Assignment Problems (DS) (1).pptx
Chapter 1 Assignment Problems (DS) (1).pptxPriyankaLunavat
 
Hungarian Assignment Problem
Hungarian Assignment ProblemHungarian Assignment Problem
Hungarian Assignment ProblemVivekSaurabh7
 
Quantitativeanalysisfordecisionmaking 13427543542352-phpapp02-120719222252-ph...
Quantitativeanalysisfordecisionmaking 13427543542352-phpapp02-120719222252-ph...Quantitativeanalysisfordecisionmaking 13427543542352-phpapp02-120719222252-ph...
Quantitativeanalysisfordecisionmaking 13427543542352-phpapp02-120719222252-ph...Firas Husseini
 
Asssignment problem
Asssignment problemAsssignment problem
Asssignment problemMamatha Upadhya
 
Assignment Problem
Assignment ProblemAssignment Problem
Assignment ProblemNakul Bhardwaj
 
qadm-ppt-150918102124-lva1-app6892.pdf
qadm-ppt-150918102124-lva1-app6892.pdfqadm-ppt-150918102124-lva1-app6892.pdf
qadm-ppt-150918102124-lva1-app6892.pdfHari31856
 
Decision Science.pdf
Decision Science.pdfDecision Science.pdf
Decision Science.pdfpandeyaman577
 
Assignment Chapter - Q & A Compilation by Niraj Thapa
Assignment Chapter  - Q & A Compilation by Niraj ThapaAssignment Chapter  - Q & A Compilation by Niraj Thapa
Assignment Chapter - Q & A Compilation by Niraj ThapaCA Niraj Thapa
 
VOGEL'S APPROXIMATION METHOD
VOGEL'S APPROXIMATION METHODVOGEL'S APPROXIMATION METHOD
VOGEL'S APPROXIMATION METHODSwethaShree13
 
Simplex part 3 of 4
Simplex part 3 of 4Simplex part 3 of 4
Simplex part 3 of 4Ed Dansereau
 
basics
basicsbasics
basicsSumin Kim
 
Basic math
Basic mathBasic math
Basic mathFathimaRifa
 
upload
uploadupload
uploadSumin Kim
 
just reference
just referencejust reference
just referenceSumin Kim
 
Computer paper 3 may june 2004 9691 cambridge General Certificate of educatio...
Computer paper 3 may june 2004 9691 cambridge General Certificate of educatio...Computer paper 3 may june 2004 9691 cambridge General Certificate of educatio...
Computer paper 3 may june 2004 9691 cambridge General Certificate of educatio...Alpro
 
Bcolz Groupby Discussion Document
Bcolz Groupby Discussion DocumentBcolz Groupby Discussion Document
Bcolz Groupby Discussion DocumentCarst Vaartjes
 
Assignment problem
Assignment problemAssignment problem
Assignment problemRafidahAli1
 
Algorithm for Hungarian Method of Assignment
Algorithm for Hungarian Method of AssignmentAlgorithm for Hungarian Method of Assignment
Algorithm for Hungarian Method of AssignmentRaja Adapa
 

Similar to Hungarian algorithm (20)

Chapter 1 Assignment Problems (DS) (1).pptx
Chapter 1 Assignment Problems (DS) (1).pptxChapter 1 Assignment Problems (DS) (1).pptx
Chapter 1 Assignment Problems (DS) (1).pptx
 
Hungarian Assignment Problem
Hungarian Assignment ProblemHungarian Assignment Problem
Hungarian Assignment Problem
 
Quantitativeanalysisfordecisionmaking 13427543542352-phpapp02-120719222252-ph...
Quantitativeanalysisfordecisionmaking 13427543542352-phpapp02-120719222252-ph...Quantitativeanalysisfordecisionmaking 13427543542352-phpapp02-120719222252-ph...
Quantitativeanalysisfordecisionmaking 13427543542352-phpapp02-120719222252-ph...
 
Asssignment problem
Asssignment problemAsssignment problem
Asssignment problem
 
Assignment Problem
Assignment ProblemAssignment Problem
Assignment Problem
 
qadm-ppt-150918102124-lva1-app6892.pdf
qadm-ppt-150918102124-lva1-app6892.pdfqadm-ppt-150918102124-lva1-app6892.pdf
qadm-ppt-150918102124-lva1-app6892.pdf
 
Decision Science.pdf
Decision Science.pdfDecision Science.pdf
Decision Science.pdf
 
Assignment Chapter - Q & A Compilation by Niraj Thapa
Assignment Chapter  - Q & A Compilation by Niraj ThapaAssignment Chapter  - Q & A Compilation by Niraj Thapa
Assignment Chapter - Q & A Compilation by Niraj Thapa
 
VOGEL'S APPROXIMATION METHOD
VOGEL'S APPROXIMATION METHODVOGEL'S APPROXIMATION METHOD
VOGEL'S APPROXIMATION METHOD
 
Simplex part 3 of 4
Simplex part 3 of 4Simplex part 3 of 4
Simplex part 3 of 4
 
basics
basicsbasics
basics
 
Basic math
Basic mathBasic math
Basic math
 
upload
uploadupload
upload
 
just reference
just referencejust reference
just reference
 
Computer paper 3 may june 2004 9691 cambridge General Certificate of educatio...
Computer paper 3 may june 2004 9691 cambridge General Certificate of educatio...Computer paper 3 may june 2004 9691 cambridge General Certificate of educatio...
Computer paper 3 may june 2004 9691 cambridge General Certificate of educatio...
 
Unit ii-3-am
Unit ii-3-amUnit ii-3-am
Unit ii-3-am
 
Bcolz Groupby Discussion Document
Bcolz Groupby Discussion DocumentBcolz Groupby Discussion Document
Bcolz Groupby Discussion Document
 
Assignment problem
Assignment problemAssignment problem
Assignment problem
 
Simplex algorithm
Simplex algorithmSimplex algorithm
Simplex algorithm
 
Algorithm for Hungarian Method of Assignment
Algorithm for Hungarian Method of AssignmentAlgorithm for Hungarian Method of Assignment
Algorithm for Hungarian Method of Assignment
 

Recently uploaded

Navigating Identity and Access Management in the Modern Enterprise
Navigating Identity and Access Management in the Modern EnterpriseNavigating Identity and Access Management in the Modern Enterprise
Navigating Identity and Access Management in the Modern EnterpriseWSO2
 
DEV meet-up UiPath Document Understanding May 7 2024 Amsterdam
DEV meet-up UiPath Document Understanding May 7 2024 AmsterdamDEV meet-up UiPath Document Understanding May 7 2024 Amsterdam
DEV meet-up UiPath Document Understanding May 7 2024 AmsterdamUiPathCommunity
 
MINDCTI Revenue Release Quarter One 2024
MINDCTI Revenue Release Quarter One 2024MINDCTI Revenue Release Quarter One 2024
MINDCTI Revenue Release Quarter One 2024MIND CTI
 
Stronger Together: Developing an Organizational Strategy for Accessible Desig...
Stronger Together: Developing an Organizational Strategy for Accessible Desig...Stronger Together: Developing an Organizational Strategy for Accessible Desig...
Stronger Together: Developing an Organizational Strategy for Accessible Desig...caitlingebhard1
 
CNIC Information System with Pakdata Cf In Pakistan
CNIC Information System with Pakdata Cf In PakistanCNIC Information System with Pakdata Cf In Pakistan
CNIC Information System with Pakdata Cf In Pakistandanishmna97
 
Corporate and higher education May webinar.pptx
Corporate and higher education May webinar.pptxCorporate and higher education May webinar.pptx
Corporate and higher education May webinar.pptxRustici Software
 
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers:  A Deep Dive into Serverless Spatial Data and FMECloud Frontiers:  A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FMESafe Software
 
Rising Above_ Dubai Floods and the Fortitude of Dubai International Airport.pdf
Rising Above_ Dubai Floods and the Fortitude of Dubai International Airport.pdfRising Above_ Dubai Floods and the Fortitude of Dubai International Airport.pdf
Rising Above_ Dubai Floods and the Fortitude of Dubai International Airport.pdfOrbitshub
 
Web Form Automation for Bonterra Impact Management (fka Social Solutions Apri...
Web Form Automation for Bonterra Impact Management (fka Social Solutions Apri...Web Form Automation for Bonterra Impact Management (fka Social Solutions Apri...
Web Form Automation for Bonterra Impact Management (fka Social Solutions Apri...Jeffrey Haguewood
 
Strategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
Strategize a Smooth Tenant-to-tenant Migration and Copilot TakeoffStrategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
Strategize a Smooth Tenant-to-tenant Migration and Copilot Takeoffsammart93
 
AI in Action: Real World Use Cases by Anitaraj
AI in Action: Real World Use Cases by AnitarajAI in Action: Real World Use Cases by Anitaraj
AI in Action: Real World Use Cases by AnitarajAnitaRaj43
 
Architecting Cloud Native Applications
Architecting Cloud Native ApplicationsArchitecting Cloud Native Applications
Architecting Cloud Native ApplicationsWSO2
 
WSO2's API Vision: Unifying Control, Empowering Developers
WSO2's API Vision: Unifying Control, Empowering DevelopersWSO2's API Vision: Unifying Control, Empowering Developers
WSO2's API Vision: Unifying Control, Empowering DevelopersWSO2
 
Elevate Developer Efficiency & build GenAI Application with Amazon Q​
Elevate Developer Efficiency & build GenAI Application with Amazon Q​Elevate Developer Efficiency & build GenAI Application with Amazon Q​
Elevate Developer Efficiency & build GenAI Application with Amazon Q​Bhuvaneswari Subramani
 
Understanding the FAA Part 107 License ..
Understanding the FAA Part 107 License ..Understanding the FAA Part 107 License ..
Understanding the FAA Part 107 License ..Christopher Logan Kennedy
 
Finding Java's Hidden Performance Traps @ DevoxxUK 2024
Finding Java's Hidden Performance Traps @ DevoxxUK 2024Finding Java's Hidden Performance Traps @ DevoxxUK 2024
Finding Java's Hidden Performance Traps @ DevoxxUK 2024Victor Rentea
 
Vector Search -An Introduction in Oracle Database 23ai.pptx
Vector Search -An Introduction in Oracle Database 23ai.pptxVector Search -An Introduction in Oracle Database 23ai.pptx
Vector Search -An Introduction in Oracle Database 23ai.pptxRemote DBA Services
 
Exploring Multimodal Embeddings with Milvus
Exploring Multimodal Embeddings with MilvusExploring Multimodal Embeddings with Milvus
Exploring Multimodal Embeddings with MilvusZilliz
 
WSO2 Micro Integrator for Enterprise Integration in a Decentralized, Microser...
WSO2 Micro Integrator for Enterprise Integration in a Decentralized, Microser...WSO2 Micro Integrator for Enterprise Integration in a Decentralized, Microser...
WSO2 Micro Integrator for Enterprise Integration in a Decentralized, Microser...WSO2
 
JohnPollard-hybrid-app-RailsConf2024.pptx
JohnPollard-hybrid-app-RailsConf2024.pptxJohnPollard-hybrid-app-RailsConf2024.pptx
JohnPollard-hybrid-app-RailsConf2024.pptxJohnPollard37
 

Recently uploaded (20)

Navigating Identity and Access Management in the Modern Enterprise
Navigating Identity and Access Management in the Modern EnterpriseNavigating Identity and Access Management in the Modern Enterprise
Navigating Identity and Access Management in the Modern Enterprise
 
DEV meet-up UiPath Document Understanding May 7 2024 Amsterdam
DEV meet-up UiPath Document Understanding May 7 2024 AmsterdamDEV meet-up UiPath Document Understanding May 7 2024 Amsterdam
DEV meet-up UiPath Document Understanding May 7 2024 Amsterdam
 
MINDCTI Revenue Release Quarter One 2024
MINDCTI Revenue Release Quarter One 2024MINDCTI Revenue Release Quarter One 2024
MINDCTI Revenue Release Quarter One 2024
 
Stronger Together: Developing an Organizational Strategy for Accessible Desig...
Stronger Together: Developing an Organizational Strategy for Accessible Desig...Stronger Together: Developing an Organizational Strategy for Accessible Desig...
Stronger Together: Developing an Organizational Strategy for Accessible Desig...
 
CNIC Information System with Pakdata Cf In Pakistan
CNIC Information System with Pakdata Cf In PakistanCNIC Information System with Pakdata Cf In Pakistan
CNIC Information System with Pakdata Cf In Pakistan
 
Corporate and higher education May webinar.pptx
Corporate and higher education May webinar.pptxCorporate and higher education May webinar.pptx
Corporate and higher education May webinar.pptx
 
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers:  A Deep Dive into Serverless Spatial Data and FMECloud Frontiers:  A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
 
Rising Above_ Dubai Floods and the Fortitude of Dubai International Airport.pdf
Rising Above_ Dubai Floods and the Fortitude of Dubai International Airport.pdfRising Above_ Dubai Floods and the Fortitude of Dubai International Airport.pdf
Rising Above_ Dubai Floods and the Fortitude of Dubai International Airport.pdf
 
Web Form Automation for Bonterra Impact Management (fka Social Solutions Apri...
Web Form Automation for Bonterra Impact Management (fka Social Solutions Apri...Web Form Automation for Bonterra Impact Management (fka Social Solutions Apri...
Web Form Automation for Bonterra Impact Management (fka Social Solutions Apri...
 
Strategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
Strategize a Smooth Tenant-to-tenant Migration and Copilot TakeoffStrategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
Strategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
 
AI in Action: Real World Use Cases by Anitaraj
AI in Action: Real World Use Cases by AnitarajAI in Action: Real World Use Cases by Anitaraj
AI in Action: Real World Use Cases by Anitaraj
 
Architecting Cloud Native Applications
Architecting Cloud Native ApplicationsArchitecting Cloud Native Applications
Architecting Cloud Native Applications
 
WSO2's API Vision: Unifying Control, Empowering Developers
WSO2's API Vision: Unifying Control, Empowering DevelopersWSO2's API Vision: Unifying Control, Empowering Developers
WSO2's API Vision: Unifying Control, Empowering Developers
 
Elevate Developer Efficiency & build GenAI Application with Amazon Q​
Elevate Developer Efficiency & build GenAI Application with Amazon Q​Elevate Developer Efficiency & build GenAI Application with Amazon Q​
Elevate Developer Efficiency & build GenAI Application with Amazon Q​
 
Understanding the FAA Part 107 License ..
Understanding the FAA Part 107 License ..Understanding the FAA Part 107 License ..
Understanding the FAA Part 107 License ..
 
Finding Java's Hidden Performance Traps @ DevoxxUK 2024
Finding Java's Hidden Performance Traps @ DevoxxUK 2024Finding Java's Hidden Performance Traps @ DevoxxUK 2024
Finding Java's Hidden Performance Traps @ DevoxxUK 2024
 
Vector Search -An Introduction in Oracle Database 23ai.pptx
Vector Search -An Introduction in Oracle Database 23ai.pptxVector Search -An Introduction in Oracle Database 23ai.pptx
Vector Search -An Introduction in Oracle Database 23ai.pptx
 
Exploring Multimodal Embeddings with Milvus
Exploring Multimodal Embeddings with MilvusExploring Multimodal Embeddings with Milvus
Exploring Multimodal Embeddings with Milvus
 
WSO2 Micro Integrator for Enterprise Integration in a Decentralized, Microser...
WSO2 Micro Integrator for Enterprise Integration in a Decentralized, Microser...WSO2 Micro Integrator for Enterprise Integration in a Decentralized, Microser...
WSO2 Micro Integrator for Enterprise Integration in a Decentralized, Microser...
 
JohnPollard-hybrid-app-RailsConf2024.pptx
JohnPollard-hybrid-app-RailsConf2024.pptxJohnPollard-hybrid-app-RailsConf2024.pptx
JohnPollard-hybrid-app-RailsConf2024.pptx
 

Hungarian algorithm

  • 2. Hungarian method  This method is a “Combinatorial Optimization Algorithm” that solves assignment problems  Developed and published by Harold Kuhn in 1955  Basically, this method is for assigning jobs by one-for-one matching to identify the lowest cost solution  This method is actually a special case of Primal-Dual algorithm 2
  • 3. Example A building firm possesses four cranes each of which has a distance(km) from four different construction sites as shown in the table Construction site # 1 2 3 4 Crane # 1 90 75 75 80 2 35 85 55 65 3 125 95 90 105 4 45 110 95 115 3 The objective is to place the cranes in such a way that the overall distance required for the transfer is as small as possible
  • 4. Instructions 1. Subtract the smallest number in each row from every number in the row. This is called a row reduction. Enter the results in a new table. 2. Subtract the smallest number in each column of the new table from every number in the column. This is called a column reduction. Enter the results in another table. 3. Test whether an optimum assignment can be made. You do this by determining the minimum number of lines needed to cover all zeros. If the number of lines equals the number of rows, an optimum assignment is possible. In that case, go to step 6. Otherwise go on to step 4. 4. If the number of lines is less than the number of rows, modify the table in this way: a. Subtract the smallest uncovered number from every uncovered number in the table. b. Add the smallest uncovered number to the numbers at intersections of covering lines. c. Numbers crossed out but not at intersections of cross-out lines carry over unchanged to the next table. 5. Repeat steps 3 and 4 until an optimal table is obtained. 6. Make the assignments. Begin with rows or columns with only one zero. Match items that have zeros, using only one match for each row and each column. Cross out both the row and the column after the match. 4
  • 5. Solution  The COST matrix is: 5 90 75 75 80 35 85 55 65 125 95 90 105 45 110 95 115 Step 01 Find the Row minimum for each row and subtract it from all entries on that row  Resultant matrix is: 15 0 0 5 0 50 20 30 35 5 0 15 0 65 50 70 90 75 75 80 35 85 55 65 125 95 90 105 45 110 95 115
  • 6. Solution Cont…. 6  Resultant matrix is: 15 0 0 0 0 50 20 25 35 5 0 10 0 65 50 65 Step 02 From each row, find the Row minimum and subtract it from all entries in that row Step 03 Draw a minimum number of lines across rows and columns so that all the “zeros” are covered.
  • 7. Solution Cont. 7 Step 04 – Test for optimality Number of lines = 3 Number of rows in the Cost matrix = 4 3 ≠ 4  An optimum assignment is not possible Step 05 Find the Smallest entry which is not covered by the lines  20 and subtract it from each entry not covered by the lines. We add the smallest entry to the crossed entries 15 0 0 0 0 50 20 25 35 5 0 10 0 65 50 65
  • 8. Solution Cont. 8 Repeat Step 03 35 0 0 0 0 30 0 5 55 5 0 10 0 45 30 45  Resultant matrix is: Number of lines = 3 Number of rows in the Cost matrix = 4 3 ≠ 4  An optimum assignment is not possible 35 0 0 0 0 30 0 5 55 5 0 10 0 45 30 45
  • 9. Solution Cont. 9 40 0 5 0 0 25 0 0 55 0 0 5 0 40 30 40 If the number of lines = 4 Number of rows in the Cost matrix = 4 4 = 4  An optimum assignment is possible. ‘0’ positions determine the possible combinations Repeat Step 03
  • 10. Solution Cont. 10 1 2 3 4 1 40 0 5 0 2 0 25 0 0 3 55 0 0 5 4 0 40 30 40 Option 01 Crane 1  Site 2 Crane 2  Site 4 Crane 3  Site 3 Crane 4  Site 1 Distance = 275 Construction Site # Crane# Select a matching by choosing a set of zeros so that each row or column has only one selected Option 02 Crane 1  Site 4 Crane 2  Site 3 Crane 3  Site 2 Crane 4  Site 1 Distance = 275
  • 11.  Hungarian Method is for assigning jobs by a one-for-one matching to identify the lowest-cost solution where each job must be assigned to only one machine. 11 Conclusion