SlideShare a Scribd company logo
2
Most read
3
Most read
7
Most read
By
A. Raja
Subject: Operations Research
Topic : Hungarian Assignment Algorithm
INTRODUCTION
The assignment problem is a particular case of
transportation problem in which the number of jobs
are equal to the number of facilities.
The objective is to maximise total profit of allocation
or to minimise the total cost.
Hungarian Assignment Algorithm
Various steps of the computational procedure for
obtaining an optimal solution may be summarised as
follows.
Step1:
If the number of rows are not equal to the number of
columns and vice versa , then a dummy row or
dummy column must be added with zero cost
elements.
Step2:
Find the smallest cost in each row of the cost
matrix . subtract this smallest cost element from
each element in that row . therefore , there will be
at least one zero in each row of this new matrix
which is called the first reduced cost matrix.
Step3:
In the reduced cost matrix , find the smallest
element in each column . subtract the smallest cost
element from each element in that column . as a
result , there would be at least one zero in each
row and column of the second reduced cost
matrix.
Step4:
Determine an optimum solution a follows:
1.Examine the rows successively until a row with exactly
one zero is found . box around the zero element as an
assigned cell and cross out all other zero in its column.
Proceed in this manner until all the rows have been
examined. If there are more than one zero in any row, then
do not consider that row and pass on the next row.
2.Repeat the procedure for the columns of the reduced
matrix. If there is no single zero in any row or column of
the reduced matrix, then arbitrarily choose a row or
column having the minimum number of zeros. Arbitrarily,
choose zero in the row or column and cross the remaining
zeros in that row or column.
Repeat (1) and (2) steps until all zeros are either assigned
or crossed out.
Step5:
An optimal assignment is found , if the number assigned
cells equals the number of rows and columns.
Step6:
Draw the number of horizontal or vertical lines through all
the zeros.
Step7:
If the minimum number of lines passing through
all the zeros is equal to the number of rows or
columns the optimum solution is attained by an
arbitrary allocation in the position of the zeros not
crossed in step3 otherwise go to the next step.
Step8:
Revise the cost matrix as follows:
1. Find the elements that covered by a line. Choose the
smallest of this elements and subtract this elements
from all the uncrossed elements and add the same at the
point of the intersection of the two lines.
2. Other elements crossed by the lines remain unchanged.
Step9:
Go to step4 and repeat the procedure till an optimum
solution is attained.
THANK YOU

More Related Content

PPTX
Hungarian Method
PDF
Asssignment problem
PPTX
Assignment problem maximum
PPT
Quick Sort
PPTX
Operational research on Assignment ppt
PPT
Queue data structure
PPTX
Stacks IN DATA STRUCTURES
PPT
Assignment Problem
Hungarian Method
Asssignment problem
Assignment problem maximum
Quick Sort
Operational research on Assignment ppt
Queue data structure
Stacks IN DATA STRUCTURES
Assignment Problem

What's hot (20)

PPTX
Recursion in Data Structure
PPTX
Assignment Problem
PDF
Assignment problems
PPSX
Data Structure (Queue)
DOC
Procedure Of Simplex Method
PPTX
Assignment method
PPTX
Sorting Algorithms
PPTX
Quick sort
PPTX
production function with 2 variable inputs return to scale
PDF
Stacks,queues,linked-list
PPT
3.8 quick sort
PPTX
Decision making under uncertaionity
DOCX
SCOPE, IMPORTANCE & USES OF STATISTICS
PPTX
Dsa – data structure and algorithms searching
PDF
North west corner method
PPTX
sampling technique
PPTX
Greedy algorithms
PPTX
Operations Research - The Two Phase Method
PPT
Simplex Method
PPTX
unbalanced transportation problem
Recursion in Data Structure
Assignment Problem
Assignment problems
Data Structure (Queue)
Procedure Of Simplex Method
Assignment method
Sorting Algorithms
Quick sort
production function with 2 variable inputs return to scale
Stacks,queues,linked-list
3.8 quick sort
Decision making under uncertaionity
SCOPE, IMPORTANCE & USES OF STATISTICS
Dsa – data structure and algorithms searching
North west corner method
sampling technique
Greedy algorithms
Operations Research - The Two Phase Method
Simplex Method
unbalanced transportation problem
Ad

Similar to Algorithm for Hungarian Method of Assignment (20)

PDF
Assignment Poblems
PPTX
Quantitative Math
PPTX
Assignment problem
PPTX
Assignment problem
PDF
AMA_Assignment Theory notes
PDF
Assignment Chapter - Q & A Compilation by Niraj Thapa
PDF
Solving ONE’S interval linear assignment problem
PDF
A0280115(1)
PDF
A Comparative Analysis Of Assignment Problem
PPTX
Muzammil irshad.pptxhdududududiufufufufu
PPT
Transportation model and assignment model
PDF
Design and analysis of algorithm final course
PDF
Design and analysis of algorithm final course
PDF
Assignment problem
PPTX
Chapter3.pptx
PDF
A study on solving Assignment Problem
PPTX
Brute force method
PPTX
Chapter 1 Assignment Problems (DS) (1).pptx
PPT
Statistics- mode-Grouping and analysis method
PPTX
Selection-sort-in-algorithm and complexity.pptx
Assignment Poblems
Quantitative Math
Assignment problem
Assignment problem
AMA_Assignment Theory notes
Assignment Chapter - Q & A Compilation by Niraj Thapa
Solving ONE’S interval linear assignment problem
A0280115(1)
A Comparative Analysis Of Assignment Problem
Muzammil irshad.pptxhdududududiufufufufu
Transportation model and assignment model
Design and analysis of algorithm final course
Design and analysis of algorithm final course
Assignment problem
Chapter3.pptx
A study on solving Assignment Problem
Brute force method
Chapter 1 Assignment Problems (DS) (1).pptx
Statistics- mode-Grouping and analysis method
Selection-sort-in-algorithm and complexity.pptx
Ad

More from Raja Adapa (20)

DOCX
Ambassador and its journey in India.docx
DOCX
To create anaconda environment user defined path other than default path.docx
DOCX
To create anaconda environment user defined path other than default path.docx
PPTX
SCM PPT.pptx
DOCX
Methods of Capital Budgeting
DOCX
Outline the Methods of Performance Appraisal
PPTX
Methods of Wage Fixation 3
PPTX
Methods of Wage Fixation - 2
PPTX
Methods of Wage Fixation
PPTX
Loading Capability Limits of Transmission Lines
PDF
Some of the Basic Important Concepts in MBA
PPTX
Important Formulas of BEP, Ratio Analysis, Capital Budgeting
PDF
Theoretical Framework for a Marketing Project
PPTX
Types of Market Structure
PPTX
Types of Scales and Scaling Techniques
PPTX
Market Location Tactics
PPTX
Porter's Five Force Model
PPTX
Outline of Types of Organizational Structures
DOCX
Model paper 6 (UGC NET Paper-1)
DOCX
Model paper 5 (UGC NET Paper-1)
Ambassador and its journey in India.docx
To create anaconda environment user defined path other than default path.docx
To create anaconda environment user defined path other than default path.docx
SCM PPT.pptx
Methods of Capital Budgeting
Outline the Methods of Performance Appraisal
Methods of Wage Fixation 3
Methods of Wage Fixation - 2
Methods of Wage Fixation
Loading Capability Limits of Transmission Lines
Some of the Basic Important Concepts in MBA
Important Formulas of BEP, Ratio Analysis, Capital Budgeting
Theoretical Framework for a Marketing Project
Types of Market Structure
Types of Scales and Scaling Techniques
Market Location Tactics
Porter's Five Force Model
Outline of Types of Organizational Structures
Model paper 6 (UGC NET Paper-1)
Model paper 5 (UGC NET Paper-1)

Recently uploaded (20)

PPTX
Cell Structure & Organelles in detailed.
PDF
Supply Chain Operations Speaking Notes -ICLT Program
PDF
Basic Mud Logging Guide for educational purpose
PPTX
Pharmacology of Heart Failure /Pharmacotherapy of CHF
PDF
Anesthesia in Laparoscopic Surgery in India
PDF
102 student loan defaulters named and shamed – Is someone you know on the list?
PDF
The Lost Whites of Pakistan by Jahanzaib Mughal.pdf
PPTX
PPH.pptx obstetrics and gynecology in nursing
PPTX
Institutional Correction lecture only . . .
PDF
Complications of Minimal Access Surgery at WLH
PPTX
Introduction_to_Human_Anatomy_and_Physiology_for_B.Pharm.pptx
PDF
Physiotherapy_for_Respiratory_and_Cardiac_Problems WEBBER.pdf
PPTX
school management -TNTEU- B.Ed., Semester II Unit 1.pptx
PDF
Saundersa Comprehensive Review for the NCLEX-RN Examination.pdf
PPTX
GDM (1) (1).pptx small presentation for students
PPTX
Lesson notes of climatology university.
PDF
Sports Quiz easy sports quiz sports quiz
PPTX
human mycosis Human fungal infections are called human mycosis..pptx
PDF
ANTIBIOTICS.pptx.pdf………………… xxxxxxxxxxxxx
PDF
Black Hat USA 2025 - Micro ICS Summit - ICS/OT Threat Landscape
Cell Structure & Organelles in detailed.
Supply Chain Operations Speaking Notes -ICLT Program
Basic Mud Logging Guide for educational purpose
Pharmacology of Heart Failure /Pharmacotherapy of CHF
Anesthesia in Laparoscopic Surgery in India
102 student loan defaulters named and shamed – Is someone you know on the list?
The Lost Whites of Pakistan by Jahanzaib Mughal.pdf
PPH.pptx obstetrics and gynecology in nursing
Institutional Correction lecture only . . .
Complications of Minimal Access Surgery at WLH
Introduction_to_Human_Anatomy_and_Physiology_for_B.Pharm.pptx
Physiotherapy_for_Respiratory_and_Cardiac_Problems WEBBER.pdf
school management -TNTEU- B.Ed., Semester II Unit 1.pptx
Saundersa Comprehensive Review for the NCLEX-RN Examination.pdf
GDM (1) (1).pptx small presentation for students
Lesson notes of climatology university.
Sports Quiz easy sports quiz sports quiz
human mycosis Human fungal infections are called human mycosis..pptx
ANTIBIOTICS.pptx.pdf………………… xxxxxxxxxxxxx
Black Hat USA 2025 - Micro ICS Summit - ICS/OT Threat Landscape

Algorithm for Hungarian Method of Assignment

  • 1. By A. Raja Subject: Operations Research Topic : Hungarian Assignment Algorithm
  • 2. INTRODUCTION The assignment problem is a particular case of transportation problem in which the number of jobs are equal to the number of facilities. The objective is to maximise total profit of allocation or to minimise the total cost.
  • 3. Hungarian Assignment Algorithm Various steps of the computational procedure for obtaining an optimal solution may be summarised as follows. Step1: If the number of rows are not equal to the number of columns and vice versa , then a dummy row or dummy column must be added with zero cost elements.
  • 4. Step2: Find the smallest cost in each row of the cost matrix . subtract this smallest cost element from each element in that row . therefore , there will be at least one zero in each row of this new matrix which is called the first reduced cost matrix.
  • 5. Step3: In the reduced cost matrix , find the smallest element in each column . subtract the smallest cost element from each element in that column . as a result , there would be at least one zero in each row and column of the second reduced cost matrix.
  • 6. Step4: Determine an optimum solution a follows: 1.Examine the rows successively until a row with exactly one zero is found . box around the zero element as an assigned cell and cross out all other zero in its column. Proceed in this manner until all the rows have been examined. If there are more than one zero in any row, then do not consider that row and pass on the next row. 2.Repeat the procedure for the columns of the reduced matrix. If there is no single zero in any row or column of the reduced matrix, then arbitrarily choose a row or column having the minimum number of zeros. Arbitrarily, choose zero in the row or column and cross the remaining zeros in that row or column. Repeat (1) and (2) steps until all zeros are either assigned or crossed out.
  • 7. Step5: An optimal assignment is found , if the number assigned cells equals the number of rows and columns. Step6: Draw the number of horizontal or vertical lines through all the zeros.
  • 8. Step7: If the minimum number of lines passing through all the zeros is equal to the number of rows or columns the optimum solution is attained by an arbitrary allocation in the position of the zeros not crossed in step3 otherwise go to the next step.
  • 9. Step8: Revise the cost matrix as follows: 1. Find the elements that covered by a line. Choose the smallest of this elements and subtract this elements from all the uncrossed elements and add the same at the point of the intersection of the two lines. 2. Other elements crossed by the lines remain unchanged. Step9: Go to step4 and repeat the procedure till an optimum solution is attained.