Article View: comp.lang.java.programmer
Article #494Genetic/Evolutionary Algorithms (Re: How to improve my sex-appeal with Java-programs ???)
From: Daniel Dyer
Date: Mon, 28 Nov 2005 21:19
Date: Mon, 28 Nov 2005 21:19
39 lines
3361 bytes
3361 bytes
On Mon, 28 Nov 2005 20:53:40 -0000, Oliver Wong <owong@castortech.com> wrote: > What you'll want to do is to programmatically enter in every strategy > you've tried at hooking up with a girl. You'll need to have some metric > for > measuring success, and enter those in for each strategy as well. Then run > one step of simulation (i.e. one generation) so that the strategies will > have mutated slightly, with the strategies that have performed the best > mutating the least (thus, on average, your strategies have become > "better"). That's not quite how it works. All strategies are equally eligible for mutation, regardless of how good they are, and there's every chance the next generation will be worse on average than the previous one. Eventually however, if your selection strategy and fitness function are good, the quality of strategies in your population should improve and will tend towards an optimum (there are no guarantees though). > The advantages of genetic programming are that it's a viable tool for > when you have no idea where to start looking for a good strategy. > > The disadvantages are that typically it takes a very long before the > best strategy "evolves" from your initial pool of random strategies. Genetic programming is just one application of genetic algorithms (or more generally, evolutionary algorithms). There are two pre-requisites. You need a way of encoding a potential solution and you need a way to rank partial solutions. The approach is only really applicable in situations where a good approximate solution is acceptable as it may never find the optimal solution. It can be very slow but is typically orders of magnitude faster than a brute force search of the solution space for complex problems. Dan. -- Daniel Dyer http://www.dandyer.co.uk
Technical Details
Message-ID:
<op.s0yyt3kqgnpvuy@cgl0517.chaucer.co.uk>Path:
arc1-ca.pugleaf.net!g2news1.google.com!news4.google.com!border1.nntp.dca.giganews.com!nntp.giganews.com!local01.nntp.dca.giganews.com!nntp.pipex.net!news.pipex.net.POSTED!not-for-mailReferences:
<1132910259.755488.102770@g49g2000cwa.googlegroups.com> <o7Kif.179069$Io.71590@clgrps13>Show Full Headers
Complete Article Headers
X-Google-Thread: 10a146,d4b477ed217848e9 X-Google-Thread: 108147,d4b477ed217848e9 X-Google-Attributes: gid10a146,gid108147,public X-Google-Language: ENGLISH,ASCII-7-bit Path: arc1-ca.pugleaf.net!g2news1.google.com!news4.google.com!border1.nntp.dca.giganews.com!nntp.giganews.com!local01.nntp.dca.giganews.com!nntp.pipex.net!news.pipex.net.POSTED!not-for-mail NNTP-Posting-Date: Mon, 28 Nov 2005 15:19:08 -0600 Date: Mon, 28 Nov 2005 21:19:05 -0000 Subject: Genetic/Evolutionary Algorithms (Re: How to improve my sex-appeal with Java-programs ???) Newsgroups: comp.lang.java.programmer,brasil.unix References: <1132910259.755488.102770@g49g2000cwa.googlegroups.com> <o7Kif.179069$Io.71590@clgrps13> From: "Daniel Dyer" <dan@dannospamformepleasedyer.co.uk> Content-Type: text/plain; format=flowed; delsp=yes; charset=iso-8859-15 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Message-ID: <op.s0yyt3kqgnpvuy@cgl0517.chaucer.co.uk> User-Agent: Opera M2/8.50 (Win32, build 7700) Lines: 39 NNTP-Posting-Host: 81.178.248.135 X-Trace: sv3-t2Zl+1YC30j5urXHLUnBeRoW833f3xdGa2GARI0H77KfdZ9ICIJFCXobNGOLoVqlmO2ZPNV8Aq7FusY!m+STtcdjpVrRB/cuCtGdH8f34Pr2/gfvwS7KV7U6Gk+WG4MtNxMD39S2ofciYRLiEhJdaVoth4m3!FDfl7Ls6E/3vEhNMuYdVCFc= X-Complaints-To: abuse@dsl.pipex.net X-DMCA-Complaints-To: abuse@dsl.pipex.net X-Abuse-and-DMCA-Info: Please be sure to forward a copy of ALL headers X-Abuse-and-DMCA-Info: Otherwise we will be unable to process your complaint properly X-Postfilter: 1.3.32