paint-brush
Processing Text with State Machinesby@ramit
692 reads
692 reads

Processing Text with State Machines

by Ramit Mittal5mDecember 31st, 2020
Read on Terminal Reader
Read this story w/o Javascript
tldt arrow

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 Mittal

Ramit Mittal

@ramit

Engineering @ N7Nitrogen

About @ramit
LEARN MORE ABOUT @RAMIT'S
EXPERTISE AND PLACE ON THE INTERNET.
L O A D I N G
. . . comments & more!

About Author

Ramit Mittal HackerNoon profile picture
Ramit Mittal@ramit
Engineering @ N7Nitrogen

TOPICS

THIS ARTICLE WAS FEATURED IN...

Permanent on Arweave
Read on Terminal Reader
Read this story in a terminal
 Terminal
Read this story w/o Javascript
Read this story w/o Javascript
 Lite