🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: gnu.chess
Article #5020

Re: Speed up UpdatePieceList

#5020
From: David Spencer
Date: Thu, 26 May 1994 18:43
40 lines
2180 bytes
In article <CqB7u6.Ftu@cs.ruu.nl> vdiepeve@cs.ruu.nl (Vincent Diepeveen) writes:


> 
> In <2rqmo3$34j@search01.news.aol.com> dsmjl@aol.com (DSMJL) writes:
> 
> >In article <CoGEL1.5Ao@cs.ruu.nl>, vdiepeve@cs.ruu.nl (Vincent
> >Diepeveen) writes:
> >
> >The reason the present UpdatePieceList is the way it is goes:
> >
> >It keeps the piece list in an order that is more effective in keeping
> >the
> >tree small (efficiency).
> 
> Why does there exist a function 'pick' that gets the best
> move from the movelist: if all moves are picked, then you have
> a bubblesort( after experimenting in my own programm with heapsort,
> my conclusion was that this pick function, so bubblesort, was  
> better as any other sort, as memcpy is the most slowest command on the PC, 
> except HALT .....-)))
> of the list, in both cases it doesn't matter the way it is generated.

I believe the answer is that, in general, a large % of the time the
first move will be the "best" so that it's a waste of time to sort
when the first move will do.  And if the 1st isn't the best, then the
2nd best probably is....this of course is the whole point of move
ordering heuristics.

		- Dave



--

     + ------------------------+
     | David Spencer           |
     | david-spencer@retix.com |
     + ------------------------+
Technical Details
Message-ID: <DSPENCER.94May26114347@mproj.retix.com>
Path: arc1-ca.pugleaf.net!bga.com!news.sprintlink.net!qns1.qns.com!constellation!news.uoknor.edu!ns1.nodak.edu!netnews.nwnet.net!news.clark.edu!spool.mu.edu!howland.reston.ans.net!pipex!sunic!EU.net!uunet!retix!spock!dspencer
References: <CoGEL1.5Ao@cs.ruu.nl> <2rqmo3$34j@search01.news.aol.com> <CqB7u6.Ftu@cs.ruu.nl>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 10d71d,a6b1257a1c386acf
X-Google-Attributes: gid10d71d,public
X-Google-ArrivalTime: 1994-05-27 14:20:14 PST
Newsgroups: gnu.chess
Path: arc1-ca.pugleaf.net!bga.com!news.sprintlink.net!qns1.qns.com!constellation!news.uoknor.edu!ns1.nodak.edu!netnews.nwnet.net!news.clark.edu!spool.mu.edu!howland.reston.ans.net!pipex!sunic!EU.net!uunet!retix!spock!dspencer
From: dspencer@mproj.retix.com (David Spencer)
Subject: Re: Speed up UpdatePieceList
Message-ID: <DSPENCER.94May26114347@mproj.retix.com>
In-reply-to: vdiepeve@cs.ruu.nl's message of Tue, 24 May 1994 13:51:42 GMT
Nntp-Posting-Host: mproj.retix.com
Organization: Retix, Santa Monica, CA
References: <CoGEL1.5Ao@cs.ruu.nl> <2rqmo3$34j@search01.news.aol.com>
 <CqB7u6.Ftu@cs.ruu.nl>
Date: 26 May 1994 18:43:47 GMT
Lines: 41