TE
科技回声
首页24小时热榜最新最佳问答展示工作
GitHubTwitter
首页

科技回声

基于 Next.js 构建的科技新闻平台,提供全球科技新闻和讨论内容。

GitHubTwitter

首页

首页最新最佳问答展示工作

资源链接

HackerNews API原版 HackerNewsNext.js

© 2025 科技回声. 版权所有。

Insects and Entropy

62 点作者 jodooshi将近 11 年前

9 条评论

replicant将近 11 年前
I have a similar story to tell. As an undergrad in a course of robotics, we had to program a wheeled robot and all the robots would be place in an environment with obstacles. The robot should avoid crashing with the obstacles and the other robots. Extra points if the robots moved smoothly.<p>Me and my friend implemented a very simple algorithm. All the sensors measured distances to objects, and to every reading we would assign a vector whose direction oppose the one of the sensor and length, inversely &quot;proportional&quot; to the distance. Add all the vectors and move in this direction with a speed proportional to the length.<p>This turned out to work very well to avoid static obstacles and other robots. Most students implemented finite state machines. They crashed quite a lot and their movement was very clumsy, which I suppose was due to the fact that the transition of states was not very smooth.<p>To be fair, our success was a combination of luck and laziness too. If we had more time, we would have implemented a FSM too.
评论 #8206624 未加载
jostmey将近 11 年前
The story is not that far fetched. Decades ago (I think) there was a computer simulated game designed to play out what is called the Prisoner&#x27;s Dilemma hosted by professor Axelrod. And the winning program? It was the simplest one, which the author had named Tit-for-Tat.
评论 #8206153 未加载
wnewman将近 11 年前
I do not deny the importance of the KISS moral of this story. However, there is also an important meta-moral from putting this story in a larger context: what lessons about feasible complexity you draw from your insect-themed programming contests may depend strongly on whether people like the dunkosmiloomump team happen to be participating.<p>(See <a href="https://alliance.seas.upenn.edu/~plclub/cgi-bin/contest/results.php" rel="nofollow">https:&#x2F;&#x2F;alliance.seas.upenn.edu&#x2F;~plclub&#x2F;cgi-bin&#x2F;contest&#x2F;resu...</a> .)<p>(The winning entry was elegant, complicated, and effective. I was Busman Holiday Club in that contest. I was reasonably pleased with my moderately complicated moderately effective entry, but even allowing for small team and shorter lightning-division timescale, the performance of my design falls rather short of theirs, and the junkyard rat design aesthetic of my entry falls rather short of the ballerina-by-day-ninja-by-night polish of that team&#x27;s work.)
superasn将近 11 年前
Same with website design. Sometimes plain old HTML beats the fancy CSS design with lots of moving parts.
zallarak将近 11 年前
<i>The evil that is in the world always comes of ignorance, and good intentions may do as much harm as malevolence, if they lack understanding. On the whole men are more good than bad; that, however, isn’t the real point. But they are more or less ignorant, and it is this that we call vice or virtue; the most incorrigible vice being that of an ignorance which fancies it knows everything and therefore claims for itself the right to kill. The soul of the murderer is blind; and there can be no true goodness nor true love without the utmost clear-sightedness.</i><p>- An excerpt from &quot;Stranger&quot; by Albert Camus
mherrmann将近 11 年前
What does this have to do with entropy?
评论 #8206330 未加载
zxcdw将近 11 年前
Occam&#x27;s razor at work. The simpler the logic, the more likely it is that it does not contain unexpected faults than a system which has more complex logic.
评论 #8206272 未加载
ragesh将近 11 年前
So, the moral of the story is that your code should do one thing and do it well.
评论 #8206152 未加载
评论 #8206353 未加载
akjetma将近 11 年前
That dumb kid&#x27;s name? Albert Einstein.
评论 #8207076 未加载