0% found this document useful (0 votes)
35 views

Sequence Counting by Integer Partitioning

This document discusses an algorithm for enumerating distinct noise burst patterns in sequences with given parameters of length (n), number of bit flips (`), and maximum burst length (m). It provides an example of partitioning the number of bit flips (`), distributing remaining zeros, and calculating the total number of patterns. The example shows that the initial claim of the number of patterns was incorrect, and provides the correct calculation of 24 patterns for parameters (10,5,3).

Uploaded by

Brint
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
35 views

Sequence Counting by Integer Partitioning

This document discusses an algorithm for enumerating distinct noise burst patterns in sequences with given parameters of length (n), number of bit flips (`), and maximum burst length (m). It provides an example of partitioning the number of bit flips (`), distributing remaining zeros, and calculating the total number of patterns. The example shows that the initial claim of the number of patterns was incorrect, and provides the correct calculation of 24 patterns for parameters (10,5,3).

Uploaded by

Brint
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 2

Integer Partitions and Counting Bursts

abc
March 13, 2022

Example

n = 6
` = 4
m = 2

This describes a length-6 noise sequence with noise bursts (111) and (1), separated by zeros. The prototype
sequence is:
111001
We can view this as a sequence of length 4. Let

A = 111
B = 0
C = 1

Then the prototype sequence can be represented as

ABBA

In general, there are n! permutations of a sequence of length n, but, unless all elements of the sequence are
unique, some permutations will be identical to others. The distinct permutations of this sequence are

ABBC
ABC B
AC BB
BABC
..
.

However, the third line represents 1 1 1 1 0 0 which is one burst of length 4 and violates the condition
m = 2. Enumerating all distinct permutations of the sequence, you can see that half of them are not allowed.
Thus we have:
• n!
(n−2) ! = 12 distinct sequences;

• 6 allowed sequences.
(If you haven’t done so yet, try this example now.)

Observation The unallowed subsequences in this example are A C and C A. Each one can occur in three
places (beginning in positions 1, 2, and 3.)

1
Thoughts
• In the example, every unallowed subsequence is of length 2. Since m = 2, we discovered that every
pair of m = 2 bursts must be separated by at least one 0.
• Suppose m = 3. The same rule applies, but the count will be different. For example if the bursts are
A, B, and C, then the rule prohibits AB, BC, CA, and their inverses.

Question How can we formulate these observations into a general rule?

An Algorithm
(Forget most of the above. The following is based on examples in Word document, “Finding Noise Burst
Error Patterns.”) We will talk about (n, `, m) noise sequences or words (or patterns).
Basis for an Algorithm for KTB Case 0
1. Given block length n, select the number ` < n of bit flips to be considered.
2. An integer partition {`1 , `2 , . . . , `m , m < `} of `, together with its permutations, enumerates all the
patterns of bursts of length m, with ` bitflips.

3. Each length-m partition of ` represents itself and all distinct permutations of the order of the compo-
nents.
4. The (n−`) zeros in the sequence are placed between each contiguous pair of bursts and at the beginning
and end of the sequence (Case 0). Thus, we need the integer partitions of (n − `) that contain exactly
(m + 1) elements. The permutations of these will specify the ways in which the zeros are distributed.
5. Claim Total number of bursts with parameters (n, `, m) is the product of the number of ways to specify
the order of the bursts and the number of ways to distribute the zeros (n − `).

Example: the (10,5,3) cases The partitions of ` = 5 of length 3 are:


3 1 1
2 2 1
Each has three permutations. The one partition of (n − `) = 5 of length 4 is:
2 1 1 1
It has 4 permutations. Therefore, according to the claim made above, there should be (3 ∗ 2 + 1 ∗ 4) = 10
noise bursts for the assignment (10, 5m, 3). (WRONG)
3 1 1
These bursts are 1 3 1 Each can distribute 5 rows in 4 ways: 2 1 1 1, 1 2 1 1, 1 1 2 1, 1 1 1 2. So
1 1 3
this partition yields 12 noise sequences. The other noise sequence 221 produces the same result. Thus, there
are 24 noise patterns with parameters (10, 5, 3).

You might also like