Python Programming for Biology: Bioinformatics and Beyond


The travelling salesman problem



Download 7,75 Mb.
Pdf ko'rish
bet419/514
Sana30.12.2021
Hajmi7,75 Mb.
#91066
1   ...   415   416   417   418   419   420   421   422   ...   514
Bog'liq
[Tim J. Stevens, Wayne Boucher] Python Programming

The travelling salesman problem

The  Python  examples  now  move  on  from  Monte  Carlo  optimisation  of  a  mathematical

function to combinatorics: the travelling salesman problem. Specifically, we will show an

example that can determine the best route between 15 of the largest cities in France (see

Figure 25.1

).  There  are  a  total  of  1,307,674,368,000  possible  ways  of  ordering  the  cities

into a route, although our solution will search only a fraction of these to come up with the

optimum answer. We don’t mean to suggest that Monte Carlo is the best way to solve this

particular  problem,  but  it  gives  a  clear  example  to  work  with.  Likewise,  we  could  also

choose to solve a different problem, but hopefully by keeping things simple you will see

how analogous situations that involve the ordering of data items can be solved.


Download 7,75 Mb.

Do'stlaringiz bilan baham:
1   ...   415   416   417   418   419   420   421   422   ...   514




Ma'lumotlar bazasi mualliflik huquqi bilan himoyalangan ©hozir.org 2024
ma'muriyatiga murojaat qiling

kiriting | ro'yxatdan o'tish
    Bosh sahifa
юртда тантана
Боғда битган
Бугун юртда
Эшитганлар жилманглар
Эшитмадим деманглар
битган бодомлар
Yangiariq tumani
qitish marakazi
Raqamli texnologiyalar
ilishida muhokamadan
tasdiqqa tavsiya
tavsiya etilgan
iqtisodiyot kafedrasi
steiermarkischen landesregierung
asarlaringizni yuboring
o'zingizning asarlaringizni
Iltimos faqat
faqat o'zingizning
steierm rkischen
landesregierung fachabteilung
rkischen landesregierung
hamshira loyihasi
loyihasi mavsum
faolyatining oqibatlari
asosiy adabiyotlar
fakulteti ahborot
ahborot havfsizligi
havfsizligi kafedrasi
fanidan bo’yicha
fakulteti iqtisodiyot
boshqaruv fakulteti
chiqarishda boshqaruv
ishlab chiqarishda
iqtisodiyot fakultet
multiservis tarmoqlari
fanidan asosiy
Uzbek fanidan
mavzulari potok
asosidagi multiservis
'aliyyil a'ziym
billahil 'aliyyil
illaa billahil
quvvata illaa
falah' deganida
Kompyuter savodxonligi
bo’yicha mustaqil
'alal falah'
Hayya 'alal
'alas soloh
Hayya 'alas
mavsum boyicha


yuklab olish