Playing with ChatGPT
Over the past couple months, I have been using ChatGPT to provide me with insight on how to do things. One of which is how to do web scraping in Python. Then I had it provide me with some modifications to an Elo calculator for games where there is a score instead of just a win/loss/tie situation. But I wanted to see it solving something, not just providing information.
About a year ago, I wrote an article about solving an Assignment Problem using the Hungarian Method. I walked through the steps and showed how to get to the solution. Below are the images from the start and end of the problem. I left out the progress steps since that was a full article in itself.
Now, I was curious to see what ChatGPT would do. I started with giving it a prompt. The prompt was the basis of who could do which tasks from my original Assignment Method problem. I gave it the numbers and asked it to assign who would get which task. Beyond that, I didn't tell it how to do it.
领英推荐
From the prompt, it determined that it would treat this as an assignment problem and then chose on its own to use the Hungarian Method for solving this problem. It then created a tableau of the problem. And as you can see, it matched my original problem from the first image.
It spent some time, probably about 5-10 seconds to compute the result. It then provided the answer in the following format below. As you can see, the answer matches exactly what I had manually computed in the 2nd image above.
The kicker too was that not only did this one provide me with the answer, but it also provided me with code on how to do this problem in Python. I am not sure if it defaults to this or if it realizes that I have been doing a lot of Python-related work in my account on ChatGPT. But this was a nice touch.
I have to say this was a neat experiment for me. It is nice having another tool in your toolbox to help you with something or to help verify what you have is accurate. It will be interesting to see how else I can apply this.