Return-Path: Delivered-To: apmail-xmlgraphics-batik-dev-archive@www.apache.org Received: (qmail 61630 invoked from network); 11 Feb 2006 23:01:57 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 11 Feb 2006 23:01:57 -0000 Received: (qmail 83438 invoked by uid 500); 11 Feb 2006 23:01:56 -0000 Delivered-To: apmail-xmlgraphics-batik-dev-archive@xmlgraphics.apache.org Received: (qmail 83417 invoked by uid 500); 11 Feb 2006 23:01:56 -0000 Mailing-List: contact batik-dev-help@xmlgraphics.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: batik-dev@xmlgraphics.apache.org Delivered-To: mailing list batik-dev@xmlgraphics.apache.org Received: (qmail 83388 invoked by uid 99); 11 Feb 2006 23:01:56 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 11 Feb 2006 15:01:56 -0800 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received-SPF: pass (asf.osuosl.org: local policy) Received: from [202.173.180.68] (HELO port.mcc.id.au) (202.173.180.68) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 11 Feb 2006 15:01:55 -0800 Received: from cam by port.mcc.id.au with local (Exim 3.36 #1 (Debian)) id 1F83kC-0000Qs-00 for ; Sun, 12 Feb 2006 10:01:32 +1100 Date: Sun, 12 Feb 2006 10:01:32 +1100 From: Cameron McCormack To: batik-dev@xmlgraphics.apache.org Subject: Re: [Graphic]How to minimize a head movement when we just have a list of points and need to draw the bitmap again Message-ID: <20060211230132.GA25870@port.mcc.id.au> Mail-Followup-To: batik-dev@xmlgraphics.apache.org References: <43EE59B4.5030109@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <43EE59B4.5030109@gmail.com> X-Numbers: 4 8 15 16 23 42 User-Agent: Mutt/1.5.10i X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N Hi Legolas. Legolas Woodland: > Thank you for reading my post , and Im sorry if this place is not > suitable place for this question Probably not the right place, but no matter... > Now i should find an algorithm or method to sort those X,Y points in a > way that head movement become minimum. > is there such algorithm around ? This general problem is the Travelling Saleseman Problem[1,2], which unfortunately is NP hard. You may have luck with some heuristic algorithms that result in a "good" solution, but still not minimal. Cameron [1] http://en.wikipedia.org/wiki/Traveling_salesman_problem [2] http://mathworld.wolfram.com/TravelingSalesmanProblem.html -- Cameron McCormack ICQ: 26955922 cam (at) mcc.id.au MSN: cam (at) mcc.id.au http://mcc.id.au/ JBR: heycam (at) jabber.org --------------------------------------------------------------------- To unsubscribe, e-mail: batik-dev-unsubscribe@xmlgraphics.apache.org For additional commands, e-mail: batik-dev-help@xmlgraphics.apache.org