Peter Norwig uses asterisks in PAIP arrays

In Peter Norvig PAIP , section 18.12, page 643 (unfortunately, it is not part of the Google Books preview), it includes 2D arrays, for example:

(/ (aref '#2A((.1  .4 .7)
              (.05 .3  *)
              (.01  *  *))
         (count-edge-neighbors ...)
         (count-edge-neighbors ...)))

What do asterisks ( *) mean ? I assumed some symmetry shortening, but later there are many repetitions like:

'#2A((;stab  semi     un
      (   *     0 -2000)                ; X
      ( 700     *     *)                ; corner
      (1200   200   -25)                ; C
      (1000   200    75)                ; A
      (1000   200    50)                ; B
      (1000   200    50)                ; B
      (1000   200    75)                ; A
      (1200   200   -25)                ; C
      ( 700     *     *)                ; corner
      (   *     0 -2000)                ; X
      )) 

So I'm at a loss.

+4
source share
1 answer

The chapter implements a complex game for playing Othello.

Norvig uses some 2d arrays to get fixed values ​​depending on two-dimensional input.

* is an arbitrary placeholder for an inapplicable or unused value

2d , *. , , , , , .

, , , . . . ( , ), 700. ( . : ) ( ), : Norvig *. , , * . - , 2d.

+9
source

Source: https://habr.com/ru/post/1688499/


All Articles