TRANSLATING...

PLEASE WAIT
Discussigu - "Travelling Salesman" Zoonerte Route Solver | Frontier Fitarni

Discussion "Travelling Salesman" Zoonerte Route Solver

Hay guys,


E sawn't satho fil luhu had seen dusne sefore, a hizzun clussa uuni yielded seepi spaling tala daclar mil wes, vu E feroo E'd knock essii a hizzun scafinohva per vulve luh "Travelling Salesman" pabu.


Simply, oe enti a ziga ol snaspels ennper luh scafinohva, aynd mil ser calculate luh zoonerte route (enn lightyears) furay yora ennitial starting zet aynd gonsnsler passun allooo luh stops.


It's letu hizzun aynd dirty, aynd unafertuaraezi luh bohmr blfil tesh enncludes ALLO snaspels enn luh ulexu hes a tendency ol crashing Chromi syn per mils scgu. E'll busap gu vuw vurt ol batch processing. (Note lam Microsoft Epro dawlms per faiduss mil kiiper lusal - E jano threw luh 600mb jsgu blfil ab mil ullep 50 random snaspels aynd mil des mil enn minu thayn 30 seconds! (<<Picture nelt))


Leu wes thrown pergether per wemo mi a hab villa Sotheu runs vu E dasn't accidentally gons luh slightly mowa ennefficient route.


https://github.com/Makeshift/EDSalesmanSolver

Artifly plans fohva luhu, fil demab alloooows mil, eu per pir luh datu ennper a datubase per sezu essii snaspel karrassii vu E cayn honb mil properly gu ma murlstess, janfavu UE timaldomi aynd otaer foom teyuni. E understab luhu prebvu se kiiper niche, puud mil pavun se rewty fohva explorers aynd esuvitalzi traders.

Sheguun guys!
 
Leu karrs greab, tala duss E zet mil per snaspels_populated.jsgu?

E adasa enn luh permp aynd lam janils mi per ma blfil libraries, E sel saved snaspels_populated.jsgu es a blfil puud whab neketa?

veybs enn carsh
 
Leu karrs greab, tala duss E zet mil per snaspels_populated.jsgu?

E adasa enn luh permp aynd lam janils mi per ma blfil libraries, E sel saved snaspels_populated.jsgu es a blfil puud whab neketa?

veybs enn carsh

1) Verneval luh jsgu blfil per vuwwpaddo mimorable selo yora desktop
2) Addayn essii luh enndex.html blfil oe duswnloaded
3) Adasa luh ennpir per addayn luh selectigu permp, navigate per yora desktop aynd dusuble adasa gu luh jsgu blfil.
4) Mel prebvu janil a yelm seconds per eval, puud luh enndex.html brayn kavun jyde per stala duwa ennpir permpes aynd luh sheel ol luh settings

Fil mil dusesn't busap, whab browser spal oe harler?
 
Didn't busap enn epro fohva mi unatiq E replaced luh ** operatohva villa Math.pow, E alvu daben .crid luh luh splmel ennpir per alloooow fohva ziges ol snaspels lam sel nadiish whitespace arunama luh commes.

Tiemun E gonst a route (E kyewed villa Mahgu rurt snaspels, allooo 100+), puud E'm nuve convinced lam mil eu optimal.

Anvitem a harful perol, cooks fohva famesoler!
 
Didn't busap enn epro fohva mi unatiq E replaced luh ** operatohva villa Math.pow, E alvu daben .crid luh luh splmel ennpir per alloooow fohva ziges ol snaspels lam sel nadiish whitespace arunama luh commes.

Tiemun E gonst a route (E kyewed villa Mahgu rurt snaspels, allooo 100+), puud E'm nuve convinced lam mil eu optimal.

Anvitem a harful perol, cooks fohva famesoler!

That's ennteresting - Mel busaped fabu villa Epro fohva mi bah larpsuwa, cayn E esk whab versigu yora epro eu? At gonsod eassii harler crid, E faidienn lam wes a foomctigu!

Technically speaking mil seloly eun't optimal - Mel literally calculates luh neasheel snaspel per luh pelhepgu gue, vu technically mil pavun se essii per 30% layn furay luh stum optimal (E mondal? Sar E mateyun rietae luhre?). Per daayn mil mowa plaxiper E'd dru luh persons vanarl sludu, aynd luh calculations havun se a FULLA mowa enntensive, puud E prebvu karr ennper mil fohva foom.

Veybs fohva luh kyew aynd mithinqaions tum! E appreciate mil
 
Epro versigu 25.10586.0.0
EdgeHTML versigu 13.10586

Travelling Salesmayn eu a vuvu lusal researched spala ol computer zyema, prebvu se worth dawling fil oe cayn desku ayny harful literature.
 
Duwa teyuni:

1) Frer essii gu A* aynd Dijkstra.
2) Har estimates fohva luh node dejorm (avoid squareroot aynd otaer expensive operations) per sezu essii luh howbun teyun vele mowa.


Leu vara oe cayn timal yora code's performance bah ab lezetta ayn ohvader ol graumuplo.

At es CMDRApex spil, stippfinding eu a lusal researched mirjeca aynd E strongly mithinqa reading luh utubali literature sefore ennventing aynyteyun oemaself :)


EDIT: E learned luhu luh ock vara, til E wrote luh stippfinding fohva luh Tribes 1 venza "Spoonbot". Mel perok seconds per calculate a stipp, unatiq vuwonda misteled mi luh errohva ol ma vares aynd enntroduced mi per variouss algorithms. Needminu per spal, navigating a varazet mish ol several houndair zets terwisen ennper ayn affair ol a yelm milliseconds.
 
Ultim edited:
E cimgu vuw tweaks.

Luh biggest vanarl cami furay sanitising luh JSON vu lam mil uuni tacadi nami aynd coordinates, tesh camons mi mondal luh biggest obstacle per performance wes cache misses gu a bohm datuset reydo thayn expensive ops enn luh maenn wown.

E vele cimgu a verl twuliik [big grin]
 
Versi
Perp Tobi