• Log InLog In
  • Register
Liquid`
Team Liquid Liquipedia
EST 04:36
CET 10:36
KST 18:36
  • 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
TL.net Map Contest #21: Winners11Intel X Team Liquid Seoul event: Showmatches and Meet the Pros10[ASL20] Finals Preview: Arrival13TL.net Map Contest #21: Voting12[ASL20] Ro4 Preview: Descent11
Community News
[TLMC] Fall/Winter 2025 Ladder Map Rotation4Weekly Cups (Nov 3-9): Clem Conquers in Canada4SC: Evo Complete - Ranked Ladder OPEN ALPHA8StarCraft, SC2, HotS, WC3, Returning to Blizzcon!45$5,000+ WardiTV 2025 Championship7
StarCraft 2
General
[TLMC] Fall/Winter 2025 Ladder Map Rotation Mech is the composition that needs teleportation t Weekly Cups (Nov 3-9): Clem Conquers in Canada Craziest Micro Moments Of All Time? SC: Evo Complete - Ranked Ladder OPEN ALPHA
Tourneys
Constellation Cup - Main Event - Stellar Fest Tenacious Turtle Tussle Sparkling Tuna Cup - Weekly Open Tournament $5,000+ WardiTV 2025 Championship Merivale 8 Open - LAN - Stellar Fest
Strategy
Custom Maps
Map Editor closed ?
External Content
Mutation # 499 Chilling Adaptation Mutation # 498 Wheel of Misfortune|Cradle of Death Mutation # 497 Battle Haredened Mutation # 496 Endless Infection
Brood War
General
Rapidtags: The Ultimate Tool for Hashtag and Keywo Terran 1:35 12 Gas Optimization FlaSh on: Biggest Problem With SnOw's Playstyle BW General Discussion BGH Auto Balance -> http://bghmmr.eu/
Tourneys
[BSL21] RO32 Group D - Sunday 21:00 CET [BSL21] RO32 Group C - Saturday 21:00 CET [ASL20] Grand Finals [Megathread] Daily Proleagues
Strategy
Current Meta PvZ map balance How to stay on top of macro? Soma's 9 hatch build from ASL Game 2
Other Games
General Games
Nintendo Switch Thread Stormgate/Frost Giant Megathread Should offensive tower rushing be viable in RTS games? Path of Exile Dawn of War IV
Dota 2
Official 'what is Dota anymore' discussion
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
TL Mafia Community Thread SPIRED by.ASL Mafia {211640}
Community
General
US Politics Mega-thread Russo-Ukrainian War Thread Things Aren’t Peaceful in Palestine Canadian Politics Mega-thread The Games Industry And ATVI
Fan Clubs
White-Ra Fan Club The herO Fan Club!
Media & Entertainment
[Manga] One Piece Anime Discussion Thread Movie Discussion! Korean Music Discussion Series you have seen recently...
Sports
2024 - 2026 Football Thread Formula 1 Discussion NBA General Discussion MLB/Baseball 2023 TeamLiquid Health and Fitness Initiative For 2023
World Cup 2022
Tech Support
SC2 Client Relocalization [Change SC2 Language] Linksys AE2500 USB WIFI keeps disconnecting Computer Build, Upgrade & Buying Resource Thread
TL Community
The Automated Ban List
Blogs
Dyadica Gospel – a Pulp No…
Hildegard
Coffee x Performance in Espo…
TrAiDoS
Saturation point
Uldridge
DnB/metal remix FFO Mick Go…
ImbaTosS
Reality "theory" prov…
perfectspheres
Customize Sidebar...

Website Feedback

Closed Threads



Active: 1225 users

The Big Programming Thread - Page 944

Forum Index > General Forum
Post a Reply
Prev 1 942 943 944 945 946 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
Poland17428 Posts
February 08 2018 13:31 GMT
#18861
test 'should not chosen default pipeline with related columns' do


I really hate stumbling upon test cases written by people with sub-par english proficiency. Makes it hard to evaluate.
Time is precious. Waste it wisely.
Silvanel
Profile Blog Joined March 2003
Poland4733 Posts
February 08 2018 14:55 GMT
#18862
The access from our testservers to certain type of device we are testing was cut off after one guy in certain Asian country (which is also a subcontinent) did something very bad. I wont go into details but as a result IT decided to cut access from all servers with traffic above some treshhold to that type of devices. Which of course included our servers. Took us three days to figure out what happened and whitelist our servers.

Be happy when its only spelling.
Pathetic Greta hater.
WarSame
Profile Blog Joined February 2010
Canada1950 Posts
February 08 2018 23:09 GMT
#18863
On February 08 2018 18:33 WolfintheSheep wrote:
Show nested quote +
On February 08 2018 11:41 WarSame wrote:
Well I figure if I can do this I can remove a substantial amount of code. Instead of opening, using, then closing the adapter I can just have it open the whole time, and use it when I want it. This means that I can make inline calls to the DB without either wrapping it in a pointless function or cluttering up my code. I'm wondering whether my proposal is bad design, though.

If I recall, you've asked similar questions before, and the general theme seems to be that you're putting a lot of undue emphasis on "decluttering" your code. Clean code should come naturally no matter what you're programming, and hacking functionality together is the opposite of that.

Long-short, always close your DB adapters. There may be niche cases where you will want to leave a connection open, but you should be able to clearly say why that's necessary from a system perspective.

Also, when you say "without...wrapping it in a pointless function", I hope you're just wording that poorly, because encapsulation is a fundamental aspect of OOP.

Yeah, I'm trying to learn how to code cleanly through this project, so sometimes I'm definitely going over the line.

By "wrapping it" I meant pointless functions like this:


boolean isAuthentic(String email, char[] password) throws NoSuchAlgorithmException {
AccountDbAdapter db = new AccountDbAdapter(getContext());
boolean isAuthentic = db.isAuthentic(email, password);
db.close();

return isAuthentic;
}


I would like to replace that with a single, in-line function call, maybe like:


boolean isAuthentic = Session.getAccountDbAdapter().isAuthentic(email, password)


Since I have functions like this fairly often it would save quite a lot of unnecessary code.
Can it be I stayed away too long? Did you miss these rhymes while I was gone?
Manit0u
Profile Blog Joined August 2004
Poland17428 Posts
Last Edited: 2018-02-09 14:48:15
February 09 2018 08:55 GMT
#18864
https://github.com/kelseyhightower/nocode

https://github.com/koudelka/visualixir

amazing projects
Time is precious. Waste it wisely.
Silvanel
Profile Blog Joined March 2003
Poland4733 Posts
Last Edited: 2018-02-09 17:37:19
February 09 2018 17:32 GMT
#18865
Yeah. Nocode is super secure and efficient. Its vary hard to get client to accept it though. No idea why.
Pathetic Greta hater.
Deleted User 3420
Profile Blog Joined May 2003
24492 Posts
Last Edited: 2018-02-09 18:07:08
February 09 2018 17:53 GMT
#18866
Is it possible to tell from analysis of runtime and/or function calls if asymptotic complexity is polynomial, rather than exponential? By exponential I mean including 2^1.00001, for example.

Or to come to such a conclusion would that require mathematical analysis of the code ?


Also, does anyone have any experience with gnu gmp or redis?
Lmui
Profile Joined November 2010
Canada6215 Posts
Last Edited: 2018-02-09 18:09:33
February 09 2018 18:08 GMT
#18867
On February 10 2018 02:53 travis wrote:
Is it possible to tell from analysis of runtime and/or function calls if asymptotic complexity is polynomial, rather than exponential? By exponential I mean including 2^1.00001, for example.

Or to come to such a conclusion would that require mathematical analysis of the code ?


Well with asymptotically large amounts of input size, you can get a dataset of runtimes for instance which will show you that it's exponential, since regardless of what the constants are, n^c < c^n.

In practical terms though, c^(1.00000000000000000001n) for n = 10^1000000 for instance far outstrips (n*10^1000000)^c for c being any reasonable number

Function calls, no, runtime, cpu cycles, or some other low level iteration metric yes, as long as it scales in some way with the input N
Simberto
Profile Blog Joined July 2010
Germany11629 Posts
February 09 2018 18:21 GMT
#18868
If you can generate enough data which is good enough, you should be able to simply take those data points, and fit a curve onto them. You can then compare whether a polynomial curve or an exponential curve fits the data better.

It should be irrelevant where those data points are coming from, unless they are laden with too much uncertainty to produce a valid answer.
WolfintheSheep
Profile Joined June 2011
Canada14127 Posts
February 09 2018 18:32 GMT
#18869
On February 09 2018 08:09 WarSame wrote:
Show nested quote +
On February 08 2018 18:33 WolfintheSheep wrote:
On February 08 2018 11:41 WarSame wrote:
Well I figure if I can do this I can remove a substantial amount of code. Instead of opening, using, then closing the adapter I can just have it open the whole time, and use it when I want it. This means that I can make inline calls to the DB without either wrapping it in a pointless function or cluttering up my code. I'm wondering whether my proposal is bad design, though.

If I recall, you've asked similar questions before, and the general theme seems to be that you're putting a lot of undue emphasis on "decluttering" your code. Clean code should come naturally no matter what you're programming, and hacking functionality together is the opposite of that.

Long-short, always close your DB adapters. There may be niche cases where you will want to leave a connection open, but you should be able to clearly say why that's necessary from a system perspective.

Also, when you say "without...wrapping it in a pointless function", I hope you're just wording that poorly, because encapsulation is a fundamental aspect of OOP.

Yeah, I'm trying to learn how to code cleanly through this project, so sometimes I'm definitely going over the line.

By "wrapping it" I meant pointless functions like this:


boolean isAuthentic(String email, char[] password) throws NoSuchAlgorithmException {
AccountDbAdapter db = new AccountDbAdapter(getContext());
boolean isAuthentic = db.isAuthentic(email, password);
db.close();

return isAuthentic;
}


I would like to replace that with a single, in-line function call, maybe like:


boolean isAuthentic = Session.getAccountDbAdapter().isAuthentic(email, password)


Since I have functions like this fairly often it would save quite a lot of unnecessary code.

So, why do you feel that code is unnecessary?
Average means I'm better than half of you.
WarSame
Profile Blog Joined February 2010
Canada1950 Posts
February 09 2018 19:28 GMT
#18870
On February 10 2018 03:32 WolfintheSheep wrote:
Show nested quote +
On February 09 2018 08:09 WarSame wrote:
On February 08 2018 18:33 WolfintheSheep wrote:
On February 08 2018 11:41 WarSame wrote:
Well I figure if I can do this I can remove a substantial amount of code. Instead of opening, using, then closing the adapter I can just have it open the whole time, and use it when I want it. This means that I can make inline calls to the DB without either wrapping it in a pointless function or cluttering up my code. I'm wondering whether my proposal is bad design, though.

If I recall, you've asked similar questions before, and the general theme seems to be that you're putting a lot of undue emphasis on "decluttering" your code. Clean code should come naturally no matter what you're programming, and hacking functionality together is the opposite of that.

Long-short, always close your DB adapters. There may be niche cases where you will want to leave a connection open, but you should be able to clearly say why that's necessary from a system perspective.

Also, when you say "without...wrapping it in a pointless function", I hope you're just wording that poorly, because encapsulation is a fundamental aspect of OOP.

Yeah, I'm trying to learn how to code cleanly through this project, so sometimes I'm definitely going over the line.

By "wrapping it" I meant pointless functions like this:


boolean isAuthentic(String email, char[] password) throws NoSuchAlgorithmException {
AccountDbAdapter db = new AccountDbAdapter(getContext());
boolean isAuthentic = db.isAuthentic(email, password);
db.close();

return isAuthentic;
}


I would like to replace that with a single, in-line function call, maybe like:


boolean isAuthentic = Session.getAccountDbAdapter().isAuthentic(email, password)


Since I have functions like this fairly often it would save quite a lot of unnecessary code.

So, why do you feel that code is unnecessary?

It seems like my code is repeating itself, making the intentions of the code less clear.
Can it be I stayed away too long? Did you miss these rhymes while I was gone?
Excludos
Profile Blog Joined April 2010
Norway8158 Posts
February 09 2018 19:33 GMT
#18871
On February 10 2018 04:28 WarSame wrote:
Show nested quote +
On February 10 2018 03:32 WolfintheSheep wrote:
On February 09 2018 08:09 WarSame wrote:
On February 08 2018 18:33 WolfintheSheep wrote:
On February 08 2018 11:41 WarSame wrote:
Well I figure if I can do this I can remove a substantial amount of code. Instead of opening, using, then closing the adapter I can just have it open the whole time, and use it when I want it. This means that I can make inline calls to the DB without either wrapping it in a pointless function or cluttering up my code. I'm wondering whether my proposal is bad design, though.

If I recall, you've asked similar questions before, and the general theme seems to be that you're putting a lot of undue emphasis on "decluttering" your code. Clean code should come naturally no matter what you're programming, and hacking functionality together is the opposite of that.

Long-short, always close your DB adapters. There may be niche cases where you will want to leave a connection open, but you should be able to clearly say why that's necessary from a system perspective.

Also, when you say "without...wrapping it in a pointless function", I hope you're just wording that poorly, because encapsulation is a fundamental aspect of OOP.

Yeah, I'm trying to learn how to code cleanly through this project, so sometimes I'm definitely going over the line.

By "wrapping it" I meant pointless functions like this:


boolean isAuthentic(String email, char[] password) throws NoSuchAlgorithmException {
AccountDbAdapter db = new AccountDbAdapter(getContext());
boolean isAuthentic = db.isAuthentic(email, password);
db.close();

return isAuthentic;
}


I would like to replace that with a single, in-line function call, maybe like:


boolean isAuthentic = Session.getAccountDbAdapter().isAuthentic(email, password)


Since I have functions like this fairly often it would save quite a lot of unnecessary code.

So, why do you feel that code is unnecessary?

It seems like my code is repeating itself, making the intentions of the code less clear.


This is sensible and pretty core to having clean and proper code which can be easily read and fixed. At the best of your ability, try not to repeat any lines of code.

Think about it this way: If you do a mistake in your often repeated code, you now have to go back and fix every occurance of it. If you set it aside and repeat the call instead, you only have to fix it once.
Deleted User 3420
Profile Blog Joined May 2003
24492 Posts
Last Edited: 2018-02-10 00:36:46
February 10 2018 00:33 GMT
#18872
So, I still have been going hard on working to find a reasonable exact solver for the TSP, and even if I haven't solved it, I have improved my results to a point where I feel they are pretty impressive.

I tested it 1000 times vs a brute force solver at n=9 and it matched the brute force all 1000 times, I tested it 100 times vs a good greedy solver I found online for n = 20 and it beat or tied (almost always beat) the greedy solver 100/100 times.

I tested it on two of the data sets here http://www.math.uwaterloo.ca/tsp/world/countries.html, n=29 and n=39. It solved both of those, in 35 seconds and 50 seconds.

For benchmarking on randomly generated matrices (which are more difficult than the typical matrices I can find online based on real data), I see times like this (some overhead probably presented by the profiler)

(these are averages, there is quite a bit of variance)
@n

11: .1 seconds (compared with the roughly ~1 minute of brute force)
12: .17 sec
13: .26 sec
14: .42 sec
15: .7 sec
16: 1.1 sec
24: 13 secs
32 55 secs

this is on my desktop pc, which is probably average in terms of speed. it's in python, if I rewrote it in C (and if i was good enough to rewrite it in C), I could probably make it go much much faster.

I of course need to test bigger datasets, but even if it messes up somewhere I am still very proud of what I have accomplished doing this stuff (my life has revolved around it for the last 3 months... ive been obsessed).

I do think I still have a couple ways in mind to make it perform faster and lose less memory (it uses a lot). Right now it will soon approach the point where my 6gb of ram is not enough.
Neshapotamus
Profile Blog Joined May 2006
United States163 Posts
Last Edited: 2018-02-10 20:38:50
February 10 2018 05:36 GMT
#18873
On February 10 2018 09:33 travis wrote:
So, I still have been going hard on working to find a reasonable exact solver for the TSP, and even if I haven't solved it, I have improved my results to a point where I feel they are pretty impressive.

I tested it 1000 times vs a brute force solver at n=9 and it matched the brute force all 1000 times, I tested it 100 times vs a good greedy solver I found online for n = 20 and it beat or tied (almost always beat) the greedy solver 100/100 times.

I tested it on two of the data sets here http://www.math.uwaterloo.ca/tsp/world/countries.html, n=29 and n=39. It solved both of those, in 35 seconds and 50 seconds.

For benchmarking on randomly generated matrices (which are more difficult than the typical matrices I can find online based on real data), I see times like this (some overhead probably presented by the profiler)

(these are averages, there is quite a bit of variance)
@n

11: .1 seconds (compared with the roughly ~1 minute of brute force)
12: .17 sec
13: .26 sec
14: .42 sec
15: .7 sec
16: 1.1 sec
24: 13 secs
32 55 secs

this is on my desktop pc, which is probably average in terms of speed. it's in python, if I rewrote it in C (and if i was good enough to rewrite it in C), I could probably make it go much much faster.

I of course need to test bigger datasets, but even if it messes up somewhere I am still very proud of what I have accomplished doing this stuff (my life has revolved around it for the last 3 months... ive been obsessed).

I do think I still have a couple ways in mind to make it perform faster and lose less memory (it uses a lot). Right now it will soon approach the point where my 6gb of ram is not enough.


Here are some other ways people are solving TSP.

https://github.com/DiegoVicen/ntnu-som

The basic idea is to use a self-organing map (unsupervised neural network model).

You should share your code with us and explain your approach! While building code is nice, writing and explaining your method should deepen your understanding of your algorithm. Most likely, you're applying techniques that people have already thought about.

Acrofales
Profile Joined August 2010
Spain18114 Posts
February 10 2018 08:16 GMT
#18874
On February 10 2018 14:36 Neshapotamus wrote:
Show nested quote +
On February 10 2018 09:33 travis wrote:
So, I still have been going hard on working to find a reasonable exact solver for the TSP, and even if I haven't solved it, I have improved my results to a point where I feel they are pretty impressive.

I tested it 1000 times vs a brute force solver at n=9 and it matched the brute force all 1000 times, I tested it 100 times vs a good greedy solver I found online for n = 20 and it beat or tied (almost always beat) the greedy solver 100/100 times.

I tested it on two of the data sets here http://www.math.uwaterloo.ca/tsp/world/countries.html, n=29 and n=39. It solved both of those, in 35 seconds and 50 seconds.

For benchmarking on randomly generated matrices (which are more difficult than the typical matrices I can find online based on real data), I see times like this (some overhead probably presented by the profiler)

(these are averages, there is quite a bit of variance)
@n

11: .1 seconds (compared with the roughly ~1 minute of brute force)
12: .17 sec
13: .26 sec
14: .42 sec
15: .7 sec
16: 1.1 sec
24: 13 secs
32 55 secs

this is on my desktop pc, which is probably average in terms of speed. it's in python, if I rewrote it in C (and if i was good enough to rewrite it in C), I could probably make it go much much faster.

I of course need to test bigger datasets, but even if it messes up somewhere I am still very proud of what I have accomplished doing this stuff (my life has revolved around it for the last 3 months... ive been obsessed).

I do think I still have a couple ways in mind to make it perform faster and lose less memory (it uses a lot). Right now it will soon approach the point where my 6gb of ram is not enough.


Here are some other ways people are solving TSP.

https://github.com/DiegoVicen/ntnu-som

The basic idea is to use a self-organing map (unsupervised neural network model).

You should share your code with us and explain your approach! While building code is nice, writing and explaining your method should deepen your understanding of your algorithm. Most likely, your applying techniques that people have already thought about.


If you think you're really into something new, don't share. Depending on your goals, you can write a scientific article, or try to monetize your idea.

But for it to be really good you need to be better than state-of-the-art approaches (such as those self-organizing maps), and not just better than brute force and greedy approaches.

And it's a very popular problem to work on, so the competition is strong. I wouldn't get my hopes up that you have actually made a breakthrough. But it's always a (slight) possibility. However, if you haven't actually made a breakthrough, sharing with peers is indeed a great way to improve (it's also a great way if you have made a breakthrough, but then it's more important to first protect your idea from being stolen; assuming you care about getting credit for it).


supereddie
Profile Joined March 2011
Netherlands151 Posts
February 10 2018 08:56 GMT
#18875
On February 09 2018 08:09 WarSame wrote:
Show nested quote +
On February 08 2018 18:33 WolfintheSheep wrote:
On February 08 2018 11:41 WarSame wrote:
Well I figure if I can do this I can remove a substantial amount of code. Instead of opening, using, then closing the adapter I can just have it open the whole time, and use it when I want it. This means that I can make inline calls to the DB without either wrapping it in a pointless function or cluttering up my code. I'm wondering whether my proposal is bad design, though.

If I recall, you've asked similar questions before, and the general theme seems to be that you're putting a lot of undue emphasis on "decluttering" your code. Clean code should come naturally no matter what you're programming, and hacking functionality together is the opposite of that.

Long-short, always close your DB adapters. There may be niche cases where you will want to leave a connection open, but you should be able to clearly say why that's necessary from a system perspective.

Also, when you say "without...wrapping it in a pointless function", I hope you're just wording that poorly, because encapsulation is a fundamental aspect of OOP.

Yeah, I'm trying to learn how to code cleanly through this project, so sometimes I'm definitely going over the line.

By "wrapping it" I meant pointless functions like this:


boolean isAuthentic(String email, char[] password) throws NoSuchAlgorithmException {
AccountDbAdapter db = new AccountDbAdapter(getContext());
boolean isAuthentic = db.isAuthentic(email, password);
db.close();

return isAuthentic;
}


I would like to replace that with a single, in-line function call, maybe like:


boolean isAuthentic = Session.getAccountDbAdapter().isAuthentic(email, password)


Since I have functions like this fairly often it would save quite a lot of unnecessary code.

For me the easiest way to do this would be to think about testability: write unit tests. This should give you an idea where to put certain code.

"Do not try to make difficult things possible, but make simple things simple." - David Platt on Software Design
WarSame
Profile Blog Joined February 2010
Canada1950 Posts
February 10 2018 15:03 GMT
#18876
That's a good way to look at it! I haven't unit tested my activities yet, so that poses an obstacle
Can it be I stayed away too long? Did you miss these rhymes while I was gone?
ShoCkeyy
Profile Blog Joined July 2008
7815 Posts
Last Edited: 2018-02-10 18:18:02
February 10 2018 16:00 GMT
#18877
Nvm, there is more to this issue than just a reference not showing up...
Life?
Neshapotamus
Profile Blog Joined May 2006
United States163 Posts
February 10 2018 20:54 GMT
#18878
On February 10 2018 17:16 Acrofales wrote:
Show nested quote +
On February 10 2018 14:36 Neshapotamus wrote:
On February 10 2018 09:33 travis wrote:
So, I still have been going hard on working to find a reasonable exact solver for the TSP, and even if I haven't solved it, I have improved my results to a point where I feel they are pretty impressive.

I tested it 1000 times vs a brute force solver at n=9 and it matched the brute force all 1000 times, I tested it 100 times vs a good greedy solver I found online for n = 20 and it beat or tied (almost always beat) the greedy solver 100/100 times.

I tested it on two of the data sets here http://www.math.uwaterloo.ca/tsp/world/countries.html, n=29 and n=39. It solved both of those, in 35 seconds and 50 seconds.

For benchmarking on randomly generated matrices (which are more difficult than the typical matrices I can find online based on real data), I see times like this (some overhead probably presented by the profiler)

(these are averages, there is quite a bit of variance)
@n

11: .1 seconds (compared with the roughly ~1 minute of brute force)
12: .17 sec
13: .26 sec
14: .42 sec
15: .7 sec
16: 1.1 sec
24: 13 secs
32 55 secs

this is on my desktop pc, which is probably average in terms of speed. it's in python, if I rewrote it in C (and if i was good enough to rewrite it in C), I could probably make it go much much faster.

I of course need to test bigger datasets, but even if it messes up somewhere I am still very proud of what I have accomplished doing this stuff (my life has revolved around it for the last 3 months... ive been obsessed).

I do think I still have a couple ways in mind to make it perform faster and lose less memory (it uses a lot). Right now it will soon approach the point where my 6gb of ram is not enough.


Here are some other ways people are solving TSP.

https://github.com/DiegoVicen/ntnu-som

The basic idea is to use a self-organing map (unsupervised neural network model).

You should share your code with us and explain your approach! While building code is nice, writing and explaining your method should deepen your understanding of your algorithm. Most likely, your applying techniques that people have already thought about.


If you think you're really into something new, don't share. Depending on your goals, you can write a scientific article, or try to monetize your idea.

But for it to be really good you need to be better than state-of-the-art approaches (such as those self-organizing maps), and not just better than brute force and greedy approaches.

And it's a very popular problem to work on, so the competition is strong. I wouldn't get my hopes up that you have actually made a breakthrough. But it's always a (slight) possibility. However, if you haven't actually made a breakthrough, sharing with peers is indeed a great way to improve (it's also a great way if you have made a breakthrough, but then it's more important to first protect your idea from being stolen; assuming you care about getting credit for it).




I would disagree about not sharing. Your idea and code is just one portion of a monetization strategy. If you had a novel solution, you still need to think about creating a product, execution of the product (how will you sell your solution), building a team, and supporting the product. Locking yourself up from feedback is probably the most dangerous strategy.

Here are some reasons why you should feel ok:
1. You can always patent it afterward (even after publishing)
2. You might have made a mistake.
3. No one is going to steal your idea. Afterall, you didn't really provide a proof to why your method is superior. No one is the space of looking at amateur solutions.
4. Feedback will refine your idea
5. Consensus from your peers is how you drive innovation forward and legitimize your novel approach.
phar
Profile Joined August 2011
United States1080 Posts
February 11 2018 18:50 GMT
#18879
Or the easier / cop out monetization strategy with being brilliant enough to beat state of the art tsp algorithm on your own:

Walk into a job paying >$500k/yr at BigCorp.
Who after all is today speaking about the destruction of the Armenians?
emperorchampion
Profile Blog Joined December 2008
Canada9496 Posts
February 11 2018 18:58 GMT
#18880
Well, when travis proves that P=NP I'm def gonna brag to all my friends that I knew about him on this website since 2008 .

In seriousness, it's awesome that you're invested in a problem and good luck with it!
TRUEESPORTS || your days as a respected member of team liquid are over
Prev 1 942 943 944 945 946 1032 Next
Please log in or register to reply.
Live Events Refresh
Replay Cast
09:00
WardiTV Mondays #59
LiquipediaDiscussion
[ Submit Event ]
Live Streams
Refresh
StarCraft 2
SortOf 286
StarCraft: Brood War
Britney 49000
Rain 2987
Hyuk 2893
Soma 360
Backho 327
Rush 213
Pusan 117
JulyZerg 53
sSak 31
zelot 14
[ Show more ]
NaDa 12
Noble 11
ZerO 10
Hm[arnc] 8
Terrorterran 7
Dota 2
XaKoH 419
XcaliburYe139
Counter-Strike
fl0m1798
olofmeister680
shoxiejesuss411
oskar63
Super Smash Bros
Mew2King237
Other Games
ceh9502
Happy244
Pyrionflax116
ZerO(Twitch)4
Organizations
StarCraft 2
Blizzard YouTube
StarCraft: Brood War
BSLTrovo
sctven
[ Show 14 non-featured ]
StarCraft 2
• Berry_CruncH257
• LUISG 21
• AfreecaTV YouTube
• intothetv
• Kozan
• IndyKCrew
• LaughNgamezSOOP
• Migwel
• sooper7s
StarCraft: Brood War
• BSLYoutube
• STPLYoutube
• ZZZeroYoutube
League of Legends
• Rush1347
• Stunt515
Upcoming Events
OSC
1h 54m
Kung Fu Cup
2h 24m
Classic vs Solar
herO vs Cure
Reynor vs GuMiho
ByuN vs ShoWTimE
Tenacious Turtle Tussle
13h 24m
The PondCast
1d
RSL Revival
1d
Solar vs Zoun
MaxPax vs Bunny
Kung Fu Cup
1d 2h
WardiTV Korean Royale
1d 2h
PiGosaur Monday
1d 15h
RSL Revival
2 days
Classic vs Creator
Cure vs TriGGeR
Kung Fu Cup
2 days
[ Show More ]
CranKy Ducklings
3 days
RSL Revival
3 days
herO vs Gerald
ByuN vs SHIN
Kung Fu Cup
3 days
IPSL
3 days
ZZZero vs rasowy
Napoleon vs KameZerg
BSL 21
3 days
Tarson vs Julia
Doodle vs OldBoy
eOnzErG vs WolFix
StRyKeR vs Aeternum
Sparkling Tuna Cup
4 days
RSL Revival
4 days
Reynor vs sOs
Maru vs Ryung
Kung Fu Cup
4 days
WardiTV Korean Royale
4 days
BSL 21
4 days
JDConan vs Semih
Dragon vs Dienmax
Tech vs NewOcean
TerrOr vs Artosis
IPSL
4 days
Dewalt vs WolFix
eOnzErG vs Bonyth
Wardi Open
5 days
Monday Night Weeklies
5 days
WardiTV Korean Royale
6 days
Liquipedia Results

Completed

Proleague 2025-11-07
Stellar Fest: Constellation Cup
Eternal Conflict S1

Ongoing

C-Race Season 1
IPSL Winter 2025-26
KCM Race Survival 2025 Season 4
SOOP Univ League 2025
YSL S2
BSL Season 21
BLAST Rivals Fall 2025
IEM Chengdu 2025
PGL Masters Bucharest 2025
Thunderpick World Champ.
CS Asia Championships 2025
ESL Pro League S22
StarSeries Fall 2025
FISSURE Playground #2
BLAST Open Fall 2025
BLAST Open Fall Qual

Upcoming

SLON Tour Season 2
BSL 21 Non-Korean Championship
Acropolis #4
IPSL Spring 2026
HSC XXVIII
RSL Offline Finals
WardiTV 2025
RSL Revival: Season 3
META Madness #9
BLAST Bounty Winter 2026
BLAST Bounty Winter 2026: Closed Qualifier
eXTREMESLAND 2025
ESL Impact League Season 8
SL Budapest Major 2025
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 © 2025 TLnet. All Rights Reserved.