TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

Lessons from working 6 months on a math problem and failing

188 pointsby alexandrosover 11 years ago

13 comments

scott_sover 11 years ago
I want to call out: <i>But sometimes the opposite happened. Glancing through the results of an algorithmic run showed a pattern I wasn&#x27;t aware of. Taking that back to paper allowed me to make further theoretical breakthroughs that sped up runtime by additional orders of magnitude.</i><p>I worked with some mathematicians on an online load balancing problem, and we were trying to model the behavior of our connections. I did not have the mathematical chops to come up with the ideas for the models. But I was running the experiments and diving into the data and figuring out where and why our models broke, so I could reason about the behavior we were trying to model in the same way that I can walk around my apartment with my eyes closed.<p>Having this level of intuition of the behavior we were trying to model was invaluable during discussions. I may not have been able to come up with the mathematical models, or even understand them completely from first principles, but once they were explained to me, I could give instant feedback on how well it might work based on my understanding of the data.<p>Short version: know your data.
评论 #7032706 未加载
mcguireover 11 years ago
Excellent write-up!<p>I don&#x27;t think enough people appreciate (or understand) your point 4. I am fairly good at algorithmic optimizations and pretty good at your implementation optimizations, but I do not have the math to do much mathematical optimizations, so spending any time on these kinds of problems gives me a visceral understanding of your point 8.<p>But I&#x27;ve talked to too many people who don&#x27;t understand that such problems exist, and therefore don&#x27;t see the point of <i>any</i> optimization (and then wonder why others consider their products to be hideous monstrosities), or believe that micro-optimizations or algorithms are the best you can do. In reality, all three are closely tied together and, in fact, applicable to almost any problem.<p>Your points 6 and 7 could be elaborated more. Or at least stamped on the foreheads of some educators of my acquaintance. One of the things I learned from what math education I have had is that you won&#x27;t really understand something without seriously using it.<p>I hope that this was actually part of your PhD research, or if not that it didn&#x27;t delay you too much. And if you&#x27;re out in the &quot;real world&quot;, all you have to do to succeed is to forget you ever heard of your point 10.
评论 #7031977 未加载
fernlyover 11 years ago
OK, now you&#x27;ve set aside that problem, here&#x27;s another: <a href="http://en.wikipedia.org/wiki/Golomb_ruler" rel="nofollow">http:&#x2F;&#x2F;en.wikipedia.org&#x2F;wiki&#x2F;Golomb_ruler</a> Quite similar in its maddening simplicity.
pmiller2over 11 years ago
This is what graduate school felt like for me (when it wasn&#x27;t crushing my soul). :-)
评论 #7031503 未加载
评论 #7031827 未加载
TN1ckover 11 years ago
I was bored, so I wrote a short visualisation of the solution in d3: <a href="http://jsfiddle.net/vdNnJ/" rel="nofollow">http:&#x2F;&#x2F;jsfiddle.net&#x2F;vdNnJ&#x2F;</a>
评论 #7032764 未加载
Houshalterover 11 years ago
&gt;As I started writing code for this problem, I found out I could work on it for hours on end without distraction, quite unusual for me. I chalk this up to a tight feedback loop. Have an idea, implement it, get back a number. Think of ways to improve the number, start the cycle all over again. This is a cycle I would run dozens of times a day. Obviously more fundamental ideas would take more time to see the fruits of, and that&#x27;s when I actually lost focus, but when the brain has been rewarded so richly with small cycles, it can afford to go a bit longer without reinforcement. This tells me that A&#x2F;B testing or a similar numeric optimisation area would be quite motivating to me and I&#x27;ve made a mental note to go into this in the future.<p>I&#x27;ve had this experience before. I have a severe problem of not being able to focus on anything, and it feels great to be working on a problem like this. I&#x27;d love to find a problem like that again.
bjcyover 11 years ago
For more stuff like this, check out Love and Math (<a href="http://www.amazon.com/gp/product/0465050743/ref=as_li_ss_tl?ie=UTF8&amp;camp=1789&amp;creative=390957&amp;creativeASIN=0465050743&amp;linkCode=as2&amp;tag=benryyipcom-20" rel="nofollow">http:&#x2F;&#x2F;www.amazon.com&#x2F;gp&#x2F;product&#x2F;0465050743&#x2F;ref=as_li_ss_tl?...</a> , disclaimer: affiliate link). It&#x27;s a great book I&#x27;m just in the middle of that talks a little about doing maths and the mindset and heart behind it. Some of the OP&#x27;s observations are echoed in the book and it&#x27;s nice to have the OP and the author of Love and Math give words to my own obsession to problems I&#x27;ve tackled and failed to solve.
ThePawnBreakover 11 years ago
&quot;Of course, I also cheated. I realised that my code spent a huge amount of time counting the set bits on a byte. I could implement that on my side, or get a CPU that implements that as a single instruction.&quot;<p>Why not use a lookup table to memoize the results? There are only 256 possible cases for a single byte. Or is this still considerably slower than a single processor instruction on the i7?
评论 #7041781 未加载
alexkusover 11 years ago
Gah. Must...resist...getting...sucked...in...
评论 #7031424 未加载
yetanotherphdover 11 years ago
Too bad these problems were solved: they are perfect candidates for automatic rewards using bitcoin&#x27;s scripting language (see <a href="https://news.ycombinator.com/item?id=6997020" rel="nofollow">https:&#x2F;&#x2F;news.ycombinator.com&#x2F;item?id=6997020</a>)
jberrymanover 11 years ago
Haha before I clicked I knew it would be that goddamn 17x17 problem. Hadn&#x27;t heard that someone had solved it, but it will be interesting to read how they did it.
评论 #7036129 未加载
LearnYouALispover 11 years ago
Ah, the coloring 17x17 etc. thingy.
leoplctover 11 years ago
I got the solutions in 5 minutes. I&#x27;ll email it to you