Introduction to Bimachines
Bimachines are deterministic finite-state devices that represent the class regular string functions and are commonly used for text rewriting. What is fascinating about them is that they process the input text in both directions - from left to right and from right to left which makes them very efficient in practice as they guarantee linear time input processing.
Denis Kyashif's Blog