home *** CD-ROM | disk | FTP | other *** search
/ Oakland CPM Archive / oakcpm.iso / sigm / vol166 / reve.mkv < prev    next >
Encoding:
Text File  |  1984-04-29  |  1.9 KB  |  51 lines

  1.  
  2. [REVE.MKV]
  3. [reverse a binary string]
  4.  
  5. [a catalytic * appears in front of the string]
  6. [it turns zeroes into a's, ones into b's]
  7. [a's and b's have high priority to drift right across 0's and 1's]
  8. [when there are no more 0's or 1's to turn into a's and b's, the
  9.  * drifts right, restoring a's and b's to their binary equivalents]
  10. [when there are no more a's and b's to restore, * vanishes, process stops]
  11.  
  12. [In a Markov algorithm, only consecutive symbols can be transformed. Thus
  13.  it is very common to find a catalyst, or escort symbol being created at
  14.  the very lowest level of priority. It seeks out certain configurations
  15.  to which it is attuned, often casting them into an alternative alphabet.
  16.  The activated symbols then have a high priority mobility, which allows
  17.  them to pair themselves up with selected counterparts. Once the proper
  18.  pairs or other groupings are in contact, another set of rules can carry
  19.  out the real computation which is the objective of the rule set.]
  20.  
  21. [When a Markov algorithm gets to be quite complicated, several catalysts,
  22.  or cursors, can be active. Alternative alphabets provide the equivalent
  23.  of subroutines, since a group of rules will only respond to letters from
  24.  its own alphabet. Likewise the ordering of the rules, by giving each of
  25.  them its own relative priority, has an important bearing on the way in
  26.  which the algorithm is executed.]
  27.  
  28. [[This algorithm will reverse a binary string. Type a
  29. sequence of 0`s or 1`s, followed by a carriage return.
  30.  
  31.             111000110010
  32.  
  33. With each successive keystroke, an additional step in
  34. the execution of the algorithm will be shown.
  35. ]]
  36.  
  37.  
  38.  
  39. [a passes 0]            (a0,0a)
  40. [a passes 1]            (a1,1a)
  41. [b passes 0]            (b0,0b)
  42. [b passes 1]            (b1,1b)
  43. [* turns 0 into a]        (*0,*a)
  44. [* turns 1 into b]        (*1,*b)
  45. [* crosses a, leaves 0]        (*a,0*)
  46. [* crosses b, leaves 1]        (*b,1*)
  47. [* finally disappears]        (*,).
  48. [create * as catalyzer]        (,*)
  49.  
  50. [end]
  51.