Module: Codes (codes)¶
Code theory module
New in version 1.0.
Classes¶
CodeProperty¶
- class CodeProperty(name, alph)[source]¶
- See: K. Dudzinski and s. Konstantinidis: Formal descriptions of code properties: decidability, complexity,
implementation. International Journal of Foundations of Computer Science 23:1 (2012), 67–85.
- Variables
sigma – the alphabet
TrajProp¶
IPTProp¶
- class IPTProp(aut, name=None)[source]¶
Input Preserving Transducer Property

Constructor :param SFT aut: Input preserving transducer
- addToCode(aut, N, n=2000)[source]¶
Returns an NFA and a list W of up to N words of length ell, such that the NFA accepts L(aut) union W, which is an error-detecting language. ell is computed from aut
- makeCode(N, ell, s, n=2000, ov_free=False)[source]¶
Returns an NFA and a list W of up to N words of length ell, such that the NFA accepts W, which is an error-detecting language. The alphabet to use is {0,1,…,s-1}. where s <= 10.
- makeCodeO(N, ell, s, n=2000, end=None, ov_free=False)[source]¶
Returns an NFA and a list W of up to N words of length ell, such that the NFA accepts W, which is an error-detecting language. The alphabet to use is {0,1,…,s-1}. where s <= 10.
- Parameters
- Returns
an automaton and a list of strings
- Return type
Note: not ov_free and end defined simultaneously Note: end should be a Word
- notMaxStatW(aut, ell, n=2000, ov_free=False)[source]¶
Returns a word of length ell to add into aut or None; simpler version of function nonMaxStatFEpsW
IATProp¶
PrefixProp¶
ErrDetectProp¶
- ErrDetectProp¶
alias of
FAdo.codes.IPTProp
ErrCorrectProp¶
- class ErrCorrectProp(t)[source]¶
Error Correcting Property

Constructor :param SFT aut: Input preserving transducer
Functions¶
buildTrajPropS¶
buildIATPropF¶
buildIPTPropF¶
buildIATPropS¶
buildIPTPropS¶
buildErrorDetectPropF¶
buildErrorCorrectPropF¶
buildErrorCorrectPropF¶
buildErrorDetectPropS¶
buildErrorCorrectPropS¶
buildPrefixProperty¶
editDistanceW¶
- editDistanceW(auto)[source]¶
Compute the edit distance of a given regular language accepted by the NFA via Input-altering transducer.
- Parameters
auto (NFA) – language recogniser
- Returns
The edit distance of the given regular language plus a witness pair
- Return type
Attention
language should have at least two words
See also
Lila Kari, Stavros Konstantinidis, Steffen Kopecki, Meng Yang. An efficient algorithm for computing the edit distance of a regular language via input-altering transducers. arXiv:1406.1041 [cs.FL]


