weight (strings)
Let be an alphabet, a letter from and astring over . Then the -weight of , denoted by, is the number of times occurs in .
If is an abelian group, the Hamming weight of (no ),often simply referred to as “weight”, is the number of nonzero letters in .
Examples
- •
Let . In the string , occurs times, so the -weight .
- •
Let (an abelian group) and. Then , , and.