Processing Text with State Machines

Written by ramit | Published 2020/12/31
Tech Story Tags: javascript | programming | nodejs | coding | engineering | software-development | finite-automatons | string-processing

TLDR Using state machines or finite automatons is a great technique for processing text. This article provides a rough framework for tackling string processing problems. It is easy to write programs that use FAs without going deep into the theory. The program goes through a set of states as it processes the input. Behaviour of the program on the next input token is defined by its current state. The FA "accepts" or "rejects" an input string based on its final state. An FA can be used to extract all the page links of a sitemap.via the TL;DR App

no story

Written by ramit | Engineering @ N7Nitrogen
Published by HackerNoon on 2020/12/31