Path: utzoo!attcan!uunet!portal!cup.portal.com!dan-hankins From: dan-hankins@cup.portal.com (Daniel B Hankins) Newsgroups: comp.lang.misc Subject: Re: Clever programming tricks wanted Message-ID: <13522@cup.portal.com> Date: 14 Jan 89 01:15:40 GMT References: <4061@hubcap.UUCP> <47380@yale-celray.yale.UUCP> <24033@amdcad.AMD.COM> Organization: The Portal System (TM) Lines: 13 Re a 'superoptimizer' to optimize a function to the shortest sequence of machine instructions: This is fairly simple. Construct a genetic algorithm in which the survival function is: code length / sum-of-squares distance from real function The genetic string itself would of course be the machine code. This should come up with a very good answer quite rapidly. Dan Hankins