简体   繁体   English

什么时候应该使用海明码?什么时候使用crc更好?

[英]When should hamming codes be used and when is crc better?

Following are the things that I already know about these: 以下是我已经知道的一些事情:

  • Hamming codes can be used both to detect and correct errors, while in crc errors can only be detected. 汉明码可用于检测和纠正错误,而在crc中只能检测到错误。

  • CRC is used in communication while Hamming code is used to detect errors in memory disks CRC用于通信,而汉明码用于检测存储磁盘中的错误

My main question is what is the advantage of using one code over another? 我的主要问题是,使用一种代码比另一种代码有什么优势?

当CRC适用于任何长度的数据时,如果要检测和纠正固定长度的数据,则使用汉明。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM