Abstract

The Sardinas-Patterson's test for codes has contributed many effective testing algorithms to the development of theory of codes, formal languages, etc. However, we will show that a modification of this test proposed in this paper can deduce more effective testing algorithms for codes. As a consequence, we establish a quadratic algorithm that, given as input a regular language X defined by a tuple Φ, M, B, where Φ : A* → M is a monoid morphism saturating X, M is a finite monoid, $B \subseteq M$, X = Φ-1B, decides in time complexity $\mathcal{O}n^2$ whether X is a code, where n = CardM. Specially, n can be chosen as the finite index of X. A quadratic algorithm for testing of ◊-codes is also established.

Talk to us

Join us for a 30 min session where you can share your feedback and ask us any queries you have

Schedule a call

Disclaimer: All third-party content on this website/platform is and will remain the property of their respective owners and is provided on "as is" basis without any warranties, express or implied. Use of third-party content does not indicate any affiliation, sponsorship with or endorsement by them. Any references to third-party content is to identify the corresponding services and shall be considered fair use under The CopyrightLaw.