• Log InLog In
  • Register
Liquid`
Team Liquid Liquipedia
EDT 11:50
CEST 17:50
KST 00:50
  • 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] Ro4 Preview: On Course0Code S Season 1 - RO8 Preview6[ASL21] Ro8 Preview Pt2: Progenitors8Code S Season 1 - RO12 Group A: Rogue, Percival, Solar, Zoun13[ASL21] Ro8 Preview Pt1: Inheritors16
Community News
Maestros of The Game 2 announcement and schedule !7Weekly Cups (April 27-May 4): Clem takes triple0RSL Revival: Season 5 - Qualifiers and Main Event12Code S Season 1 (2026) - RO12 Results12026 GSL Season 1 Qualifiers25
StarCraft 2
General
Code S Season 1 - RO8 Preview Behind the Blue - Team Liquid History Book Weekly Cups (April 27-May 4): Clem takes triple Blizzard Classic Cup @ BlizzCon 2026 - $100k prize pool Code S Season 1 (2026) - RO12 Results
Tourneys
Sparkling Tuna Cup - Weekly Open Tournament Sea Duckling Open (Global, Bronze-Diamond) Maestros of The Game 2 announcement and schedule ! GSL Code S Season 1 (2026) RSL Revival: Season 5 - Qualifiers and Main Event
Strategy
Custom Maps
[D]RTS in all its shapes and glory <3 [A] Nemrods 1/4 players
External Content
Mutation # 524 Death and Taxes The PondCast: SC2 News & Results Mutation # 523 Firewall Mutation # 522 Flip My Base
Brood War
General
Quality of life changes in BW that you will like ? Why there arent any 256x256 pro maps? RepMastered™: replay sharing and analyzer site BGH Auto Balance -> http://bghmmr.eu/ [ASL21] Ro4 Preview: On Course
Tourneys
[ASL21] Ro8 Day 3 [Megathread] Daily Proleagues [ASL21] Ro8 Day 4 Escore Tournament StarCraft Season 2
Strategy
Fighting Spirit mining rates Simple Questions, Simple Answers Muta micro map competition What's the deal with APM & what's its true value
Other Games
General Games
Warcraft III: The Frozen Throne Stormgate/Frost Giant Megathread Path of Exile Nintendo Switch Thread Daigo vs Menard Best of 10
Dota 2
The Story of Wings Gaming
League of Legends
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
Vanilla Mini Mafia Mafia Game Mode Feedback/Ideas TL Mafia Community Thread Five o'clock TL Mafia
Community
General
Russo-Ukrainian War Thread US Politics Mega-thread The Letting Off Steam Thread European Politico-economics QA Mega-thread UK Politics Mega-thread
Fan Clubs
The IdrA Fan Club
Media & Entertainment
Anime Discussion Thread [Manga] One Piece [Req][Books] Good Fantasy/SciFi books
Sports
2024 - 2026 Football Thread McBoner: A hockey love story Formula 1 Discussion
World Cup 2022
Tech Support
streaming software Strange computer issues (software) [G] How to Block Livestream Ads
TL Community
The Automated Ban List
Blogs
How EEG Data Can Predict Gam…
TrAiDoS
ramps on octagon
StaticNine
Funny Nicknames
LUCKY_NOOB
Customize Sidebar...

Website Feedback

Closed Threads



Active: 1993 users

The Big Programming Thread - Page 973

Forum Index > General Forum
Post a Reply
Prev 1 971 972 973 974 975 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.
Manit0u
Profile Blog Joined August 2004
Poland17743 Posts
September 25 2018 09:10 GMT
#19441
[image loading]
Time is precious. Waste it wisely.
Deleted User 3420
Profile Blog Joined May 2003
24492 Posts
September 25 2018 19:11 GMT
#19442
I've discovered a solution for multiple problems that are currently considered NP hard (minimum vertex cover/perfect matching, hamiltonicity). It works for many graphs, and I have just started delving into it - I believe I may be able to extend it to a generalized solution.... or it may pretty much already be. Like I said, just started getting into it.

And yes, I am talking a solution not an approximation or heuristic.

I think I would like to go to my school, University of Maryland College Park, to get assistance with investigating this. Particularly, the math heavy side, and doing proofs. I was wondering if anyone had advice as to how I can ensure that credit for my discoveries is not taken from me, because that is not something I would like to risk.
solidbebe
Profile Blog Joined November 2010
Netherlands4921 Posts
Last Edited: 2018-09-25 19:19:10
September 25 2018 19:13 GMT
#19443
How do you mean solutions? These problems have solutions.. just not anything that runs in polynomial time as far as we know.

edit*I confused NP-hard with NP-complete.. mah bad.
That's the 2nd time in a week I've seen someone sig a quote from this GD and I have never witnessed a sig quote happen in my TL history ever before. -Najda
Simberto
Profile Blog Joined July 2010
Germany11831 Posts
September 25 2018 19:17 GMT
#19444
On September 26 2018 04:11 travis wrote:
I've discovered a solution for multiple problems that are currently considered NP hard (minimum vertex cover/perfect matching, hamiltonicity). It works for many graphs, and I have just started delving into it - I believe I may be able to extend it to a generalized solution.... or it may pretty much already be. Like I said, just started getting into it.

And yes, I am talking a solution not an approximation or heuristic.

I think I would like to go to my school, University of Maryland College Park, to get assistance with investigating this. Particularly, the math heavy side, and doing proofs. I was wondering if anyone had advice as to how I can ensure that credit for my discoveries is not taken from me, because that is not something I would like to risk.


You could do the thing where you write down the core ideas, and leave that in a closed envelope with a date on it at a notary or something.
Deleted User 3420
Profile Blog Joined May 2003
24492 Posts
September 25 2018 19:18 GMT
#19445
I mean a polynomial time solution. In particular, a fairly fast one. I haven't tried to figure out the runtime yet, it's the last thing on my mind to be honest.
solidbebe
Profile Blog Joined November 2010
Netherlands4921 Posts
September 25 2018 19:24 GMT
#19446
You can also write a manuscript of your ideas and hash it and publish that hash on the bitcoin blockchain.

Just to be clear though... if you say you think you've found a polynomial time solution for NP-hard problems, then that would mean you've proved P=NP. You realize the implications here right?

Let me just say it is extremely unlikely your idea works..
That's the 2nd time in a week I've seen someone sig a quote from this GD and I have never witnessed a sig quote happen in my TL history ever before. -Najda
Deleted User 3420
Profile Blog Joined May 2003
24492 Posts
September 25 2018 21:42 GMT
#19447
well it certainly works for the graphs ive tested! but we will see how many more it will work for in the upcoming days
Acrofales
Profile Joined August 2010
Spain18290 Posts
September 25 2018 22:08 GMT
#19448
If you want to be certain, do what simberto said. A cheaper and slightly less secure way, but still very good is mailing them to yourself. Unless US Postal no longer date stamps letters, in which case it won't work. The hash is also a good idea. Doesn't really matter where you post it, as long as it's somewhere public and securely time-stamped. Hell, a blog here will probably be fine. Just never edit that post. If you want to do that, you should run it by the mods first tho.
Manit0u
Profile Blog Joined August 2004
Poland17743 Posts
September 27 2018 14:20 GMT
#19449
https://www.google.pl/search?q=db_password filetype:env

You'd be amazed...
Time is precious. Waste it wisely.
Deleted User 3420
Profile Blog Joined May 2003
24492 Posts
September 27 2018 14:29 GMT
#19450
lol :/

favorite part of that is how many of those passwords are highly secure in terms of password strength. they'll never be brute forced!
Excludos
Profile Blog Joined April 2010
Norway8256 Posts
Last Edited: 2018-09-27 14:41:19
September 27 2018 14:41 GMT
#19451
Omg that is truly hilarious and sad at the same time
ZenithM
Profile Joined February 2011
France15952 Posts
Last Edited: 2018-09-27 17:17:11
September 27 2018 16:44 GMT
#19452
@travis

On the polynomial-time solution to NP-hard problems, you should note that it's easy to naturally come up with instances that are solvable by some seemingly algorithmic method efficiently. Especially for small-size instances.
Needless to say, said method would have to work on every instance no matter what. And this requires proof infinitely more than testing on some instances, as I'm sure you're aware. Edit: actually found an interesting paragraph on the idea that most instances you come up with could be "easy": https://en.m.wikipedia.org/wiki/P_versus_NP_problem#P_≠_NP ( part talking about average-case complexity)

The likelihood of you finding a general constructive solution in P (implying that P=NP) by just looking at some graphs and see that "it works" seems very small to me. And I'm definitely not saying that to make fun of you or belittle your efforts, just saying you'll have a long road (very likely fruitless) ahead of you if that's where you're at right now.

First thing I would do if I were you if you didn't already do it, is implement your solution, to the Traveling Salesman problem and test it on large instances you can find on the Internet (usually used to assess the many heuristical solutions people have come up with over the years). Short of proving anything, testing it on a large number of arbitrary complex instances might help you at least believe in yourself :D (or crush your hopes early).


Anyway if society collapses because of my guy Travis, MOM I WAS THERE, SHOUTOUT!!!
Deleted User 3420
Profile Blog Joined May 2003
24492 Posts
Last Edited: 2018-09-27 18:16:12
September 27 2018 18:15 GMT
#19453
On September 28 2018 01:44 ZenithM wrote:
@travis

On the polynomial-time solution to NP-hard problems, you should note that it's easy to naturally come up with instances that are solvable by some seemingly algorithmic method efficiently. Especially for small-size instances.

I learned that the hard way! lol
I've been doing this for a good while now, it's what I've spent the vast majority of my time on for the last year now.
I've actually thought I just about had or did have a solution several times now. Only to find out that it won't work under some condition which starts appearing more and more as the graphs grow big.

Right now I use this data set of 1001 difficult graphs: http://www.flinders.edu.au/science_engineering/csem/research/programs/flinders-hamiltonian-cycle-project/fhcpcs.cfm

I typically run mostly the smallest graphs (N=66 to ~300), because even cubic algorithms start taking up a lot of space and time when N is very high (thousands), and I want to save time during testing. I'll test in the thousands when an algorithm is optimized and I am confident in it.

This is hard for me to do much testing and development because a lot is going on in school and im trying hard not to fail while working on this. So, movement is slow.



Needless to say, said method would have to work on every instance no matter what. And this requires proof infinitely more than testing on some instances, as I'm sure you're aware. Edit: actually found an interesting paragraph on the idea that most instances you come up with could be "easy": https://en.m.wikipedia.org/wiki/P_versus_NP_problem#P_≠_NP ( part talking about average-case complexity)


Well, what I find might not work on a big set of instances because those instances need extra steps - something else has to be done. So I think a method that works for every subset under some rules is super valuable. In fact, my gut says that anything I find that is useful will likely need extra steps to handle different types of graphs.




The likelihood of you finding a general constructive solution in P (implying that P=NP) by just looking at some graphs and see that "it works" seems very small to me. And I'm definitely not saying that to make fun of you or belittle your efforts, just saying you'll have a long road (very likely fruitless) ahead of you if that's where you're at right now.


I've been on it for a while . Literally 50+ hours a week for almost every week for the last year. I can handle getting my hopes crushed repeatedly, getting my naivety stomped out.


First thing I would do if I were you if you didn't already do it, is implement your solution, to the Traveling Salesman problem and test it on large instances you can find on the Internet (usually used to assess the many heuristical solutions people have come up with over the years). Short of proving anything, testing it on a large number of arbitrary complex instances might help you at least believe in yourself :D (or crush your hopes early).


i am working on the hamiltonian cycle problem right now actually, not TSP. I do believe TSP will end up being a much more difficult problem than hamiltonian cycle.
ZenithM
Profile Joined February 2011
France15952 Posts
Last Edited: 2018-09-28 07:22:33
September 27 2018 22:47 GMT
#19454
There are probably several orders of magnitude of difficulty between finding an efficient solution to some graph instances of a specific problem, and proving P = NP (to the point where the first discovery might almost be considered worthless). But it sounds like you're at least having fun with it, committed and going in the right direction with the experiments.
Good luck!
Apom
Profile Blog Joined August 2011
France656 Posts
September 27 2018 23:29 GMT
#19455
On September 26 2018 04:11 travis wrote:
I've discovered a solution for multiple problems that are currently considered NP hard (minimum vertex cover/perfect matching, hamiltonicity).
Pro tip : you have not.

But hey, as long as you are having fun...
Manit0u
Profile Blog Joined August 2004
Poland17743 Posts
September 28 2018 08:58 GMT
#19456
Time is precious. Waste it wisely.
ZenithM
Profile Joined February 2011
France15952 Posts
September 28 2018 09:03 GMT
#19457
Legit a good movie. I remember watching it with my friends back then, it was fun. I'm guessing it would have been much worse without a CS background.
raNazUra
Profile Joined December 2012
United States10 Posts
September 28 2018 18:28 GMT
#19458
i am working on the hamiltonian cycle problem right now actually, not TSP. I do believe TSP will end up being a much more difficult problem than hamiltonian cycle.


This is a bit of a mistake. The whole point of NP-complete problems is that if you can solve one, you've solved them all. The transformation between them is already discovered. It may be circuitous, but it exists and is known.
Speak the truth, even if your voice shakes
ZenithM
Profile Joined February 2011
France15952 Posts
September 29 2018 14:58 GMT
#19459
I mean the guy is an undergrad CS student, he probably just got introduced to Complexity 101 and thought it would be cool to prove P = NP without really knowing much else. Like hundreds of students before him :D. I remember back then the professor that was teaching us complexity theory told us he regularly received "proofs" of P vs NP and couldn't bother checking them anymore.
Deleted User 3420
Profile Blog Joined May 2003
24492 Posts
September 29 2018 15:07 GMT
#19460
On September 29 2018 03:28 raNazUra wrote:
Show nested quote +
i am working on the hamiltonian cycle problem right now actually, not TSP. I do believe TSP will end up being a much more difficult problem than hamiltonian cycle.


This is a bit of a mistake. The whole point of NP-complete problems is that if you can solve one, you've solved them all. The transformation between them is already discovered. It may be circuitous, but it exists and is known.


Well, what currently exists is completely absurd, and I haven't even heard of it being done in practice. The *only* conversion I have heard of is TSP --> sat --> 3sat ---> vertex cover ---> HC, and you'll end up with a hilariously large HC problem. So, when I say "more difficult", I am probably misusing language, but I didn't necessarily mean polynomial vs exponential time (or whatever other technical metrics there are).
Prev 1 971 972 973 974 975 1032 Next
Please log in or register to reply.
Live Events Refresh
WardiTV Invitational
12:00
Wardi Spring Cup
ByuN vs Rogue
Solar vs Ryung
Zoun vs Percival
Cure vs SHIN
WardiTV1286
TKL 315
Ryung 242
IndyStarCraft 199
LiquipediaDiscussion
[ Submit Event ]
Live Streams
Refresh
StarCraft 2
TKL 315
Ryung 242
IndyStarCraft 199
Rex 150
Railgan 101
BRAT_OK 53
MindelVK 20
StarCraft: Brood War
EffOrt 1521
BeSt 819
ZerO 708
Rush 253
hero 221
Mind 109
Nal_rA 54
Pusan 54
Bonyth 50
Shinee 44
[ Show more ]
Movie 36
sorry 34
Rock 27
EG.Machine 17
GoRush 15
IntoTheRainbow 8
Dota 2
Gorgc6430
syndereN351
XaKoH 258
monkeys_forever183
LuMiX0
Counter-Strike
fl0m3914
Heroes of the Storm
Khaldor413
Other Games
gofns17257
singsing2014
Liquid`RaSZi1102
FrodaN1083
B2W.Neo1070
Happy313
Hui .280
KnowMe164
ArmadaUGS71
elazer60
ZerO(Twitch)19
Organizations
Counter-Strike
PGL41214
Other Games
gamesdonequick2749
StarCraft 2
Blizzard YouTube
StarCraft: Brood War
BSLTrovo
[ Show 16 non-featured ]
StarCraft 2
• Adnapsc2 18
• AfreecaTV YouTube
• intothetv
• Kozan
• IndyKCrew
• LaughNgamezSOOP
• Migwel
• sooper7s
StarCraft: Brood War
• BSLYoutube
• STPLYoutube
• ZZZeroYoutube
League of Legends
• Nemesis2804
• Jankos1995
• TFBlade1108
Other Games
• WagamamaTV356
• Shiphtur133
Upcoming Events
BSL
3h 10m
Dewalt vs DragOn
Aether vs Jimin
GSL
16h 10m
Afreeca Starleague
18h 10m
Soma vs Leta
Wardi Open
20h 10m
Monday Night Weeklies
1d
OSC
1d 8h
CranKy Ducklings
1d 18h
Afreeca Starleague
1d 18h
Light vs Flash
Replay Cast
2 days
Replay Cast
3 days
[ Show More ]
The PondCast
3 days
Replay Cast
4 days
RSL Revival
4 days
Korean StarCraft League
5 days
RSL Revival
5 days
BSL
6 days
GSL
6 days
Cure vs TBD
TBD vs Maru
Liquipedia Results

Completed

Escore Tournament S2: W6
WardiTV TLMC #16
Nations Cup 2026

Ongoing

BSL Season 22
ASL Season 21
CSL 2026 SPRING (S20)
IPSL Spring 2026
KCM Race Survival 2026 Season 2
Acropolis #4
KK 2v2 League Season 1
BSL 22 Non-Korean Championship
SCTL 2026 Spring
RSL Revival: Season 5
2026 GSL S1
PGL Astana 2026
BLAST Rivals Spring 2026
IEM Rio 2026
PGL Bucharest 2026
Stake Ranked Episode 1
BLAST Open Spring 2026
ESL Pro League S23 Finals
ESL Pro League S23 Stage 1&2

Upcoming

YSL S3
Escore Tournament S2: W7
Escore Tournament S2: W8
CSLAN 4
Kung Fu Cup 2026 Grand Finals
HSC XXIX
uThermal 2v2 2026 Main Event
Maestros of the Game 2
2026 GSL S2
BLAST Bounty Summer 2026: Closed Qualifier
Stake Ranked Episode 3
XSE Pro League 2026
IEM Cologne Major 2026
Stake Ranked Episode 2
CS Asia Championships 2026
Asian Champions League 2026
IEM Atlanta 2026
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.