Kasami code should not be confused with Konami Code.
Kasami sequences are binary sequences of length where is an even integer. Kasami sequences have good cross-correlation values approaching the Welch lower bound. There are two classes of Kasami sequences—the small set and the large set.
The process of generating a Kasami sequence is initiated by generating a maximum length sequence, where . Maximum length sequences are periodic sequences with a period of exactly . Next, a secondary sequence is derived from the initial sequence via cyclic decimation sampling as, where . Modified sequences are then formed by adding and cyclically time shifted versions of using modulo-two arithmetic, which is also termed the exclusive or (xor) operation. Computing modified sequences from all unique time shifts of forms the Kasami set of code sequences.