请输入您要查询的字词:

 

单词 Weightstrings
释义

weight (strings)


Let A be an alphabet, aA a letter from A and cA* astring over a. Then the a-weight of c, denoted bywta(c), is the number of times a occurs in c.

If A is an abelian groupMathworldPlanetmath, the Hamming weight wt(c) of c (no ),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 5times, so the y-weight wty(c)=5.

  • Let A=3={0,1,2} (an abelian group) andc:=002001200. Then wt0(c)=6, wt1(c)=1, wt2(c)=2 andwt(c)=wt1(c)+wt2(c)=3.

随便看

 

数学辞典收录了18232条数学词条,基本涵盖了常用数学知识及数学英语单词词组的翻译及用法,是数学学习的有利工具。

 

Copyright © 2000-2023 Newdu.com.com All Rights Reserved
更新时间:2025/5/4 19:06:33