Network | parity bit

來源:互聯網
上載者:User

標籤:c   style   code   a   color   使用   

同位位元是一個表示給定位元的位元中1的個數是奇數還是偶數的位元。同位位元是最簡單的錯誤偵測碼。

A parity bit, or check bit is a bit added to the end of a string of binary code that indicates whether the number of bits in the string with the value one is even or odd. Parity bits are used as the simplest form of error detecting code.

同位位元有兩種類型:偶校正位與奇數同位位。如果一組給定資料位元中1的個數是奇數,那麼偶校正位就置為1,從而使得總的1的個數是偶數。如果給定一組資料位元中1的個數是偶數,那麼奇數同位位就置為1,使得總的1的個數是奇數。

同位位元是一種錯誤偵測碼,但是由於沒有辦法確定哪一位出錯,所以它不能進行錯誤校正。發生錯誤時必須扔掉全部的資料,然後從頭開始傳輸資料。在雜訊很多的媒介上成功傳輸資料可能要花費很長的時間,甚至根本無法實現。但是同位位元也有它的優點,它是使用一位元據能夠達到的最好的校正碼,並且它僅僅需要一些異或門就能夠產生。

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.