Abstract
We consider the following problem: Given a set Γ = {c 1,...,c n} of nonempty strings over a fixed, finite alphabet Σ, is every string in Γ+ uniquely decipherable, or does the equation cx = dy, where c, d ∈ Γ, c ≠ d, and x,y ∈ Γ*, have a solution? We give an O(n L) algorithm for this problem, where L = |c 1| + ... + |c n|, and use this algorithm to investigate the impact of structural properties of Γ on the complexity of testing unique decipherability. We then give an O(L log(n)) unique decipherability test for sets Γ which may be linearly ordered by the prefix relation.
This work was supported in part by the National Science Foundation under Grant MCS 80-21066
Preview
Unable to display preview. Download preview PDF.
References
A. V. Aho and M. J. Corasick “Efficient string matching: an aid to bibliographic search”, CACM 18:6 (1975) 333–343
A. Apostolico and R. Giancarlo “Pattern matching machine implementation of a fast test for unique decipherability” Inf. Proc. Letters, forthcoming in 1984
E. K. Blum “Free subsemigroups of a free semigroup”, Mich. Math. J. 12 (1965) 179–182
R. M. Capocelli “A note on uniquely decipherable codes”, IEEE Trans. on Inf. Thy. IT-25 (1979) 90–94
R. M. Capocelli and C. M. Hoffmann “Algorithms for factorizing semigroups”, Proc. NATO Workshop on Combinatorial Algorithms on Words, Maratea, Italy, 1984
S. Even “Graph Algorithms”, Comp. Sci. Press, Potomac, Md., (1979)
D. Knuth, J. Morris, V. Pratt “Fast pattern matching in strings”, SIAM J. on Comp. 6:2 (1977) 323–350
G. Lallement “Semigroups and Combinatorial Applications”, J. Wiley & Sons, New York (1979)
A. A. Markov “Non-recurrent coding”, Problem. Kybern. 8 (1962) 169–189
E. M. McCreight “A space-economical suffix tree construction algorithm”, J. ACM 23:2 (1976) 262–272
M. Rodeh “A fast test for unique decipherability based on suffix trees”, IEEE Trans. on Inf. Thy. IT-28:4 (1982) 648–651
A. A. Sardinas and C. W. Patterson “A necessary and sufficient condition for the unique decomposition of coded messages”, IRE Intl. Conv. Rec. 8 (1953) 104–108
J. C. Spehner “Quelques constructions et algorithmes relatifs aux sous-monoides d'un monoide libre”, Semigroup Forum 9 (1979) 334–353
Author information
Authors and Affiliations
Editor information
Rights and permissions
Copyright information
© 1984 Springer-Verlag Berlin Heidelberg
About this paper
Cite this paper
Hoffmann, C.M. (1984). A note on unique decipherability. In: Chytil, M.P., Koubek, V. (eds) Mathematical Foundations of Computer Science 1984. MFCS 1984. Lecture Notes in Computer Science, vol 176. Springer, Berlin, Heidelberg. https://doi.org/10.1007/BFb0030289
Download citation
DOI: https://doi.org/10.1007/BFb0030289
Published:
Publisher Name: Springer, Berlin, Heidelberg
Print ISBN: 978-3-540-13372-8
Online ISBN: 978-3-540-38929-3
eBook Packages: Springer Book Archive