Markov algorithm: Difference between revisions

Content deleted Content added
Sensori (talk | contribs)
Undid revision 365329889 by 96.253.162.5 (talk)
Algorithm: clarifying
Line 11:
#Check the Rules in order from top to bottom to see whether any of the ''patterns'' can be found in the ''input'' string.
#If none is found, the algorithm stops.
#If one (or more) is found, use '''the first''' of them to replace the leftmost matching text in the ''input'' string with its ''replacement'' in the first applicable rule.
#If the applied rule was a terminating one, the algorithm stops.
#Return to step 1 and carry on.