8000 Parity check always fails when the first bit is changed · Issue #1 · danielmuthama/Hamming-Code · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content
Parity check always fails when the first bit is changed #1
Open
@emilio-nuno

Description

@emilio-nuno

Hello! I've been using this module to help test my own hamming code module. However, I've stumbled upon a problem wherein your decoding function says it could not find the error in the string when the first bit is changed. Here's an example of what I'm talking about (using an already encoded and valid hamming code string):

cadena = '1010101' print(detectar_error_externo(cadena))

The output is -1, which means your decoding function says there is no error, and there isn't. But when I change the first bit like so:

cadena = '0010101' print(detectar_error_externo(cadena))

The output is a print statement saying the error could not be detected.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      0