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.

Introduction to Genetic Algorithms

261 pointsby ReginaDeiPiratialmost 6 years ago

11 comments

privongalmost 6 years ago
One of the neater implementations&#x2F;uses of genetic algorithms that I have seen was the design of a spacecraft antenna.<p>This is what the GA came with up for the design given the constraints: <a href="https:&#x2F;&#x2F;en.wikipedia.org&#x2F;wiki&#x2F;Genetic_algorithm#&#x2F;media&#x2F;File%3ASt_5-xband-antenna.jpg" rel="nofollow">https:&#x2F;&#x2F;en.wikipedia.org&#x2F;wiki&#x2F;Genetic_algorithm#&#x2F;media&#x2F;File%...</a><p>And this paper describes the process: <a href="http:&#x2F;&#x2F;ti.arc.nasa.gov&#x2F;m&#x2F;pub-archive&#x2F;1244h&#x2F;1244%20(Hornby).pdf" rel="nofollow">http:&#x2F;&#x2F;ti.arc.nasa.gov&#x2F;m&#x2F;pub-archive&#x2F;1244h&#x2F;1244%20(Hornby).p...</a>
评论 #20120757 未加载
评论 #20120636 未加载
wwwestonalmost 6 years ago
Took a GA class during my undergrad years -- actually went to a neighboring university to do it because mine didn&#x27;t offer it -- and it informed a research project I got a tiny grant for. One of the things my prof noted was that many people looooved GAs as a research topic because, at least at the time, a good chunk of related work was in coming up with ideas for fitness functions and examining them and that&#x27;s a vein a reasonably creative person could mine for publishing for a long time.
评论 #20123001 未加载
snrjialmost 6 years ago
When I was in college I was mystified by genetic algorithms, without knowing much about them. After taking 2 subjects on the matter and reading some books, I came to the conclusion that apart from being inherently inefficient (that&#x27;s what you apply them when you have no alternative), they are actually outperformed by hill climbing (which can be seen as a particular case of the former if population = 1). Also, the crossover operator seems to make more harm than good, and it&#x27;s not fully understood it&#x27;s usefulness in nature, although there are some theories (this last point is taken from Pedro Domingos book).
评论 #20123361 未加载
评论 #20122999 未加载
评论 #20123849 未加载
评论 #20123172 未加载
benrbrayalmost 6 years ago
Out of curiosity, does anyone know of examples where genetic algorithms are the &quot;right choice&quot;?<p>I thought they were really nifty when I first heard of them, but thinking of them as an optimization procedure, they don&#x27;t really stand up in my experience to basic gradient descent methods. Sure, you can e.g. train a neural network with genetic algorithms, but why would you?<p>I&#x27;d love to be proven wrong though :)
评论 #20121520 未加载
评论 #20121205 未加载
评论 #20121008 未加载
评论 #20120564 未加载
评论 #20120613 未加载
评论 #20120864 未加载
评论 #20120673 未加载
评论 #20122646 未加载
评论 #20121023 未加载
评论 #20120574 未加载
评论 #20125171 未加载
评论 #20120608 未加载
评论 #20121290 未加载
closetCSalmost 6 years ago
This is probably extremely cynical, but does floydhub have a vested interest in promoting genetic algorithms because they can take long times to train, especially with neural networks hyper parameters as the search space. These kind of beefy, complex training processes would be fantastic for its business.
评论 #20121629 未加载
joe_the_useralmost 6 years ago
Hmm, so what is the theory of the mutation function? Is it just determined ad-hoc from looking the problem and throwing some standard examples at it?<p>It seems like you could implement effectively any function with a complicated enough combination of fitness, selection and mutation functions but without a theory of which to use, progress would be a bit hard.
评论 #20120999 未加载
评论 #20120187 未加载
jfzalmost 6 years ago
I&#x27;ve been working on a Genetic Algorithm&#x2F;Evolutionary Computing framework in Scala, using network-parallelism to solve optimization problems fast. If you&#x27;re interested, check it out at <a href="https:&#x2F;&#x2F;github.com&#x2F;evvo-labs&#x2F;evvo" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;evvo-labs&#x2F;evvo</a>
hazeiialmost 6 years ago
An interesting case is where a human does the selection; this was pretty well covered in Dawkin&#x27;s &#x27;The Blind Watchmaker&#x27; [0] with his program for generating biomorphs. Some nice speculation in there too:<p>&#x27;Dawkins speculated that the unnatural selection role played by the user in this program could be replaced by a more natural agent if, for example, colourful biomorphs could be selected by butterflies or other insects, via a touch-sensitive display set up in a garden.&#x27; (from the wikipedia article).<p>[0] <a href="https:&#x2F;&#x2F;en.wikipedia.org&#x2F;wiki&#x2F;The_Blind_Watchmaker" rel="nofollow">https:&#x2F;&#x2F;en.wikipedia.org&#x2F;wiki&#x2F;The_Blind_Watchmaker</a>
GordonSalmost 6 years ago
A lot of the time there are better solutions that a GA, but something I&#x27;ve always liked about them is how easy they are to understand, even for AI noobs.<p>I guess it&#x27;s because of the similarities to the evolution of life, but also because they&#x27;re just quite simple.
jacques_chesteralmost 6 years ago
GAs are a lot of fun, but a lot of the time they are very time-consuming in the case of fairly straightforward optimisation problems. Other iterative searches like simulated annealing or just plain ol&#x27; dumb hill climbing is a lot faster most of the time.
评论 #20121518 未加载
评论 #20120894 未加载
评论 #20120870 未加载
philipkielyalmost 6 years ago
Hi, author here!<p>I’m really excited by the conversation this has generated and I’m happy to answer any questions.
评论 #20123061 未加载
评论 #20123139 未加载