Some studies in machine learning using the game of Checkers · PDF

kaynak: jeo.kompas.com
PDF görünümü Sayfa metni Paylaş Orijinal PDF ↗
/ 20

SAYFA 6 / 20

540 Improving the Efficiency of a Problem Solver scorcs. Now it is this list of previous board positions that board POSItion in which White is to move. so that all is used to look up board positions while at a ply lev"cl of boards are reported as if it were Black's turn to move. J in the suhsequent games. If a board position is ("ound, This reduces by nearly a factor of two the numher of its score has, in clIeet. already been backed up by three boards which must be saved. Board positions. in which levels. and if it hecomes etrective in determining the all of the pieces 'are kings, can be reflected about the move to be made. it is a .(i-ply score rather than a simple diagonals with a possible fourfold reduction in the num- J-ply score. This new initial board position with its (i-ply ber which must be saved. A more' compact board repre- score is, in turn, saved and "(t may be encountered in a sentation than the one employed during play is also used future game and the score backed up by an additional so as to minimize the storage requirements. set of three levels, et cetera. This procedure is illustrated After the board positions are standardized. they are in Fig. 3. The incorporation of this variation. together grouped into records on the basis of (I) the number of with the simpler rotc-learning feature. results in a fairly pieces on the board, (2) the presence or absence of a powerful learning technique which has been studied in piece advantage, (3) the side possessing this advantage, some detail. (4) the presence or absence of kings on the board.:(5) the Several additional features had to be incorporated into side having the so-called "move," or .opposition advan- the program before it was practical to embark on learn- tage, and finally (6) the first moments of the pieces about ing studies using this storage scheme. In the first place, normal and diagonal axes through the board. During it was necessary to impart a sense of direction to the pro- play, newly acquired board positions are saved in the gram in order to force it to press on toward a win. To memory until a reasonable number have been accumu- illustrate this, consider the situati9n of two kings against lated. and they are then merged with those on the "mem- one king, which is a winning combination for practically ory tape" and a new memory tape is produced. Board all variations in board positions. In time, the program positions within a .record are listed in a serial fashion, can be assumed to have stored all of these variations, being sorted with respect to the" words which define them. each associated with a winning score. Now. if such a The records are arranged on the tape in the order that situation is encountered, the program will look ahead they are most likely to be needed during the course of a along all possible paths and each path will lead to a win- game; board positions with 12 pieces to a side coming ning combination, in spite of the fact that only one of first, et cetera. This method of cataloging is very impor- the possible initial moves may be along the direct path tant because it cuts tape-searching time to a minimum. toward the win while all of the rest may be wasting time. Reference must be made. of course. to the board posi- How is the program to differentiate between these? tions already saved, and this is done by reading the cor- A good solution is to keep a record of the ply value of rect record into the memory ane searching through it by the ditrerent board positions at all times and to make a a dichotomous search procedure. Usually five or more further choice between board positions on this basis. If records are held in memory at on\~ time. the exact num- ahead. the program can be arranged to push directly ber at any time depending upon the lengths of the par- toward the win while. if behind, it can be arranged to ticular records in question. Normally, the program calls adopt delaying' tactics. The most recent method used is three or four new records into memory during each new to carry the effective ply along with the score by simply move, making room for them as needed, by discarding decreasing the magnitude of the score a small amount the records which have been held the longest. each time it is backed-up a ply level during the analyses. Two different procedures have been found to be of If the program is now faced with a choice of board posi- value in limiting the number of board positions that are tions whose scores differ only by the ply number, it will saved; one based on the frequency of use. and the sec- automatically make the most advantageous choice, ond on the ply. To keep track of the frequency of use, choosing a low-ply alternative if winning and a high-ply an age term is carried along with the score. Each new alternative if losing. The significance of this concept of a board position to be saved is arbitrarily assigned an age. direction sense should not be overlooked. Even without When reference is made to a stored board position, "learning," it is very important. Several of the early at- either to update its score or to utilize it in the look- tempts at learning failed because the direction sense was ahead procedure, the age recorded for this board position not properly taken into account. is divided by two. This is called relre~·hing. Offsetting this, each board position is automatically aged by one • Cawloging lind culling stored inlormatioll unit at the memory merge times (normally occurring Since practical considerations limit the number of board about once every 20 moves). When the age of anyone positions which can be saved, and since the time to board position reaches an arbitrary maximum value this r~cord. This is a search through those that are saved can easily become hoard position is expunged from the unduly long. one must devisG systems (I) to catalog form of lorgelling. New board positions which remain hoards that arc saved. (2) to delete redundancies. and unused arc soon forgotten. while board positions which (3) to discard board positions which are not believed to arc used several times in succession will be refreshed to he of much value. The most effective cataloging system such an extent that they will be remembered even if not found to date starts hy standardizing all board positions. used thereafter for a fairly long period of time. This form first by reversing the pieces and piece positions if it is a of refreshing and forgetting was adopted on the basis of •