• Log InLog In
  • Register
Liquid`
Team Liquid Liquipedia
EST 03:23
CET 09:23
KST 17:23
  • 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
Rongyi Cup S3 - RO16 Preview3herO wins SC2 All-Star Invitational10SC2 All-Star Invitational: Tournament Preview5RSL Revival - 2025 Season Finals Preview8RSL Season 3 - Playoffs Preview0
Community News
Weekly Cups (Jan 12-18): herO, MaxPax, Solar win0BSL Season 2025 - Full Overview and Conclusion8Weekly Cups (Jan 5-11): Clem wins big offline, Trigger upsets4$21,000 Rongyi Cup Season 3 announced (Jan 22-Feb 7)20Weekly Cups (Dec 29-Jan 4): Protoss rolls, 2v2 returns7
StarCraft 2
General
Oliveira Would Have Returned If EWC Continued StarCraft 2 not at the Esports World Cup 2026 [Short Story] The Last GSL Stellar Fest "01" Jersey Charity Auction PhD study /w SC2 - help with a survey!
Tourneys
$21,000 Rongyi Cup Season 3 announced (Jan 22-Feb 7) OSC Season 13 World Championship $70 Prize Pool Ladder Legends Academy Weekly Open! SC2 All-Star Invitational: Jan 17-18 Sparkling Tuna Cup - Weekly Open Tournament
Strategy
Simple Questions Simple Answers
Custom Maps
[A] Starcraft Sound Mod
External Content
Mutation # 509 Doomsday Report Mutation # 508 Violent Night Mutation # 507 Well Trained Mutation # 506 Warp Zone
Brood War
General
[ASL21] Potential Map Candidates Fantasy's Q&A video BGH Auto Balance -> http://bghmmr.eu/ BW General Discussion Gypsy to Korea
Tourneys
[Megathread] Daily Proleagues Azhi's Colosseum - Season 2 Small VOD Thread 2.0 [BSL21] Non-Korean Championship - Starts Jan 10
Strategy
Current Meta Simple Questions, Simple Answers Soma's 9 hatch build from ASL Game 2 Game Theory for Starcraft
Other Games
General Games
Nintendo Switch Thread Battle Aces/David Kim RTS Megathread Stormgate/Frost Giant Megathread Beyond All Reason Awesome Games Done Quick 2026!
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
Vanilla Mini Mafia Mafia Game Mode Feedback/Ideas
Community
General
US Politics Mega-thread Russo-Ukrainian War Thread Canadian Politics Mega-thread NASA and the Private Sector Things Aren’t Peaceful in Palestine
Fan Clubs
The herO Fan Club! The IdrA Fan Club
Media & Entertainment
Anime Discussion Thread [Manga] One Piece
Sports
2024 - 2026 Football Thread
World Cup 2022
Tech Support
Computer Build, Upgrade & Buying Resource Thread
TL Community
The Automated Ban List
Blogs
How Esports Advertising Shap…
TrAiDoS
My 2025 Magic: The Gathering…
DARKING
Life Update and thoughts.
FuDDx
How do archons sleep?
8882
James Bond movies ranking - pa…
Topin
Customize Sidebar...

Website Feedback

Closed Threads



Active: 1609 users

The Big Programming Thread - Page 996

Forum Index > General Forum
Post a Reply
Prev 1 994 995 996 997 998 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.
Deleted User 3420
Profile Blog Joined May 2003
24492 Posts
Last Edited: 2019-02-14 03:13:27
February 14 2019 01:26 GMT
#19901
On February 14 2019 04:29 enigmaticcam wrote:
Anyone here a regular on Project Euler? Would like to add as friend so I can occasionally ask for advice.


Nope but it looks really fun! I don't have the most free time in the world but I am gonna try to squeeze in a few of the problems for fun.

May not be on your level but I'd be glad to see if you want to bounce some things off me.


Congratulations, the answer you gave to problem 1 is correct.

You are the 824679th person to have solved this problem.

This problem had a difficulty rating of 5%. The highest difficulty rating you had previously solved was 0%.
This is a new record. Well done!


like a bawss


prroooobably gonna skip ahead a few difficulties now lol


edit2: oh shit i skipped to a 20% difficulty problem. thought I had it and then I realized that I was supposed to calculate from 1 to 4^i, not 4*i. not completely easy mode it seems


edit3: shiiiiiiit i don't actually know how to do this. well my computer can solve it but it's gonna take probably like a week of running, LOL. clearly some sort of math trick involved here... hmmm coming up with some ideas now
if anyone wants to know which one i am doing:

+ Show Spoiler +

For every positive number n we define the function streak(n)=k as the smallest positive integer k such that n+k is not divisible by k+1.
E.g:
13 is divisible by 1
14 is divisible by 2
15 is divisible by 3
16 is divisible by 4
17 is NOT divisible by 5
So streak(13)=4.
Similarly:
120 is divisible by 1
121 is NOT divisible by 2
So streak(120)=1.

Define P(s,N) to be the number of integers n, 1<n<N, for which streak(n)=s.
So P(3,14)=1 and P(6,10^6)=14286.

Find the sum, as i ranges from 1 to 31, of P(i,4^i).



edit4: this is hard but for tonight im obsessed

edit5: ok i figured it out there was a math trick. this site for math people lol
enigmaticcam
Profile Blog Joined October 2010
United States280 Posts
Last Edited: 2019-02-14 02:57:42
February 14 2019 02:53 GMT
#19902
Yeah, sometimes those difficulty percentages can be a bit misleading, depending on what you already know. One time I managed to solve a 70% problem in 15 minutes, and then there’s this 15% problem that takes me weeks to solve.

I think I remember seeing that one before. I haven’t solved it yet, but maybe I’ll give it a try tomorrow.

My friend code is 508144_4VIozmVBgq6rAzXryXF9r8hFh3xtkaaw, if anyone wants to add me. Pm or post yours and I’ll add you.

Edit: many times I’ve been able to solve problems by simply creating a brute force algorithm with a very low threshold, and just looking for patterns. Sometimes a pattern will be really obvious after just a few low level answers.
Deleted User 3420
Profile Blog Joined May 2003
24492 Posts
February 14 2019 02:58 GMT
#19903
mine is 1457502_u7RGmPGr1WXWeLl5xRpcfZsRvgwckVns
enigmaticcam
Profile Blog Joined October 2010
United States280 Posts
Last Edited: 2019-02-14 16:30:04
February 14 2019 03:21 GMT
#19904
Dang, nice job. I might poke your head about that one.

Edit: Nevermind, I got it too! After playing around in excel I was finally able to find an exploitable pattern.
Deleted User 3420
Profile Blog Joined May 2003
24492 Posts
Last Edited: 2019-02-14 18:41:11
February 14 2019 17:57 GMT
#19905
missed a question on a "background knowledge quiz" for one of my classes

doesn't really seem fair... but I want a second opinion before complaining

the question is:

edit: I have to edit the question out so that it doesn't show up if another student does a google search for the question
Excludos
Profile Blog Joined April 2010
Norway8231 Posts
February 14 2019 18:13 GMT
#19906
Answer: Big O is a ridiculous concept and no one actually uses it.
Deleted User 3420
Profile Blog Joined May 2003
24492 Posts
February 14 2019 18:19 GMT
#19907
okay but that's not helpful I need a second opinion on the actual question lol

I clearly think this is a stupid question, or if it's not clear then yes I think this is a dumb question
Acrofales
Profile Joined August 2010
Spain18198 Posts
February 14 2019 18:24 GMT
#19908
No, the only correct answer is "this question is retarded".
Deleted User 3420
Profile Blog Joined May 2003
24492 Posts
Last Edited: 2019-02-14 18:29:04
February 14 2019 18:26 GMT
#19909
im not allowed to select that, i have to select a or b or c or d within the time limit or else i lose points


but since you guys aren't playing, I will just say, I selected C and got it wrong (oops, they must have wanted D)

my justification is that "very large problems" is clearly just an opinion and I have no choice but to guess what that means, but clearly the greatest jump in complexity is between n^2 and 2^n, and furthermore there are numerous algorithms that require n^2 (or actually a little more) to complete, such as matrix multiplication, shortest paths, graph edge betweenness, etc, and they have no alternatives
Acrofales
Profile Joined August 2010
Spain18198 Posts
February 14 2019 18:29 GMT
#19910
Yup. As I said, the correct answer is "this question is retarded".

Btw, if I asked that question in an exam and a student came up to me with your justification, I'd issue a rectification, scrap that question and acknowledge the question was retarded.
Deleted User 3420
Profile Blog Joined May 2003
24492 Posts
February 14 2019 18:31 GMT
#19911
okay cool, you gave me what I needed to bother emailing the professor

and if they give me shit i'll tell them acrofales on teamliquid.net says im right
Acrofales
Profile Joined August 2010
Spain18198 Posts
February 14 2019 18:42 GMT
#19912
On February 15 2019 03:31 travis wrote:
okay cool, you gave me what I needed to bother emailing the professor

and if they give me shit i'll tell them acrofales on teamliquid.net says im right

Well, I wouldn't say O(n^2) is more right than O(n log n). I'd say they are both potential answers, but that the question is horribly underspecified, and moreover, when faced with "very large" data and real-world problems, nobody worries about the big-O complexity of the algorithm other than in a very abstract way. People don't look at it and say. Oh, that algorithm is O(n^2), it'll never work. They'll just benchmark it. Moreover "practical" is such a stupid metric. In some problems, it's completely fine to have your supercomputer crunch numbers for weeks on end, and others need a solution in real-time. They obviously require completely different approaches.
solidbebe
Profile Blog Joined November 2010
Netherlands4921 Posts
February 14 2019 19:43 GMT
#19913
On February 15 2019 03:13 Excludos wrote:
Answer: Big O is a ridiculous concept and no one actually uses it.

I mean... academics use it. It's a really useful concept, if you understand it and know how/when to apply it.
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
Excludos
Profile Blog Joined April 2010
Norway8231 Posts
February 14 2019 20:46 GMT
#19914
On February 15 2019 04:43 solidbebe wrote:
Show nested quote +
On February 15 2019 03:13 Excludos wrote:
Answer: Big O is a ridiculous concept and no one actually uses it.

I mean... academics use it. It's a really useful concept, if you understand it and know how/when to apply it.


Acrofales described above way better than I ever could. It's a theoretical concept which doesn't translate well into real life use. It's really useful on paper only
solidbebe
Profile Blog Joined November 2010
Netherlands4921 Posts
Last Edited: 2019-02-15 07:59:49
February 15 2019 07:56 GMT
#19915
On February 15 2019 05:46 Excludos wrote:
Show nested quote +
On February 15 2019 04:43 solidbebe wrote:
On February 15 2019 03:13 Excludos wrote:
Answer: Big O is a ridiculous concept and no one actually uses it.

I mean... academics use it. It's a really useful concept, if you understand it and know how/when to apply it.


Acrofales described above way better than I ever could. It's a theoretical concept which doesn't translate well into real life use. It's really useful on paper only

Im not really sure what it means if something is useful 'on paper only'. What Acrofales describes looks like a perspective from industry. I can imagine big O being of very limited use in industry as you will rarely be developing new algorithms for anything, rather than just using something established. So it's probably correct to state that nobody actually uses it... in industry. To state that big O is a ridiculous concept however is a ridiculous statement. It is quite an important concept within the field of algorithmics, where people actually use it.

*Edit before someone hits me with a 'academics also benchmark their algorithms', yes indeed. Big O is not the only thing you should use to describe an algorithm's performance. That doesn't mean it isn't useful.
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
Blitzkrieg0
Profile Blog Joined August 2010
United States13132 Posts
February 15 2019 15:30 GMT
#19916
On February 15 2019 16:56 solidbebe wrote:
Show nested quote +
On February 15 2019 05:46 Excludos wrote:
On February 15 2019 04:43 solidbebe wrote:
On February 15 2019 03:13 Excludos wrote:
Answer: Big O is a ridiculous concept and no one actually uses it.

I mean... academics use it. It's a really useful concept, if you understand it and know how/when to apply it.


Acrofales described above way better than I ever could. It's a theoretical concept which doesn't translate well into real life use. It's really useful on paper only

Im not really sure what it means if something is useful 'on paper only'. What Acrofales describes looks like a perspective from industry. I can imagine big O being of very limited use in industry as you will rarely be developing new algorithms for anything, rather than just using something established. So it's probably correct to state that nobody actually uses it... in industry. To state that big O is a ridiculous concept however is a ridiculous statement. It is quite an important concept within the field of algorithmics, where people actually use it.

*Edit before someone hits me with a 'academics also benchmark their algorithms', yes indeed. Big O is not the only thing you should use to describe an algorithm's performance. That doesn't mean it isn't useful.


I'd say it is overemphasized as a concept that will be useful. You spend a ton of time learning and talking about it, but I've never seen it outside of school except in interviews. We know that academics teach it and it is used in academia. The question I would pose is:
Is academia out of touch with industry and emphasizing a concept that most students will never use knowingly or unknowingly?
I'll always be your shadow and veil your eyes from states of ain soph aur.
JimmyJRaynor
Profile Blog Joined April 2010
Canada17206 Posts
Last Edited: 2019-02-15 15:44:55
February 15 2019 15:43 GMT
#19917
On February 15 2019 16:56 solidbebe wrote:
I can imagine big O being of very limited use in industry as you will rarely be developing new algorithms for anything, rather than just using something established.

I`ve developed three customer handicapping algorithms. The algorithm assigns a value to each consumer in marketing lists that an org wishes to "rent" for 1 time usage. This helps the org decide whether or not to "rent" a marketing list. I've never used Big O. Big O is theoretical... for theorists. Its a layer of abstraction above a bunch of other layers of abstraction. I will say that Big O makes possible some entertaining mental gymnastics.
On February 15 2019 16:56 solidbebe wrote:rather than just using something established. So it's probably correct to state that nobody actually uses it... in industry. To state that big O is a ridiculous concept however is a ridiculous statement. It is quite an important concept within the field of algorithmics, where people actually use it.

how is it used within Algorithmics ?
Ray Kassar To David Crane : "you're no more important to Atari than the factory workers assembling the cartridges"
solidbebe
Profile Blog Joined November 2010
Netherlands4921 Posts
February 15 2019 17:15 GMT
#19918
On February 16 2019 00:30 Blitzkrieg0 wrote:
Show nested quote +
On February 15 2019 16:56 solidbebe wrote:
On February 15 2019 05:46 Excludos wrote:
On February 15 2019 04:43 solidbebe wrote:
On February 15 2019 03:13 Excludos wrote:
Answer: Big O is a ridiculous concept and no one actually uses it.

I mean... academics use it. It's a really useful concept, if you understand it and know how/when to apply it.


Acrofales described above way better than I ever could. It's a theoretical concept which doesn't translate well into real life use. It's really useful on paper only

Im not really sure what it means if something is useful 'on paper only'. What Acrofales describes looks like a perspective from industry. I can imagine big O being of very limited use in industry as you will rarely be developing new algorithms for anything, rather than just using something established. So it's probably correct to state that nobody actually uses it... in industry. To state that big O is a ridiculous concept however is a ridiculous statement. It is quite an important concept within the field of algorithmics, where people actually use it.

*Edit before someone hits me with a 'academics also benchmark their algorithms', yes indeed. Big O is not the only thing you should use to describe an algorithm's performance. That doesn't mean it isn't useful.


I'd say it is overemphasized as a concept that will be useful. You spend a ton of time learning and talking about it, but I've never seen it outside of school except in interviews. We know that academics teach it and it is used in academia. The question I would pose is:
Is academia out of touch with industry and emphasizing a concept that most students will never use knowingly or unknowingly?


I think the notion that a university degree should prepare you for industry is out of touch. A bachelor + masters in computer science teaches you how to be an academic/scientist/researcher in the field of computer science. It does not teach you how to be a developer or work for a company, at least, that is not the main goal. There are other degrees or programmes that do that (at least in the Netherlands). I'm not sure how you were taught about Big O, maybe it was emphasized too much I don't know. However, Big O is a useful concept that is widely used in the field of computer science, particularly algorithmics, cryptography, distributed systems... at least, that's where I've seen it used personally. My experience with industry is very limited but I agree it is probably not a very useful concept for a developer most of the time. The ability to recognize it if you are trying to generally solve the traveling salesman problem for your business solution, and the knowledge that this is not practically doable for large enough problems, can come in very handy though.

On February 16 2019 00:43 JimmyJRaynor wrote:
Show nested quote +
On February 15 2019 16:56 solidbebe wrote:
I can imagine big O being of very limited use in industry as you will rarely be developing new algorithms for anything, rather than just using something established.

I`ve developed three customer handicapping algorithms. The algorithm assigns a value to each consumer in marketing lists that an org wishes to "rent" for 1 time usage. This helps the org decide whether or not to "rent" a marketing list. I've never used Big O. Big O is theoretical... for theorists. Its a layer of abstraction above a bunch of other layers of abstraction. I will say that Big O makes possible some entertaining mental gymnastics.
Show nested quote +
On February 15 2019 16:56 solidbebe wrote:rather than just using something established. So it's probably correct to state that nobody actually uses it... in industry. To state that big O is a ridiculous concept however is a ridiculous statement. It is quite an important concept within the field of algorithmics, where people actually use it.

how is it used within Algorithmics ?


I'm not really sure what your algorithm really does from your description, but yeah: it is perfectly possible to implement useful solutions without explicitly using the concept of Big O. Like I said, most of the time a developer probably doesn't need to even really consider the efficiency of their solution anyways.

I'm not sure what you mean by asking how it's used within algorithmics. If you've come up with a new algorithm and are publishing a paper about it, it is common to provide analysis of its runtime complexity through the Big O, Big Theta, Big Omega, benchmarks, and what have you. These are all properties of algorithms that are very useful to know about. Yes Big O is a theoretical concept, what's wrong with that?

To use a personal example: a while back I was parsing a dataset of about 300k records. For each unique IP address I needed to store relevant information, but multiple records could correspond to the same IP address. After implementing a dumb solution in 5 minutes, where I first made a pass to collect each unique IP, and then for each unique IP collects its corresponding information in another pass, it took more than a minute to run before I stopped it. I realized I had just implemented a solution of which the runtime scaled in the square of the input, when I could very simply just do it in a single pass and get a linear solution. I didn't explicitly think of the Big O notation, but I did basically use it.
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
spinesheath
Profile Blog Joined June 2009
Germany8679 Posts
February 15 2019 17:21 GMT
#19919
I use big O for when I see someone implement something that should clearly be O(n) in O(n^2) without any better constant factors or anything. Which happens way too often. Just today I came across 2 more such cases...

I have seen a dictionary lookup implemented in O(n). Really. And that was basically just a wrapper for a proper .Net dictionary.
If you have a good reason to disagree with the above, please tell me. Thank you.
Blitzkrieg0
Profile Blog Joined August 2010
United States13132 Posts
Last Edited: 2019-02-15 17:59:23
February 15 2019 17:53 GMT
#19920
I more meant in the context of the question Travis posted, which has now been deleted so probably harder to discuss. Most of the BigX questions I did in school were based around calculating an exact value whereas in industry you only really care about the simplest questions, is this faster or does this scale if things get big?

It also neglects this business side of things where delivering something if often more important than it being efficient. Writing something inefficiently that runs in the background exactly once isn't going to matter and spending a week writing it efficiently isn't the best solution.
I'll always be your shadow and veil your eyes from states of ain soph aur.
Prev 1 994 995 996 997 998 1032 Next
Please log in or register to reply.
Live Events Refresh
Replay Cast
00:00
Rongyi Cup S3 - Group A
Liquipedia
[ Submit Event ]
Live Streams
Refresh
StarCraft 2
SortOf 134
FoxeR 72
StarCraft: Brood War
Rain 10038
Sea 3673
Hyuk 822
Jaedong 546
Larva 353
Hm[arnc] 262
Zeus 223
EffOrt 67
Shinee 60
Hyun 54
[ Show more ]
Backho 53
Shuttle 46
Noble 22
NotJumperer 22
Bale 22
ZergMaN 20
Sharp 11
Dota 2
NeuroSwarm159
XcaliburYe126
League of Legends
JimRising 698
Super Smash Bros
Mew2King85
Other Games
WinterStarcraft502
C9.Mang0334
Happy253
XaKoH 170
mouzStarbuck127
RuFF_SC2100
Hui .93
Organizations
Other Games
gamesdonequick1186
StarCraft: Brood War
UltimateBattle 29
StarCraft 2
Blizzard YouTube
StarCraft: Brood War
BSLTrovo
sctven
[ Show 15 non-featured ]
StarCraft 2
• StrangeGG 88
• Sammyuel 32
• AfreecaTV YouTube
• intothetv
• Kozan
• IndyKCrew
• LaughNgamezSOOP
• Laughngamez YouTube
• Migwel
• sooper7s
StarCraft: Brood War
• BSLYoutube
• STPLYoutube
• ZZZeroYoutube
League of Legends
• Jankos870
• Stunt513
Upcoming Events
RongYI Cup
2h 37m
SHIN vs Creator
Classic vs Percival
OSC
4h 37m
BSL 21
6h 37m
QiaoGege vs Sziky
Dewalt vs Bonyth
Mihu vs TBD
RongYI Cup
1d 2h
Maru vs Cyan
Solar vs Krystianer
uThermal 2v2 Circuit
1d 3h
BSL 21
1d 6h
Wardi Open
2 days
Monday Night Weeklies
2 days
OSC
2 days
WardiTV Invitational
3 days
[ Show More ]
WardiTV Invitational
4 days
The PondCast
5 days
Korean StarCraft League
6 days
Liquipedia Results

Completed

Escore Tournament S1: W5
OSC Championship Season 13
NA Kuram Kup

Ongoing

C-Race Season 1
BSL 21 Non-Korean Championship
CSL 2025 WINTER (S19)
KCM Race Survival 2026 Season 1
Rongyi Cup S3
Underdog Cup #3
Tektek Cup #1
BLAST Bounty Winter 2026
BLAST Bounty Winter Qual
eXTREMESLAND 2025
SL Budapest Major 2025
ESL Impact League Season 8
BLAST Rivals Fall 2025

Upcoming

Acropolis #4 - TS4
Escore Tournament S1: W6
Escore Tournament S1: W7
Acropolis #4
IPSL Spring 2026
uThermal 2v2 2026 Main Event
Bellum Gens Elite Stara Zagora 2026
HSC XXVIII
Nations Cup 2026
PGL Bucharest 2026
Stake Ranked Episode 1
BLAST Open Spring 2026
ESL Pro League Season 23
ESL Pro League Season 23
PGL Cluj-Napoca 2026
IEM Kraków 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.