Тёмный
No video :(

Travelling Salesman Problem (TSP): Direct sampling vs simulated annealing in Python 

DocP's Channel
Подписаться 816
Просмотров 12 тыс.
50% 1

Demo of interactive simulation of two different algorithms solving the Travelling Salesman Problem. The code can be downloaded at my Github account (link in video).

Опубликовано:

 

5 авг 2017

Поделиться:

Ссылка:

Скачать:

Готовим ссылку...

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 30   
@corbettknoff5123
@corbettknoff5123 4 года назад
Edabit brought me here!
@docpschannel7173
@docpschannel7173 4 года назад
Nice ;-) I really like Edabit!
@alkispiskas3580
@alkispiskas3580 5 лет назад
Great work RandyWaterhouse (Peter)!
@docpschannel7173
@docpschannel7173 5 лет назад
Thank you, Alkis. I appreciate the feedback!
@huynhphanngockhang5733
@huynhphanngockhang5733 Год назад
very helful for me, thanks so much sir!
@docpschannel7173
@docpschannel7173 Год назад
You are very welcome, thanks for the nice comment!
@snackbob100
@snackbob100 4 года назад
brilliant
@docpschannel7173
@docpschannel7173 4 года назад
Thanks!
@AAzzKaa
@AAzzKaa 6 лет назад
Very interesting, amazing job, did you have any particular reason to write the code in Python version 2 instead of version 3?
@docpschannel7173
@docpschannel7173 6 лет назад
Thanks for your comment. I used Python 2 because I had PyGame installed only for Python 2, I had difficulty getting PyGame to run with Python 3.
@sruthirajan8430
@sruthirajan8430 3 года назад
Hey..i looked through your code. As a beginner who's just starting with this kinda stuff i had some doubts. The way u did simulated annealing...u mentioned about cutting sequence and swapping the parts in line 218. Isn't that a feature of genetic algorithm? Sorry if its a stupid doubt. I wasn't able to look through the course on coursera u mentioned.
@docpschannel7173
@docpschannel7173 3 года назад
Hi, I don't know much about genetic algorithms but I think you're right, you could classify the cut-and-swap logic as such. As for the Coursera course, I did this in about 2013 and haven't visited that platform for about 5 years now so I have no idea whether it's still available or not. At some point Coursera did switch to a paying-for-every-course model, I think, so it became obsolete for me because I did courses there just for fun.
@sruthirajan8430
@sruthirajan8430 3 года назад
Oh ok..thanks for the reply. I was trying to modify your code to see if i could compare genetic algorithm and simulated annealing instead of direct sampling and simulated annealing.
@docpschannel7173
@docpschannel7173 3 года назад
@@sruthirajan8430 I see. Good luck, sounds interesting!
@sruthirajan8430
@sruthirajan8430 3 года назад
One more doubt...when i try to press 'save' or 'plot' I'm getting error. Do u know what could be the reason?
@docpschannel7173
@docpschannel7173 3 года назад
@@sruthirajan8430 What's the error message?
Далее
CS50 final project: soccer predictions
2:13
Deep Learning Cars
3:19
Просмотров 10 млн
Discrete optimization: traveling salesman problem
10:26
Traveling Salesman Problem Visualization
2:23
Просмотров 475 тыс.
One Day Builds: Instagram Automation Using Python
20:17
The Subtour LP for the Traveling Salesman Problem
51:01