Kautz sequence generator

버전 1.3.0.0 (3.84 KB) 작성자: W. Owen Brimijoin
Generates example Kautz sequences of specified number of characters and subsequence lengths.
다운로드 수: 502
업데이트 날짜: 2011/7/22

라이선스 보기

The Kautz sequence is of the same family of sequences as the de Bruijn sequence, but has an additional requirement that it not contain any consecutive repeats of the same character.

The sequence is, by nature, circular, so the final members of pairs (or triplets, quadruplets, etc...) are found wrapped around to the beginning of the sequence.

Example:

>> sequence = kautz_generator(3,3)'

sequence =
3 1 3 2 1 2 1 3 1 2 3 2

A sequence of N characters with a subsequence length of L would be
---------------------------------------------
N*(N-1)^(L-1)characters in length, and would contain:
N^(L-1) examples of each character,
N^(L-2) examples of each pair of characters,
N^(L-3) examples of each possible triplet of characters,
and so on.
---------------------------------------------

Computation times will be *considerable* and unpredictable for large numbers of characters (>10)and subsequence lengths (>4). Sometimes the code will be unable to compute a solution and will restart. This restart is initiated when the total computation time exceeds time taken before the first backtrack times a multiplier of 4 (arrived at empirically).

If you find this useful and use it for research, please cite:
Brimijoin WO, McShefferty D, Akeroyd MA. J Acoust Soc Am. 2010 Jun;127(6):3678-88.

인용 양식

W. Owen Brimijoin (2024). Kautz sequence generator (https://www.mathworks.com/matlabcentral/fileexchange/31201-kautz-sequence-generator), MATLAB Central File Exchange. 검색됨 .

MATLAB 릴리스 호환 정보
개발 환경: R2010a
모든 릴리스와 호환
플랫폼 호환성
Windows macOS Linux
카테고리
Help CenterMATLAB Answers에서 Logical에 대해 자세히 알아보기
도움

받음: permn

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!
버전 게시됨 릴리스 정보
1.3.0.0

Added acknowledgment to COMBN (jos)

1.1.0.0

Title change

1.0.0.0