Processing Text with State Machinesby@ramit
650 reads

Processing Text with State Machines

tldt arrow
Read on Terminal Reader🖨️

Too Long; Didn't Read

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.

Company Mentioned

Mention Thumbnail
featured image - Processing Text with State Machines
Ramit Mittal HackerNoon profile picture

@ramit

Ramit Mittal

About @ramit
LEARN MORE ABOUT @RAMIT'S EXPERTISE AND PLACE ON THE INTERNET.
react to story with heart

RELATED STORIES

L O A D I N G
. . . comments & more!
Hackernoon hq - po box 2206, edwards, colorado 81632, usa