You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+33-7Lines changed: 33 additions & 7 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1490,7 +1490,7 @@ The **Assignment Problem** aims to allocate *n* tasks to *n* agents (machines, w
1490
1490
1491
1491
**Three tasks must be assigned to three machines. Each task can be performed on any machine, but with different costs. Assign each task to one machine, and each machine to one task, minimizing the total cost.**
1492
1492
1493
-
### Cost Matrix
1493
+
####Cost Matrix
1494
1494
1495
1495
|| Machine 1 | Machine 2 | Machine 3 |
1496
1496
|---------|-----------|-----------|-----------|
@@ -1506,15 +1506,15 @@ The **Assignment Problem** aims to allocate *n* tasks to *n* agents (machines, w
1506
1506
1507
1507
### [**Step 1](): Subtract Row Minimums**
1508
1508
1509
-
### Subtract the minimum value in each row from all elements in that row.
1509
+
####Subtract the minimum value in each row from all elements in that row.
1510
1510
1511
1511
- Row 1 min: 2 → [0, 2, 1]
1512
1512
- Row 2 min: 1 → [0, 2, 1]
1513
1513
- Row 3 min: 2 → [3, 0, 2]
1514
1514
1515
1515
<br>
1516
1516
1517
-
## [**Matrix after row subtraction:**]()
1517
+
####[**Matrix after row subtraction:**]()
1518
1518
1519
1519
|| M1 | M2 | M3 |
1520
1520
|---------|----|----|----|
@@ -1527,15 +1527,15 @@ The **Assignment Problem** aims to allocate *n* tasks to *n* agents (machines, w
1527
1527
1528
1528
### [**Step 2](): Subtract Column Minimums**
1529
1529
1530
-
### Subtract the minimum value in each column from all elements in that column]().
1530
+
####Subtract the minimum value in each column from all elements in that column]().
1531
1531
1532
1532
- Col 1 min: 0 → [0, 0, 3]
1533
1533
- Col 2 min: 0 → [2, 2, 0]
1534
1534
- Col 3 min: 1 → [0, 0, 1]
1535
1535
1536
1536
<br>
1537
1537
1538
-
### [**Matrix after column subtraction:**]()
1538
+
####[**Matrix after column subtraction:**]()
1539
1539
1540
1540
|| M1 | M2 | M3 |
1541
1541
|---------|----|----|----|
@@ -1545,7 +1545,7 @@ The **Assignment Problem** aims to allocate *n* tasks to *n* agents (machines, w
1545
1545
1546
1546
<br>
1547
1547
1548
-
## [**Step 3](): Assignment (Cover Zeros)**
1548
+
###[**Step 3](): Assignment (Cover Zeros)**
1549
1549
1550
1550
- Cover all zeros using the minimum number of lines (rows or columns).
1551
1551
- Assign tasks to machines where possible (one zero per row/column).
@@ -1556,7 +1556,33 @@ The **Assignment Problem** aims to allocate *n* tasks to *n* agents (machines, w
0 commit comments