54
Assignment Problem Step by Step illustration automatically generated by a C# application:)

Assignment Problem Step by Step illustration automatically generated by a C# application:)

  • View
    215

  • Download
    1

Embed Size (px)

Citation preview

Page 1: Assignment Problem Step by Step illustration automatically generated by a C# application:)

Assignment Problem

Step by Step illustration automatically generated by a C# application:)

Page 2: Assignment Problem Step by Step illustration automatically generated by a C# application:)

About the presentation

Name

Class

Institution

3/8/2008 12:00:00 AM

[email protected]

Page 3: Assignment Problem Step by Step illustration automatically generated by a C# application:)

Description of Assignment Problem!

Let C be an nxn matrix representing the costs of each of n workers to perform any of n jobs. The assignment problem is to assign jobs to workers so as to minimize the total cost. Since each worker can perform only one job and each job can be assigned to only one worker the assignments constitute an independent set of the matrix C.

Page 4: Assignment Problem Step by Step illustration automatically generated by a C# application:)

Step 1

Step 1 of six different steps

For each row of the matrix, find the smallest element and subtract it from every element in its row. Go to Step 2.

Page 5: Assignment Problem Step by Step illustration automatically generated by a C# application:)

Step 2

Step 2 of six different steps

Find a zero (Z) in the resulting matrix. If there is no starred zero in its row or column, star Z. Repeat for each element in the matrix. Go to Step 3.

Page 6: Assignment Problem Step by Step illustration automatically generated by a C# application:)

Step 3

Step 3 of six different steps

Cover each column containing a starred zero. If K columns are covered, the starred zeros describe a complete set of unique assignments. In this case, Go to DONE, otherwise, Go to Step 4.

Page 7: Assignment Problem Step by Step illustration automatically generated by a C# application:)

Step 4

Step 4 of six different steps

Find a noncovered zero and prime it. If there is no starred zero in the row containing this primed zero, Go to Step 5. Otherwise, cover this row and uncover the column containing the starred zero. Continue in this manner until there are no uncovered zeros left. Save the smallest uncovered value and Go to Step 6.

Page 8: Assignment Problem Step by Step illustration automatically generated by a C# application:)

Step 5

Step 5 of six different steps

Construct a series of alternating primed and starred zeros as follows. Let Z0 represent the uncovered primed zero found in Step 4. Let Z1 denote the starred zero in the column of Z0 (if any). Let Z2 denote the primed zero in the row of Z1 (there will always be one). Continue until the series terminates at a primed zero that has no starred zero in its column. Unstar each starred zero of the series, star each primed zero of the series, erase all primes and uncover every line in the matrix. Return to Step 3.

Page 9: Assignment Problem Step by Step illustration automatically generated by a C# application:)

Step 6

Step 6 of six different steps

Add the value found in Step 4 to every element of each covered row, and subtract it from every element of each uncovered column. Return to Step 4 without altering any stars, primes, or covered lines.

Page 10: Assignment Problem Step by Step illustration automatically generated by a C# application:)

Step 7

Step 7 of six different steps

Done Assignment pairs are indicated by the positions of the starred zeros in the cost matrix. If C(i,j) is a starred zero, then the element associated with row i is assigned to the element associated with column j.

Page 11: Assignment Problem Step by Step illustration automatically generated by a C# application:)

Step0

1 2 3

2 4 6

3 6 9

Page 12: Assignment Problem Step by Step illustration automatically generated by a C# application:)

Step1

1 2 3

2 4 6

3 6 9

Page 13: Assignment Problem Step by Step illustration automatically generated by a C# application:)

Step1

1 2 3

2 4 6

3 6 9

Page 14: Assignment Problem Step by Step illustration automatically generated by a C# application:)

Step1

0 1 2

2 4 6

3 6 9

Page 15: Assignment Problem Step by Step illustration automatically generated by a C# application:)

Step1

0 1 2

2 4 6

3 6 9

Page 16: Assignment Problem Step by Step illustration automatically generated by a C# application:)

Step1

0 1 2

0 2 4

3 6 9

Page 17: Assignment Problem Step by Step illustration automatically generated by a C# application:)

Step1

0 1 2

0 2 4

3 6 9

Page 18: Assignment Problem Step by Step illustration automatically generated by a C# application:)

Step1

0 1 2

0 2 4

0 3 6

Page 19: Assignment Problem Step by Step illustration automatically generated by a C# application:)

Step1

0 1 2

0 2 4

0 3 6

Page 20: Assignment Problem Step by Step illustration automatically generated by a C# application:)

Step2

0* 1 2

0 2 4

0 3 6

Page 21: Assignment Problem Step by Step illustration automatically generated by a C# application:)

Step2

0* 1 2

0 2 4

0 3 6

Page 22: Assignment Problem Step by Step illustration automatically generated by a C# application:)

Step3

0* 1 2

0 2 4

0 3 6

Page 23: Assignment Problem Step by Step illustration automatically generated by a C# application:)

Step4

0* 1 2

0 2 4

0 3 6

Page 24: Assignment Problem Step by Step illustration automatically generated by a C# application:)

Step6

0* 1^min 2

0 2 4

0 3 6

Page 25: Assignment Problem Step by Step illustration automatically generated by a C# application:)

Step6

0* 0 1

0 1 3

0 2 5

Page 26: Assignment Problem Step by Step illustration automatically generated by a C# application:)

Step4

0* 0' 1

0 1 3

0 2 5

Page 27: Assignment Problem Step by Step illustration automatically generated by a C# application:)

Step4

0* 0' 1

0 1 3

0 2 5

Page 28: Assignment Problem Step by Step illustration automatically generated by a C# application:)

Step4

0* 0' 1

0' 1 3

0 2 5

Page 29: Assignment Problem Step by Step illustration automatically generated by a C# application:)

Step4

0* 0' 1

0' 1 3

0 2 5

Page 30: Assignment Problem Step by Step illustration automatically generated by a C# application:)

Step5

0 0* 1

0* 1 3

0 2 5

Page 31: Assignment Problem Step by Step illustration automatically generated by a C# application:)

Step3

0 0* 1

0* 1 3

0 2 5

Page 32: Assignment Problem Step by Step illustration automatically generated by a C# application:)

Step3

0 0* 1

0* 1 3

0 2 5

Page 33: Assignment Problem Step by Step illustration automatically generated by a C# application:)

Step4

0 0* 1

0* 1 3

0 2 5

Page 34: Assignment Problem Step by Step illustration automatically generated by a C# application:)

Step6

0 0* 1^min

0* 1 3

0 2 5

Page 35: Assignment Problem Step by Step illustration automatically generated by a C# application:)

Step6

0 0* 0

0* 1 2

0 2 4

Page 36: Assignment Problem Step by Step illustration automatically generated by a C# application:)

Step4

0 0* 0'

0* 1 2

0 2 4

Page 37: Assignment Problem Step by Step illustration automatically generated by a C# application:)

Step4

0 0* 0'

0* 1 2

0 2 4

Page 38: Assignment Problem Step by Step illustration automatically generated by a C# application:)

Step4

0 0* 0'

0* 1 2

0 2 4

Page 39: Assignment Problem Step by Step illustration automatically generated by a C# application:)

Step6

0 0* 0'

0* 1^min 2

0 2 4

Page 40: Assignment Problem Step by Step illustration automatically generated by a C# application:)

Step6

1 0* 0'

0* 0 1

0 1 3

Page 41: Assignment Problem Step by Step illustration automatically generated by a C# application:)

Step4

1 0* 0'

0* 0' 1

0 1 3

Page 42: Assignment Problem Step by Step illustration automatically generated by a C# application:)

Step4

1 0* 0'

0* 0' 1

0 1 3

Page 43: Assignment Problem Step by Step illustration automatically generated by a C# application:)

Step4

1 0* 0'

0* 0' 1

0' 1 3

Page 44: Assignment Problem Step by Step illustration automatically generated by a C# application:)

Step4

1 0* 0'

0* 0' 1

0' 1 3

Page 45: Assignment Problem Step by Step illustration automatically generated by a C# application:)

Step5

1 0 0*

0 0* 1

0* 1 3

Page 46: Assignment Problem Step by Step illustration automatically generated by a C# application:)

Step3

1 0 0*

0 0* 1

0* 1 3

Page 47: Assignment Problem Step by Step illustration automatically generated by a C# application:)

Step3

1 0 0*

0 0* 1

0* 1 3

Page 48: Assignment Problem Step by Step illustration automatically generated by a C# application:)

Step3

1 0 0*

0 0* 1

0* 1 3

Page 49: Assignment Problem Step by Step illustration automatically generated by a C# application:)

Step7

1 0 0*

0 0* 1

0* 1 3

Page 50: Assignment Problem Step by Step illustration automatically generated by a C# application:)

We have found a solution!

The sum should be ...

Page 51: Assignment Problem Step by Step illustration automatically generated by a C# application:)

A trivial question!

Do you think this PowerPoint is something we should use in classroom? Yes or no?

Page 52: Assignment Problem Step by Step illustration automatically generated by a C# application:)

Not that a trivial question

How many hours do you think you need to prepare this PowerPoint? 10 hours? or can be even worse!

Page 53: Assignment Problem Step by Step illustration automatically generated by a C# application:)

Byebye, have a great trip!:)

Let us do the dirty work once and forever.....

Page 54: Assignment Problem Step by Step illustration automatically generated by a C# application:)