• Log InLog In
  • Register
Liquid`
Team Liquid Liquipedia
EDT 06:31
CET 11:31
KST 19:31
  • Home
  • Forum
  • Calendar
  • Streams
  • Liquipedia
  • Features
  • Store
  • EPT
  • TL+
  • StarCraft 2
  • Brood War
  • Smash
  • Heroes
  • Counter-Strike
  • Overwatch
  • Liquibet
  • Fantasy StarCraft
  • TLPD
  • StarCraft 2
  • Brood War
  • Blogs
Forum Sidebar
Events/Features
News
Featured News
[ASL21] Ro24 Preview Pt1: New Chaos0Team Liquid Map Contest #22 - Presented by Monster Energy7ByuL: The Forgotten Master of ZvT30Behind the Blue - Team Liquid History Book19Clem wins HomeStory Cup 289
Community News
Weekly Cups (March 16-22): herO doubles, Cure surprises3Blizzard Classic Cup @ BlizzCon 2026 - $100k prize pool42Weekly Cups (March 9-15): herO, Clem, ByuN win42026 KungFu Cup Announcement6BGE Stara Zagora 2026 cancelled12
StarCraft 2
General
Explore the Palmistry Certificate Course at Bivs Weekly Cups (March 16-22): herO doubles, Cure surprises Weekly Cups (August 25-31): Clem's Last Straw? Team Liquid Map Contest #22 - Presented by Monster Energy What mix of new & old maps do you want in the next ladder pool? (SC2)
Tourneys
Sparkling Tuna Cup - Weekly Open Tournament World University TeamLeague (500$+) | Signups Open RSL Season 4 announced for March-April WardiTV Team League Season 10 KSL Week 87
Strategy
Custom Maps
Publishing has been re-enabled! [Feb 24th 2026]
External Content
The PondCast: SC2 News & Results Mutation # 518 Radiation Zone Mutation # 517 Distant Threat Mutation # 516 Specter of Death
Brood War
General
ASL21 General Discussion Soulkey's decision to leave C9 BGH Auto Balance -> http://bghmmr.eu/ JaeDong's form before ASL [ASL21] Ro24 Preview Pt1: New Chaos
Tourneys
[ASL21] Ro24 Group B [ASL21] Ro24 Group A ASL Season 21 LIVESTREAM with English Commentary [Megathread] Daily Proleagues
Strategy
Fighting Spirit mining rates Simple Questions, Simple Answers Soma's 9 hatch build from ASL Game 2
Other Games
General Games
General RTS Discussion Thread Stormgate/Frost Giant Megathread Nintendo Switch Thread Path of Exile Dawn of War IV
Dota 2
Official 'what is Dota anymore' discussion The Story of Wings Gaming
League of Legends
G2 just beat GenG in First stand
Heroes of the Storm
Simple Questions, Simple Answers Heroes of the Storm 2.0
Hearthstone
Deck construction bug Heroes of StarCraft mini-set
TL Mafia
TL Mafia Community Thread Five o'clock TL Mafia Mafia Game Mode Feedback/Ideas Vanilla Mini Mafia
Community
General
US Politics Mega-thread European Politico-economics QA Mega-thread Things Aren’t Peaceful in Palestine YouTube Thread Canadian Politics Mega-thread
Fan Clubs
The IdrA Fan Club
Media & Entertainment
[Req][Books] Good Fantasy/SciFi books Movie Discussion! [Manga] One Piece
Sports
2024 - 2026 Football Thread Cricket [SPORT] Formula 1 Discussion Tokyo Olympics 2021 Thread General nutrition recommendations
World Cup 2022
Tech Support
Laptop capable of using Photoshop Lightroom?
TL Community
The Automated Ban List
Blogs
Funny Nicknames
LUCKY_NOOB
Money Laundering In Video Ga…
TrAiDoS
Iranian anarchists: organize…
XenOsky
FS++
Kraekkling
Shocked by a laser…
Spydermine0240
Unintentional protectionism…
Uldridge
ASL S21 English Commentary…
namkraft
Customize Sidebar...

Website Feedback

Closed Threads



Active: 2099 users

The Big Programming Thread - Page 965

Forum Index > General Forum
Post a Reply
Prev 1 963 964 965 966 967 1032 Next
Thread Rules
1. This is not a "do my homework for me" thread. If you have specific questions, ask, but don't post an assignment or homework problem and expect an exact solution.
2. No recruiting for your cockamamie projects (you won't replace facebook with 3 dudes you found on the internet and $20)
3. If you can't articulate why a language is bad, don't start slinging shit about it. Just remember that nothing is worse than making CSS IE6 compatible.
4. Use [code] tags to format code blocks.
beg
Profile Blog Joined May 2010
991 Posts
Last Edited: 2018-06-06 13:24:59
June 06 2018 13:21 GMT
#19281
On June 06 2018 10:43 travis wrote:
cool stuff, thanks

new question, for the few of these that might know about this for some reason.

shortest paths algorithms seem to see a lot of research. particularly, all pairs shortest paths. I can find almost no research on all pairs *all* shortest paths, however. Is there any demand for such an algorithm? I don't see it being useful outside of unweighted graphs or specific types of weighted graphs... but I still see it being useful. I am surprised I could only find one paper on it. I have a couple algorithms I have made that do a pretty good job of finding this, but I am not sure anyone would even care. I've also made a fast all pairs shortest paths lengths algorithm.

I am familiar with say, all the algorithms referenced in wikipedia shortest paths article. But, I do not know any algorithms specialized to find shortest path lengths - or if there actually are any that are distinctly different from the ones that find paths.


another thing I have been working on is a dynamic shortest paths data structure, for updating all pairs shortest paths on edge additions or removals, instead of rerunning from scratch.

What's the difference between "all pairs shortest paths" and "all pairs *all* shortest paths"?

Floyd-Warshall gives the shortest paths and their lengths between all vertices in a graph. Maybe I'm not understanding your question.

(I realize you're probably well aware of this.)
Deleted User 3420
Profile Blog Joined May 2003
24492 Posts
June 06 2018 13:52 GMT
#19282
for floyd warshall, it can easily be implemented to return all shortest paths, and it's strong for dense graphs. but it is pretty awful for sparse graphs.

djikstra's can be modified to return all shortest paths, but it becomes slower

but my question is about application of these algorithms in the real world. I know for example, GPS algorithms use shortest paths. but do they care about being able to find all of the shortest paths from A to B, or just one?
emperorchampion
Profile Blog Joined December 2008
Canada9496 Posts
Last Edited: 2018-06-06 14:49:15
June 06 2018 14:47 GMT
#19283
On June 06 2018 22:52 travis wrote:
for floyd warshall, it can easily be implemented to return all shortest paths, and it's strong for dense graphs. but it is pretty awful for sparse graphs.

djikstra's can be modified to return all shortest paths, but it becomes slower

but my question is about application of these algorithms in the real world. I know for example, GPS algorithms use shortest paths. but do they care about being able to find all of the shortest paths from A to B, or just one?


Don't have a background in comp sci, but how can you have more than 1 shortest path?

edit: I suppose if you have paths of equal length, but what would be the application?
TRUEESPORTS || your days as a respected member of team liquid are over
Deleted User 3420
Profile Blog Joined May 2003
24492 Posts
June 06 2018 15:42 GMT
#19284
yeah, paths of equal length. in graphs with like, float weights or big weights with huge variance, it probably won't happen. but for graphs with simple weights it happens often, and most unweighted graphs have multiple shortest paths (sometimes an exponential amount of them).

I am not sure about the application! That's why I am asking .
I suppose it could be useful for routing algorithms to find alternate shortest paths in case a user doesn't like the current suggestion. I also think it has applications in other algorithms that are trying to solve more complicated problems.
Neshapotamus
Profile Blog Joined May 2006
United States163 Posts
June 07 2018 02:33 GMT
#19285
On June 07 2018 00:42 travis wrote:
yeah, paths of equal length. in graphs with like, float weights or big weights with huge variance, it probably won't happen. but for graphs with simple weights it happens often, and most unweighted graphs have multiple shortest paths (sometimes an exponential amount of them).

I am not sure about the application! That's why I am asking .
I suppose it could be useful for routing algorithms to find alternate shortest paths in case a user doesn't like the current suggestion. I also think it has applications in other algorithms that are trying to solve more complicated problems.


It seems like having multiple paths from point A to B depends on what successors you are returning for each vertex. This is an implementation choice. You can return successors using any criteria you see fit. This would change the way you would traverse the graph.

It also sounds like your exit criteria for graph search is different than normal exit criteria for graph search. The normal goal criteria are to exit when a path is found from source to sink vertices. Your exit criteria seem like exit when all paths have been found from point A to B.

Searching has different optimization parameters and the one you cared for is finding a path. You can also be timed constrained or memory constrained, which is what happens in the real world. Not so much that you need all paths. You might have to use other methods such as beam search to get an optimal answer.

This tutorial has different methods to search along a graph: https://ocw.mit.edu/courses/electrical-engineering-and-computer-science/6-034-artificial-intelligence-fall-2010/tutorials/MIT6_034F10_tutor01.pdf

You might find it useful to implement these other methods.
Acrofales
Profile Joined August 2010
Spain18241 Posts
Last Edited: 2018-06-07 04:16:57
June 07 2018 04:16 GMT
#19286
On June 07 2018 00:42 travis wrote:
yeah, paths of equal length. in graphs with like, float weights or big weights with huge variance, it probably won't happen. but for graphs with simple weights it happens often, and most unweighted graphs have multiple shortest paths (sometimes an exponential amount of them).

I am not sure about the application! That's why I am asking .
I suppose it could be useful for routing algorithms to find alternate shortest paths in case a user doesn't like the current suggestion. I also think it has applications in other algorithms that are trying to solve more complicated problems.

Well, one real-world example is the routefinder apps (Google Maps, Waze) that don't give you just 1 route, but one "best" (usually the shortest path in time), but a selection of N (usually 3) routes that are sufficiently different to give you a feeling of choice. However, these are usually just the single shortest path according to some other criterium (shortest distance, cheapest, safest, most scenic, etc.).

Moreover, I suspect for mass applications like Google Maps, TomTom or Waze, they don't compute routes on the fly at all, and instead store trajectories in a table, and have a clever way of matching your route to a trajectory, and then personalize it (Waze, furthermore, appears to add random exploration from time to time). These trajectories must be updated with accurate traffic information, so maybe that is a possible application for finding *all* shortest paths between *all* nodes.

A more classic one is to compute routing tables for network traffic. However these are generally treated as more static. I don't know what the big movers and shakers in routing are doing, but I remember back when I learned about it, they routed most stuff statically, and dynamic routing was used as a fallback. Maybe things changed (are changing? will change?) with IPv6, but I really don't know.
Manit0u
Profile Blog Joined August 2004
Poland17700 Posts
June 07 2018 13:47 GMT
#19287
[image loading]

Dem news...
Time is precious. Waste it wisely.
Excludos
Profile Blog Joined April 2010
Norway8243 Posts
June 07 2018 14:04 GMT
#19288
On June 07 2018 22:47 Manit0u wrote:
[image loading]

Dem news...


Amazingly enough all 3 of those are wrong in some aspect or another. I guess the first one is ok as an eli5, but the last two are just plain misleading.
spinesheath
Profile Blog Joined June 2009
Germany8679 Posts
June 07 2018 17:33 GMT
#19289
On June 07 2018 23:04 Excludos wrote:
Show nested quote +
On June 07 2018 22:47 Manit0u wrote:
[image loading]

Dem news...


Amazingly enough all 3 of those are wrong in some aspect or another. I guess the first one is ok as an eli5, but the last two are just plain misleading.

Are you sure the first one is wrong? You might be thinking of a "repository", but this here is a "reposotory"
If you have a good reason to disagree with the above, please tell me. Thank you.
Excludos
Profile Blog Joined April 2010
Norway8243 Posts
June 07 2018 17:44 GMT
#19290
On June 08 2018 02:33 spinesheath wrote:
Show nested quote +
On June 07 2018 23:04 Excludos wrote:
On June 07 2018 22:47 Manit0u wrote:
[image loading]

Dem news...


Amazingly enough all 3 of those are wrong in some aspect or another. I guess the first one is ok as an eli5, but the last two are just plain misleading.

Are you sure the first one is wrong? You might be thinking of a "repository", but this here is a "reposotory"


Omg I didn't even catch that *facepalm*
bo1b
Profile Blog Joined August 2012
Australia12814 Posts
June 07 2018 23:22 GMT
#19291
That is a great picture.
Manit0u
Profile Blog Joined August 2004
Poland17700 Posts
June 08 2018 14:40 GMT
#19292
Related:

[image loading]
Time is precious. Waste it wisely.
Manit0u
Profile Blog Joined August 2004
Poland17700 Posts
June 11 2018 13:45 GMT
#19293
So, next week I'll be in Berlin for 5 days. If any of you work/live there and would like to meet for a beer or something just PM me

I've never been to Berlin before and I hope that my company will book me a hotel in some reasonable location.
Time is precious. Waste it wisely.
sabas123
Profile Blog Joined December 2010
Netherlands3122 Posts
June 11 2018 18:24 GMT
#19294
On June 08 2018 23:40 Manit0u wrote:
Related:

[image loading]

Wait, this must be a fake right?
The harder it becomes, the more you should focus on the basics.
Manit0u
Profile Blog Joined August 2004
Poland17700 Posts
Last Edited: 2018-06-11 19:06:57
June 11 2018 19:00 GMT
#19295
On June 12 2018 03:24 sabas123 wrote:
Show nested quote +
On June 08 2018 23:40 Manit0u wrote:
Related:

[image loading]

Wait, this must be a fake right?


Of course it's fake. It's part of all the memes that came out after GitHub was supposedly being sold to Microsoft.

They're really great.

[image loading]
Time is precious. Waste it wisely.
Deleted User 3420
Profile Blog Joined May 2003
24492 Posts
June 11 2018 20:12 GMT
#19296
lmfao, ugh so true

windows is soooo ridiculous
a while back I signed up to the windows update program where you get the latest versions of windows 10 ahead of time (i forget what it is called)

I did it because it includes a fully functional ubuntu terminal which is really awesome, though you have to do updates constantly

anyways I can't even tell you how many times I have had a program running overnight (like searching for a TSP solution or something) that was ruined by my computer restarting to install an update. And that's despite the fact that I actually do stay on top of the update scheduling...
ShoCkeyy
Profile Blog Joined July 2008
7815 Posts
June 11 2018 21:09 GMT
#19297
I've had Windows restart for updates in the middle of comp matches. I understand your pain. This GitHub purchase is definitely not something I'm happy about. I've already cancelled my payments and moved to GitLab which actually is really really good.
Life?
Excludos
Profile Blog Joined April 2010
Norway8243 Posts
Last Edited: 2018-06-11 21:33:33
June 11 2018 21:32 GMT
#19298
On June 12 2018 06:09 ShoCkeyy wrote:
I've had Windows restart for updates in the middle of comp matches. I understand your pain. This GitHub purchase is definitely not something I'm happy about. I've already cancelled my payments and moved to GitLab which actually is really really good.


I don't see why. I expect them to change nothing about github. Microsoft have been openly supporting open source for a while now. There's even talks about making windows opensource, which would be mind blowing. All these funny comics are just parodies. I don't for a second expect any of them to come true.

Windows does have a lot of bullshit, but don't just automatically presume that is going to happen to github.
Deleted User 3420
Profile Blog Joined May 2003
24492 Posts
Last Edited: 2018-06-11 21:58:43
June 11 2018 21:56 GMT
#19299
I do expect things about github to change, even if it's not noticable. Microsoft is shady as shit. Well, pure evil actually.

I anticipate they will data mine to extremes never before seen. At minimum they will use the repositories to improve various AIs, likely including AIs that code other programs or evolve their own code. But really, I anticipate they will freely steal code(err, umm, "ideas") from private repositories if they find something useful.

But for clarity, please note that I use "microsoft" interchangeably with the DoD/CIA.
Acrofales
Profile Joined August 2010
Spain18241 Posts
June 11 2018 22:24 GMT
#19300
[image loading]

The memes were indeed great.

But I don't think Microsoft is evil or shady as shit. At least, not more evil or shady than Facebook or Google or Apple, or for that matter any other multinational corporation. And just as I trust Google to not poke around in whatever I dump in my Google Drive, I'd trust Microsoft with my code on github. I don't really see why they'd change anything about github except maybe the business model and monetization schemes, which are one of the main reasons Github was looking to sell in the first place: their business model wasn't working. And while I don't understand why Github was worth 7.5BILLION, I don't think Microsoft bought it so that they can rifle through other people's (private) code.
Prev 1 963 964 965 966 967 1032 Next
Please log in or register to reply.
Live Events Refresh
Afreeca Starleague
10:00
Ro24 Group B
Soulkey vs Ample
JyJ vs sSak
Afreeca ASL 8259
StarCastTV_EN181
Liquipedia
Sparkling Tuna Cup
10:00
Weekly #124
CranKy Ducklings70
LiquipediaDiscussion
[ Submit Event ]
Live Streams
Refresh
StarCraft 2
OGKoka 172
ProTech146
SortOf 101
StarCraft: Brood War
Calm 12235
Flash 5321
Bisu 4013
GuemChi 1655
firebathero 695
BeSt 691
EffOrt 314
Zeus 290
Pusan 236
Leta 228
[ Show more ]
ZerO 215
actioN 194
Light 153
Stork 129
HiyA 118
Killer 81
ToSsGirL 74
Rush 61
Mind 58
Sharp 53
PianO 49
Terrorterran 41
Barracks 37
Hm[arnc] 20
GoRush 18
Nal_rA 17
yabsab 16
Shinee 14
Bale 14
soO 9
Noble 9
Purpose 8
sorry 5
Dota 2
XcaliburYe258
canceldota142
BananaSlamJamma108
League of Legends
JimRising 364
Counter-Strike
olofmeister2044
shoxiejesuss627
byalli436
x6flipin170
Super Smash Bros
Westballz13
Other Games
singsing1846
ceh9692
Sick289
crisheroes236
Happy76
Livibee68
Trikslyr22
Organizations
Other Games
gamesdonequick875
StarCraft: Brood War
UltimateBattle 222
Dota 2
PGL Dota 2 - Main Stream128
StarCraft 2
Blizzard YouTube
StarCraft: Brood War
BSLTrovo
sctven
[ Show 15 non-featured ]
StarCraft 2
• Berry_CruncH191
• StrangeGG 48
• LUISG 31
• CranKy Ducklings SOOP5
• AfreecaTV YouTube
• intothetv
• Kozan
• IndyKCrew
• LaughNgamezSOOP
• Migwel
• sooper7s
StarCraft: Brood War
• iopq 6
• BSLYoutube
• STPLYoutube
• ZZZeroYoutube
Upcoming Events
Replay Cast
22h 30m
Afreeca Starleague
23h 30m
hero vs YSC
Larva vs Shine
Kung Fu Cup
1d
Replay Cast
1d 13h
KCM Race Survival
1d 22h
The PondCast
1d 23h
WardiTV Team League
2 days
Replay Cast
2 days
WardiTV Team League
3 days
RSL Revival
3 days
Cure vs Zoun
herO vs Rogue
[ Show More ]
WardiTV Team League
4 days
Platinum Heroes Events
4 days
BSL
4 days
RSL Revival
4 days
ByuN vs Maru
MaxPax vs TriGGeR
WardiTV Team League
5 days
BSL
5 days
Replay Cast
5 days
Afreeca Starleague
5 days
Light vs Calm
Royal vs Mind
Wardi Open
6 days
Monday Night Weeklies
6 days
Sparkling Tuna Cup
6 days
Afreeca Starleague
6 days
Rush vs PianO
Flash vs Speed
Liquipedia Results

Completed

Proleague 2026-03-23
WardiTV Winter 2026
Underdog Cup #3

Ongoing

KCM Race Survival 2026 Season 1
BSL Season 22
CSL Elite League 2026
CSL Season 20: Qualifier 1
ASL Season 21
Acropolis #4 - TS6
RSL Revival: Season 4
Nations Cup 2026
NationLESS Cup
BLAST Open Spring 2026
ESL Pro League S23 Finals
ESL Pro League S23 Stage 1&2
PGL Cluj-Napoca 2026
IEM Kraków 2026
BLAST Bounty Winter 2026
BLAST Bounty Winter Qual

Upcoming

2026 Changsha Offline CUP
CSL Season 20: Qualifier 2
CSL 2026 SPRING (S20)
Acropolis #4
IPSL Spring 2026
BSL 22 Non-Korean Championship
CSLAN 4
Kung Fu Cup 2026 Grand Finals
HSC XXIX
uThermal 2v2 2026 Main Event
IEM Cologne Major 2026
Stake Ranked Episode 2
CS Asia Championships 2026
IEM Atlanta 2026
Asian Champions League 2026
PGL Astana 2026
BLAST Rivals Spring 2026
CCT Season 3 Global Finals
IEM Rio 2026
PGL Bucharest 2026
Stake Ranked Episode 1
TLPD

1. ByuN
2. TY
3. Dark
4. Solar
5. Stats
6. Nerchio
7. sOs
8. soO
9. INnoVation
10. Elazer
1. Rain
2. Flash
3. EffOrt
4. Last
5. Bisu
6. Soulkey
7. Mini
8. Sharp
Sidebar Settings...

Advertising | Privacy Policy | Terms Of Use | Contact Us

Original banner artwork: Jim Warren
The contents of this webpage are copyright © 2026 TLnet. All Rights Reserved.