378 points by geeknews 16 hours ago | 124 comments
gku 8 hours ago
- Gaia DR2 (1,331,906,450 Stars): https://www.math.uwaterloo.ca/tsp/star/gaia2.html
> "The tour is at most 1.0038 times the length of a shortest-possible route."
gampleman 8 hours ago
paulluuk 8 hours ago
gampleman 7 hours ago
elymar 5 hours ago
consp 6 hours ago
manmal 5 hours ago
batuhandirek 8 hours ago
pverghese 5 hours ago
nurettin 6 hours ago
marcellus23 1 hour ago
Animats 9 hours ago
The classic TSP approach is:
1. Hook up all the nodes in some arbitrary path.
2. Cut the path in two places to create three pieces.
3. Rearrange those three pieces in the six possible ways and keep the shortest.
4. Iterate steps 2-3 until no improvement has been observed for a while.
This is not guaranteed to be optimal, but for most real-world problems either finds the optimal result or is very close.
amscanne 9 hours ago
So, the heuristic solver worked pretty darn well :) Although, I’m not sure how close it would have been the heuristic algorithm you are describing (I suspect that it is considerably more advanced for good reasons, randomly picking will take too long to converge).
n4r9 8 hours ago
[0] https://en.m.wikipedia.org/wiki/2-opt
[1] https://en.m.wikipedia.org/wiki/Lin%E2%80%93Kernighan_heuris...
vjerancrnjak 8 hours ago
LKH is a bit different, refers to Lin-Kernighan+Helsgaun -- http://webhotel4.ruc.dk/~keld/research/LKH/
neves 4 hours ago
Author's presentation about it
yobbo 8 hours ago
For each iteration:
apply some randomisation
starting at each place
cut the path in 2..n places
reconnect in the most optimal way
if the new tour is the new best, save
n is a small number like 4 maybe 5?vjerancrnjak 8 hours ago
reversing subarray from b to d is a 2-opt move.
3-opt (1 particular move):
a b c d e f
a e d c b f -- reversal from b to e
a e d b c f -- reversal from c to b
LK heuristic is a bit more involved, but focuses on continuing to reverse the subarray on the [b, ..., d] segment, with search and backtracking involved. (I think that's refered to as sequential k-opt moves, but I think it's already quite hard to know what exactly LK is, and LKH does much more)
By focusing on the subarray, assuming distance symmetry (length from b to e is same as length from e to b, but there are correct workarounds if this does not hold), you can evaluate the cost of the new route in constant time (but with bigger k there's more moves to evaluate https://oeis.org/A001171)
noduerme 14 hours ago
internetter 3 hours ago
notesinthefield 14 hours ago
bbno4 10 hours ago
mherkender 2 hours ago
[1] https://www.ibisworld.com/us/industry/ohio/bars-nightclubs/1...
notesinthefield 5 hours ago
not_a_bot_4sho 1 hour ago
lifthrasiir 13 hours ago
codemac 10 hours ago
[0]: https://rentechdigital.com/smartscraper/business-report-deta...
pjc50 6 hours ago
They are such an urban phenomenon. A largely empty rural state, with the legacy of prohibition, where you have to drive? That's going to have way fewer drinking locations. A culture of hanging out and drinking requires walkable urbanism. Many of the UK pubs pre-date the invention of the car; "peak pub" appears to have been the late 1800s with over 100,000.
I'm impressed that Korea has more than the UK, but this is definitely going to be a matter of size and the tiny Korean bars.
robertlagrant 5 hours ago
I don't think that's really true. In the UK, villages had pubs. Gradually some of the villages were joined together into larger cities, and the pubs remained. It wasn't planned as walkable urbanism.
tlb 5 hours ago
robertlagrant 5 hours ago
xmprt 9 hours ago
skrebbel 7 hours ago
chmod775 7 hours ago
https://codelibrary.amlegal.com/codes/plaincity/latest/plain...
Codes like these are the secret sauce of America's asphalt deserts, in which you'll find - by international standards - comparatively large restaurants and stores. Walkable cities tend to gravitate towards smaller equivalents, and more of them.
Akronymus 7 hours ago
Usually parking minimums are WAY too high in required parking spaces to make sense in most cases. Which leads to stuff like a arena having 5x the land area be parking than what is taken up by the arena itself. [1]
0: https://codelibrary.amlegal.com/codes/harrison/latest/harris... (this is for harrison, ohio, just happened to be the first result I found. it's under commercial -> "Tavern, bar, club, lodge, and dance hall.")
skrebbel 4 hours ago
How do people do this in practice? Just drink and drive and hope they don't crash / get fined? Or does everybody bring 1 friend who sips colas the whole night?
nonameiguess 24 minutes ago
vulcan01 4 hours ago
skrebbel 4 hours ago
zhivota 10 minutes ago
alexfoo 2 hours ago
skrebbel 2 hours ago
apocalyptic0n3 57 minutes ago
forgotoldacc 7 hours ago
Plus being able to walk or take a train home makes them far more accessible for people than needing to drive home.
throwaway290 9 hours ago
So in Ohio probably everything with class C and D license. How many is not public but probably many times more than 4k.
Many actual street level bona fide bars in Seoul (which has half of all the people of the entire country and the most bars by far) are tiny rooms that fit a few people each. But you always have a "bar street" with 50 of those next to each other.
saalweachter 3 hours ago
South Korea apparently ranks #97 on alcohol deaths, so it's apparently not a problematic number of bars, by global standards.
gniv 4 hours ago
https://www.math.uwaterloo.ca/tsp/korea/data/korea81998.xy.t...
BrtByte 2 hours ago