PlanetMath (more info)
 Math for the people, by the people. Sponsor PlanetMath
Encyclopedia | Requests | Forums | Docs | Wiki | Random | RSS  
Login
create new user
name:
pass:
forget your password?
Main Menu
Owner confidence rating: Medium Entry average rating: No information on entry rating
weight (strings) (Definition)

Let $A$ be an alphabet, $a\in A$ a letter from $A$ and $c\in A^*$ a string over $a$ . Then the $a$ -weight of $c$ , denoted by $\wt_a(c)$ , is the number of times $a$ occurs in $c$ .

If $A$ is an abelian group, the Hamming weight $\wt(c)$ of $c$ (no index), often simply referred to as ``weight'', is the number of nonzero letters in $c$ .

Examples

  • Let $A=\{x,y,z\}$ . In the string $c:=yxxzyyzxyzzyx$ , $y$ occurs $5$ times, so the $y$ -weight $\wt_y(c)=5$ .
  • Let $A=\mbb{Z}_3=\{0,1,2\}$ (an abelian group) and $c:=002001200$ . Then $\wt_0(c)=6$ , $\wt_1(c)=1$ , $\wt_2(c)=2$ and $\wt(c)=\wt_1(c)+\wt_2(c)=3$ .




"weight (strings)" is owned by GrafZahl.
(view preamble | get metadata)

View style:

See Also: Kleene star

Other names:  weight
Also defines:  Hamming weight
Log in to rate this entry.
(view current ratings)

Cross-references: abelian group, occur ins, number, string, alphabet
There are 22 references to this entry.

This is version 3 of weight (strings), born on 2005-04-30, modified 2005-05-01.
Object id is 6985, canonical name is WeightStrings.
Accessed 4993 times total.

Classification:
AMS MSC94A55 (Information and communication, circuits :: Communication, information :: Shift register sequences and sequences over finite alphabets)

Pending Errata and Addenda
None.
Discussion
Style: Expand: Order:
forum policy

No messages.

Interact
post | correct | update request | add derivation | add example | add (any)