Talk:Execute a Markov algorithm: Difference between revisions

m
Line 17:
=== explicit vs tacit ===
 
Returning to this just now, I realized from the WP description (and its the [[wp:Talk:Markov algorithm#Examples|Talktalk page]]) that the Markov Algorithm has a very strict order of evaluation -- much stricter than I originally considered. In particular, the entire ruleset must be applied after every successful match.
 
That means, for example, if rule 0 matches, then make '''one and only one''' substitution (to the leftmost match) and '''reapply''' rule 0 until it no longer matches. Then apply rule 1. If that matches, then start all over and apply rule 0. And so on. At any point, if a terminating rule matches, make the single substitution and quit.
Anonymous user