当前位置:网站首页>Distance measurement - Hamming distance
Distance measurement - Hamming distance
2022-07-01 23:22:00 【Fanyi】
Python Learning Series : Catalog
List of articles
One 、 summary
Hamming distance (Hamming Distance), Is the number of replacements required to change one string into another .
Two 、 Calculation method
for instance ,
1011101
And1001001
Of Hamming distance by 2
type 1 | 1 | 0 | 1 | 1 | 1 | 0 | 1 |
---|---|---|---|---|---|---|---|
type 2 | 1 | 0 | 0 | 1 | 0 | 0 | 1 |
As long as type 1 Just change the red part .
2143896
And2233786
Of Hamming distance by 3
type 1 | 2 | 1 | 4 | 3 | 8 | 9 | 6 |
---|---|---|---|---|---|---|---|
type 2 | 2 | 2 | 3 | 3 | 7 | 9 | 6 |
As long as type 1 Just change the red part .
helloworld
Andhollowoold
type 1 | h | e | l | l | o | w | o | r | l | d |
---|---|---|---|---|---|---|---|---|---|---|
type 2 | h | o | l | l | o | w | o | o | l | d |
As long as type 1 Just change the red letter of the bid .
3、 ... and 、 Hamming weight
Hamming weight Is the Hamming distance of a string relative to a zero string of the same length ; in other words , It's the number of non-zero elements in a string : For binary strings , Namely 1 The number of , therefore 11101
The weight of Han Ming is 4.
therefore , If the elements in vector space a and b The Hamming distance between them is equal to the difference of their Hamming weight a-b
.
边栏推荐
- 软考信息系统项目管理师_整理的十大管理过程的简写帮助记忆背诵---软考高级之信息系统项目管理师054
- 通过Go语言创建CA与签发证书
- 证券开户选哪个证券公司比较好,哪个更安全
- SWT / anr problem - SWT causes kernel fuse deadlock
- Paramètres communs de matplotlib
- 认识线程
- openresty 负载均衡
- Programming English vocabulary notebook
- Daily three questions 6.28
- Is it safe to choose mobile phone for stock trading account opening in Shanghai?
猜你喜欢
【小程序】通过scroll-view组件实现左右【滑动】列表
[kotlin third party] coil koltin collaboration picture loading library coil glide like picture loading third party
The digital summit is popular, and city chain technology has triggered a new round of business transformation
"35 years old, the boss of the company, with a monthly salary of 20000, give away takeout": the times abandoned you, not even saying goodbye
物联网技术应用属于什么专业分类
Yoga27 multidimensional all-in-one computer with excellent appearance and high-end configuration
Paramètres communs de matplotlib
Groups and ranges of regular series
What is the relationship between modeling and later film and television?
2022 examination questions and online simulation examination for safety management personnel of hazardous chemical business units
随机推荐
数字峰会人气火爆,城链科技引发新一轮商业变革
Jielizhi Bluetooth headset quality control and production skills [chapter]
Some abilities can't be learned from work. Look at this article, more than 90% of peers
Create Ca and issue certificate through go language
Experience of practical learning of Silicon Valley products
[micro service sentinel] sentinelresourceaspect details
SWT/ANR问题--SWT 导致 low memory killer(LMK)
URL 介绍
shell 流程控制
Linux基础 —— CentOS7 离线安装 MySQL
物联网技术应用属于什么专业分类
实在RPA:银行数字化,业务流程自动化“一小步”,贷款审核效率“一大步”
神经网络物联网的发展趋势和未来方向
win 10 mstsc连接 RemoteApp
Istio, ebpf and rsocket Broker: in depth study of service grid
Some thoughts on game performance optimization
rviz打开后如何显示实时2D地图
Behind sharing e-commerce: the spirit of CO creation, symbiosis, sharing, CO prosperity and win-win
Glass mosaic
Daily three questions 6.30