The hungarian algorithm for weighted assignments

  Рет қаралды 19,136

Joel Speranza Math

Joel Speranza Math

Күн бұрын

Пікірлер: 23
@megaresh4912
@megaresh4912 2 жыл бұрын
Thanks for the video man, this video explains the Hungarian method in great detail and really helped me with studying for my test.
@dominiquechrystical1497
@dominiquechrystical1497 4 жыл бұрын
Thank you sir. Your videos really helped me to do well on my exam today!
@JoelSperanzaMath
@JoelSperanzaMath 4 жыл бұрын
I'm really happy to hear that. I'd wish you luck for tomorrow, but it doesn't sound like you need it!
@dominiquechrystical1497
@dominiquechrystical1497 4 жыл бұрын
@@JoelSperanzaMath Haha thank you! I'm studying hard :)
@ndjshsjshsns
@ndjshsjshsns Ай бұрын
Thank you so much sir!! Your videos help me so much ❤️
@dramese
@dramese 3 жыл бұрын
Great explanations
@vindyakelum90
@vindyakelum90 Жыл бұрын
Excellent nicely explained ❤❤❤
@hanshaun1350
@hanshaun1350 Жыл бұрын
This is really interesting. My biggest problem is how could you code this in Python?
@cryptex3995
@cryptex3995 2 ай бұрын
pip install scipy import numpy as np from scipy.optimize import linear_sum_assignment # Example cost matrix (replace this with your own matrix) cost_matrix = np.array([[4, 1, 3], [2, 0, 5], [3, 2, 2]]) # Apply the Hungarian algorithm row_ind, col_ind = linear_sum_assignment(cost_matrix) # Get the optimal assignment and the total cost optimal_assignment = list(zip(row_ind, col_ind)) total_cost = cost_matrix[row_ind, col_ind].sum() print("Optimal assignment:", optimal_assignment) print("Total cost:", total_cost)
@elly9704
@elly9704 4 жыл бұрын
this is probably gonna be in the exam tomorrow ^_^ this helps!
@JoelSperanzaMath
@JoelSperanzaMath 4 жыл бұрын
I think you're probably right. Good luck!
@theCRGlife
@theCRGlife 4 жыл бұрын
Very Informative
@ihavecojones
@ihavecojones Жыл бұрын
It's because of people like Harold Kuhn that employees are considered just numbers in an excell spreadsheet
@speedracer1702
@speedracer1702 2 жыл бұрын
Great video!
@WaldoTheWombat
@WaldoTheWombat Жыл бұрын
Can we also solve it with a genetic algorithm (tournament + random mutations)
@Ahmad_Alhasanat
@Ahmad_Alhasanat 4 жыл бұрын
Is this kuhn-munkres algorithm? If I got zero at the last step after drew a bipartite graph, and that zero was weighted zero in the original matrix, does it count as a perfect match? for example: Matrix: [10 20 30 40] [ 5 0 17 12] [ 6 9 1 10] [ 8 14 3 15] After the first two steps: I got: 4 lines zero [0 10 20 21] [ 5 0 17 3] [ 5 9 0 0] [ 5 11 0 3] I'm lost here, what is the next step, and how could I find the perfect match? Anything would help. Thanks
@colinwilson9025
@colinwilson9025 4 жыл бұрын
great clip-used it in my class today
@serenamartens-mullaly2447
@serenamartens-mullaly2447 2 ай бұрын
very helpful
@saeedbakhshan6459
@saeedbakhshan6459 6 ай бұрын
Very useful!
3 жыл бұрын
Yep definitely just like the Hungarian language
@Vendettaaaa666
@Vendettaaaa666 3 жыл бұрын
But WHY? What's the WHY behind all these magical computations? What's the intuition? It's like teaching a bunch of goats to follow other goats without any reasoning! It's frustrating to learn fro lectures like this.
@JoelSperanzaMath
@JoelSperanzaMath 3 жыл бұрын
A fair critique. Some lectures are about the why, some lectures are about the how. If you are genuinely interested in the why, you can discover it yourself by trying this with a simple 2 x 2 assignment problem. When you do, make sure each person is better at the first job than the second job. It will then become very clear why we do the row calculation in step 1, and the column calculation in step 2. Once you've done that, try a 3x3 matrix, and ask yourself what conditions it needs to meet to require step 3 (subtracting lowest uncovered zero, from uncovered zero). It should then be self-evident what this step achieves.
@Vendettaaaa666
@Vendettaaaa666 3 жыл бұрын
@@JoelSperanzaMath I will definitely do and may be add some comments by the end of this week. Thanks for the tips Joel. Sorry about the rant I’m deeply passionate about teaching and could have critiqued in a better way while I’m learning things for free from you 🙏🏽
Flow Networks and Maximum flow
9:00
Joel Speranza Math
Рет қаралды 21 М.
Хасанның өзі эфирге шықты! “Қылмыстық топқа қатысым жоқ” дейді. Талғарда не болды? Халық сене ме?
09:25
Демократиялы Қазақстан / Демократический Казахстан
Рет қаралды 340 М.
Ouch.. 🤕⚽️
00:25
Celine Dept
Рет қаралды 15 МЛН
小蚂蚁会选到什么呢!#火影忍者 #佐助 #家庭
00:47
火影忍者一家
Рет қаралды 119 МЛН
怎么能插队呢!#火影忍者 #佐助 #家庭
00:12
火影忍者一家
Рет қаралды 39 МЛН
Maximum flow Minimum Cut Algorithm
14:02
Joel Speranza Math
Рет қаралды 41 М.
How to Solve an Assignment Problem Using the Hungarian Method
12:18
Shokoufeh Mirzaei
Рет қаралды 283 М.
The Hungarian Algorithm but WAY QUICKER! | VCE Further | Networks
12:06
Graphs and Networks: Hungarian Algorithm for Weighted Bipartite Assignment Problems
15:20
Australian Mathematics Curriculum Videos
Рет қаралды 12 М.
The Bubble Sort Curve
19:18
Lines That Connect
Рет қаралды 611 М.
One minus one plus one minus one - Numberphile
11:10
Numberphile
Рет қаралды 4,6 МЛН
Решение задачи о назначениях (Венгерский алгоритм)
21:39
UCF Professor Richard Quinn accuses class of cheating [Original]
15:00
SubZeroCobra
Рет қаралды 15 МЛН
Хасанның өзі эфирге шықты! “Қылмыстық топқа қатысым жоқ” дейді. Талғарда не болды? Халық сене ме?
09:25
Демократиялы Қазақстан / Демократический Казахстан
Рет қаралды 340 М.