Self-synchronizing code
In coding theory, especially in telecommunications, a self-synchronizing code is a uniquely decodable code in which the symbol stream formed by a portion of one code word, or by the overlapped portion of any two adjacent code words, is not a valid code word. Put another way, a set of strings (called ) over an alphabet is called a self-synchronizing code if for each string obtained by concatenating two code words, the substring starting at the second symbol and ending at the second-last symbol does not contain any code word as substring. Every self-synchronizing code is a prefix code, but not all prefix codes are self-synchronizing. Other terms for self-synchronizing code are synchronized code or, ambiguously, comma-free code. A self-synchronizing code permits the proper framing of transmitted code words provided that no uncorrected errors occur in the symbol stream; external synchronization is not required. Self-synchronizing codes also allow recovery from uncorrected errors in the stream; with most prefix codes, an uncorrected error in a single bit may propagate errors further in the stream and make the subsequent data corrupted. Importance of self-synchronizing codes is not limited to data transmission. Self-synchronization also facilitates some cases of data recovery, for example of a digitally encoded text.
In coding theory, especially in telecommunications, a self-synchronizing code is a uniquely decodable code in which the symbol stream formed by a portion of one code word, or by the overlapped portion of any two adjacent code words, is not a valid code word. Put another way, a set of strings (called ) over an alphabet is called a self-synchronizing code if for each string obtained by concatenating two code words, the substring starting at the second symbol and ending at the second-last symbol does not contain any code word as substring. Every self-synchronizing code is a prefix code, but not all prefix codes are self-synchronizing. Other terms for self-synchronizing code are synchronized code or, ambiguously, comma-free code. A self-synchronizing code permits the proper framing of transmitted code words provided that no uncorrected errors occur in the symbol stream; external synchronization is not required. Self-synchronizing codes also allow recovery from uncorrected errors in the stream; with most prefix codes, an uncorrected error in a single bit may propagate errors further in the stream and make the subsequent data corrupted. Importance of self-synchronizing codes is not limited to data transmission. Self-synchronization also facilitates some cases of data recovery, for example of a digitally encoded text. ==Examples== UTF-8 is self-synchronizing at the byte level because the leading byte ( 11xxxxxx ) and subsequent bytes ( 10xxxxxx ) of a multi-byte code point have different bit patterns. High Level Data Link Control (HDLC) Advanced Data Communication Control Procedures (ADCCP) Fibonacci coding Counterexamples: The prefix code {00, 11} is not self-synchronizing; while 0, 1, 01 and 10 are not codes, 00 and 11 are. The prefix code {ab,ba} is not self-synchronizing because abab contains ba. The prefix code b ∗ a (using the Kleene star) is not self-synchronizing (even though any new code word simply starts after a) because code word ba contains code word a. ==See also== Bit slip Comma code Consistent overhead byte stuffing Dynkin sequence Kraus principle Kruskal's principle Overlapping instructions Pollard's lambda method Self-clocking signal Self-synchronizing block code ==References==
References
- Berstel, Jean; Perrin, Dominique; Reutenauer, Christophe (2010). Codes and automata . Encyclopedia of Mathematics and its Applications. Vol. 129. Cambridge, UK: Cambridge University Press . p. 137. ISBN 978-0-521-88831-8 . Zbl 1187.94001 . Wikipedia revision 1370551225, retrieved 2026-11-22 · retrieved 2026-11-21 · rev 1370551225
Cite this reference
MLA "Berstel, Jean; Perrin, Dominique; Reutenauer, Christophe (2010). Codes and automata . Encyclopedia of Mathematics and its Applications. Vol. 129. Cambridge, UK: Cambridge University Press . p. 137. ISBN 978-0-521-88831-8 . Zbl 1187.94001 . Wikipedia revision 1370551225, retrieved 2026-11-22." Berstel, Jean; Perrin, Dominique; Reutenauer, Christophe (2010). 2026-11-21. https://en.wikipedia.org/wiki/Cambridge_University_Press. Accessed 24 November 2026.
Chicago "Berstel, Jean; Perrin, Dominique; Reutenauer, Christophe (2010). Codes and automata . Encyclopedia of Mathematics and its Applications. Vol. 129. Cambridge, UK: Cambridge University Press . p. 137. ISBN 978-0-521-88831-8 . Zbl 1187.94001 . Wikipedia revision 1370551225, retrieved 2026-11-22." Berstel, Jean; Perrin, Dominique; Reutenauer, Christophe (2010). 2026-11-21. https://en.wikipedia.org/wiki/Cambridge_University_Press.
APA Berstel, Jean; Perrin, Dominique; Reutenauer, Christophe (2010). (2026). Berstel, Jean; Perrin, Dominique; Reutenauer, Christophe (2010). Codes and automata . Encyclopedia of Mathematics and its Applications. Vol. 129. Cambridge, UK: Cambridge University Press . p. 137. ISBN 978-0-521-88831-8 . Zbl 1187.94001 . Wikipedia revision 1370551225, retrieved 2026-11-22. Retrieved November 24, 2026, from https://en.wikipedia.org/wiki/Cambridge_University_Press
- Berstel, Jean; Perrin, Dominique (1985). Theory of Codes . Pure and Applied Mathematics. Vol. 117. Academic Press . p. 377. Zbl 0587.68066 . Wikipedia revision 1370551225, retrieved 2026-11-22 · retrieved 2026-11-21 · rev 1370551225
Cite this reference
MLA "Berstel, Jean; Perrin, Dominique (1985). Theory of Codes . Pure and Applied Mathematics. Vol. 117. Academic Press . p. 377. Zbl 0587.68066 . Wikipedia revision 1370551225, retrieved 2026-11-22." Berstel, Jean; Perrin, Dominique (1985). 2026-11-21. https://en.wikipedia.org/wiki/Academic_Press. Accessed 24 November 2026.
Chicago "Berstel, Jean; Perrin, Dominique (1985). Theory of Codes . Pure and Applied Mathematics. Vol. 117. Academic Press . p. 377. Zbl 0587.68066 . Wikipedia revision 1370551225, retrieved 2026-11-22." Berstel, Jean; Perrin, Dominique (1985). 2026-11-21. https://en.wikipedia.org/wiki/Academic_Press.
APA Berstel, Jean; Perrin, Dominique (1985). (2026). Berstel, Jean; Perrin, Dominique (1985). Theory of Codes . Pure and Applied Mathematics. Vol. 117. Academic Press . p. 377. Zbl 0587.68066 . Wikipedia revision 1370551225, retrieved 2026-11-22. Retrieved November 24, 2026, from https://en.wikipedia.org/wiki/Academic_Press
- Self-synchronizing code – Glossary · retrieved 2026-11-21 · rev 1370551225
Cite this reference
MLA "Self-synchronizing code – Glossary." 2026-11-21. https://glossary.atis.org/glossary/self-synchronizing-code/?char=S&page_number=22&sort=ASC. Accessed 24 November 2026.
Chicago "Self-synchronizing code – Glossary." 2026-11-21. https://glossary.atis.org/glossary/self-synchronizing-code/?char=S&page_number=22&sort=ASC.
APA encyclopegia.org. (2026). Self-synchronizing code – Glossary. Retrieved November 24, 2026, from https://glossary.atis.org/glossary/self-synchronizing-code/?char=S&page_number=22&sort=ASC
- Put another way, a set of strings (called dfni|code words) over an alphabet is called a self-synchronizing code if for each string obtained by concatenating two code words, the substring starting . · retrieved 2026-08-20 · rev 1370551225
Cite this reference
MLA "Put another way, a set of strings (called dfni|code words) over an alphabet is called a self-synchronizing code if for each string obtained by concatenating two code words, the substring starting ." Put another way, a set of strings (called dfni|code words) over an alphabet is called a self-synchronizing code if for e. 2026-08-20. https://en.wikipedia.org/w/index.php?oldid=1370551225. Accessed 24 November 2026.
Chicago "Put another way, a set of strings (called dfni|code words) over an alphabet is called a self-synchronizing code if for each string obtained by concatenating two code words, the substring starting ." Put another way, a set of strings (called dfni|code words) over an alphabet is called a self-synchronizing code if for e. 2026-08-20. https://en.wikipedia.org/w/index.php?oldid=1370551225.
APA Put another way, a set of strings (called dfni|code words) over an alphabet is called a self-synchronizing code if for e. (2026). Put another way, a set of strings (called dfni|code words) over an alphabet is called a self-synchronizing code if for each string obtained by concatenating two code words, the substring starting . Retrieved November 24, 2026, from https://en.wikipedia.org/w/index.php?oldid=1370551225
Cite this article
MLA
"Self-synchronizing code." encyclopegia.org, 2026, https://encyclopegia.org/wiki/self-synchronizing-code. Accessed 24 November 2026.
Chicago
"Self-synchronizing code." encyclopegia.org. Accessed November 24, 2026. https://encyclopegia.org/wiki/self-synchronizing-code.
APA
encyclopegia.org. (2026). Self-synchronizing code. Retrieved November 24, 2026, from https://encyclopegia.org/wiki/self-synchronizing-code
Accessed November 24, 2026 · CC BY-SA 4.0 · citation page · JSON