can anyone tell me if I'm thinking in the right line?
Type: Posts; User: amsy
can anyone tell me if I'm thinking in the right line?
of course :cool: Thank you
This is the main code for a morse code files decoder. From my understanding, it checks each bit in the binary file, maps it against a decoding table to find its alphabet equivalence and then returns...
Hi, the following is the main part of a decoder code which decodes files encoded in morse code. The files are binary based on the morse code definition of using dots and dashes. So for example "A" is...
I've managed to come up with the following code so far:
char *decode_file(char *input, int inputsize, int *outputsize)
{
struct encoding encoding_table[27];
char *outputbuf;
int...
I’ve used a simple variable length Huffman encoding. As the dot is the most common symbol in morse, we encode as:
Symbol Encoding
dot (“.”) 0
dash (“-”) 10
space (“ ”) 11
Thus the letters of...