Advertisement
j311yf1sh

travelling salesman

Sep 21st, 2015
113
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.60 KB | None | 0 0
  1. <Logon-wrk> hehe you should see my convertion from wowhead mapid -> Wow mapid
  2. <Logon-wrk> it's stupid
  3. <Logon-wrk> http://pastebin.com/fj0CKqik
  4. <Logon-wrk> fortunate for me! g_zones lists all wowhead maps and their ids as well as their name so atleast i got the list for free
  5. <j311yf1sh> g_zones? what is that?
  6. <Logon-wrk> ehh wowhead JavaScript variable
  7. <Logon-wrk> all info is in JS vars
  8. <Logon-wrk> thats what i use to rip wowhead
  9. <Logon-wrk> example, if you filter stuff in their item thingi all items (up to 1000) exists in the variable g_items
  10. <Logon-wrk> Have been thinking about doing a chrome extention that gives a itemlist during runtime
  11. <Logon-wrk> so you don't have to go to tradeskillmaster groupmaker
  12. <Logon-wrk> j311yf1sh: you should really read here https://en.wikipedia.org/wiki/Travelling_salesman_problem interessting i was talking about Constructive heuristics
  13. <Logon-wrk> will not Always yield the fastest, but it's fast enough
  14. <Logon-wrk> but < 10 Points you can bruteforce the shortest distance probably
  15. <j311yf1sh> mmmm
  16. <j311yf1sh> too much maths
  17. <j311yf1sh> was never my strong point
  18. <Logon-wrk> omg
  19. <Logon-wrk> so many elegant solutions here
  20. <Logon-wrk> the pheramone map
  21. <Logon-wrk> i Think nearest neighbor will work fine j311yf1sh don't get caught up on this
  22. <j311yf1sh> im a perfectionist
  23. * Gumdrops_ has quit (Quit: My Mac has gone to sleep. ZZZzzz…)
  24. <Logon-wrk> According to wikipedia they are 25% less efficient
  25. <Logon-wrk> In general
  26. <Logon-wrk> but our problem is so easy
  27. <j311yf1sh> i could write something to check closest point to you, then re-check when next point reached
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement