From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00 autolearn=ham autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,cee6b97ef93f6732 X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2001-07-22 18:25:33 PST Path: archiver1.google.com!newsfeed.google.com!newsfeed.stanford.edu!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!cpk-news-hub1.bbnplanet.com!cambridge1-snf1.gtei.net!news.gtei.net!inmet!not-for-mail From: Tucker Taft Newsgroups: comp.lang.ada Subject: Re: Programming Contest Date: Sun, 22 Jul 2001 21:26:38 -0400 Organization: AverStar Message-ID: <3B5B7D4F.BCACD2BC@avercom.net> References: <3B5AFD7F.9C7D24D1@PublicPropertySoftware.com> NNTP-Posting-Host: 209.6.249.6 Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii; x-mac-type="54455854"; x-mac-creator="4D4F5353" Content-Transfer-Encoding: 7bit X-Trace: inmet2.burl.averstar.com 995851532 8584 209.6.249.6 (23 Jul 2001 01:25:32 GMT) X-Complaints-To: usenet@inmet2.burl.averstar.com NNTP-Posting-Date: 23 Jul 2001 01:25:32 GMT X-Mailer: Mozilla 4.75C-CCK-MCD {C-UDP; EBM-APPLE} (Macintosh; U; PPC) X-Accept-Language: en Xref: archiver1.google.com comp.lang.ada:10433 Date: 2001-07-23T01:25:32+00:00 List-Id: Al Christians wrote: > > It looks to me like this is a problem of searching a huge search > space for a good solution. Anyone have any idea if there is any > non-brute-force way to construct or find the solutions? This looks like a problem ripe for "dynamic programming" solution. > > Has anyone in this group used Ada to solve such problems? Any > features of Ada that made it particularly well-suited? Dynamic programming can be implemented in almost any language. > > > I'm guessing that Lisp and similar languages might be better for > writing a program, Actually, probably most dynamic programming systems are programmed in Fortran! In any case, in this kind of system, I don't think Lisp has anything over Ada. The place where a language like Lisp shines is where you actually want to manipulate bits of program within the language itself. This problem seems like one which just needs a good data structure to support the dynamic programming solution. Basically, you start with a very simple problem, solve that by a smple search, and then build up solutions of more complicated problems using results saved away for solutions to smaller problems. > but that Ada would run a little faster so you > could search more in a given time. In particular, Ada is probably > much better at pulling a slice out of a list (array) than most of > the functional languages, and this might make Ada much faster at > generating and evaluating solutions. > > Any ideas what would work best -- genetic algorithm, simulated > annealing, or ??? As mentioned above -- dynamic programming. > > > Al -Tucker Taft stt@avercom.net