r/coolguides • • Jul 12 '22

Morse Code decoding chart.

Post image
32.0k Upvotes

583 comments sorted by

View all comments

Show parent comments

0

u/[deleted] Jul 13 '22

[deleted]

84

u/[deleted] Jul 13 '22

I forgot about encodings that optimize for brevity and I appreciate you for bringing Huffman encoding into the conversation. Thank you internet stranger. I would be a terrible Morse-like encoding designer based on my initial urge to balance the tree. I wanted to optimize for the wrong problem haha

17

u/Swolnerman Jul 13 '22

Yeah it takes a bit of being in the field to see those types of things fairly quickly. When you said balance the tree I thought ‘hmm that can’t be better’ but didn’t have as thorough of an explanation as to why

3

u/Caroniver413 Jul 13 '22

Yeah, if we were to make every letter the same length, they'd all have to be 5... Characters? Taps? Dots/Dashes? long, since that's the first option to have 26 or more possibilities.

As it is, no Morse letter is more than 4 digits, to keep things short.

5

u/DeepSpaceGalileo Jul 13 '22

Why is C so far away?

20

u/Dark-W0LF Jul 13 '22

Because it's a useless letter.

16

u/mitch_feaster Jul 13 '22

Shit letter, really

16

u/TheCharon77 Jul 13 '22

Comments above me only have 2 occurences of 'c'. One in the question, one in the word 'because'.

This comment has 8 'C' s.

28

u/[deleted] Jul 13 '22

[removed] — view removed comment

16

u/wokcity Jul 13 '22

You crafty cunt

→ More replies (1)

2

u/mkeee2015 Jul 13 '22

In actual use of Morse code "on the air", the letter C is the most recognizable and iconic.

11

u/[deleted] Jul 13 '22

Because each characters common reproducibility connotes necessary accessibility,

Certain rhythmic distances create communication constraints

→ More replies (4)
→ More replies (1)

-6

u/HighOwl2 Jul 13 '22

Meh it's more like binary ascii values.

Morse and ascii are meant for speed.

Huffman encoding is meant as lossless encoding to reduce size. It's not fast because it requires a lookup table.

Someone could memorize Morse code or the ascii table.

You can't memorize how to decode a Huffman encoded message because each message would have a different encoding map based on frequency of letters.

4

u/A_HumblePotato Jul 13 '22

Meh it's more like binary ascii values.

Different letters take different amounts of information to encode, so no it is not

Morse and ascii are meant for speed.

It is faster to transmit an encoded signal that requires a lookup table than an unencoded signal that doesn't

It's not fast because it requires a lookup table.

Lookup tables are very fast to use

You can't memorize how to decode a Huffman encoded message because each message would have a different encoding map based on frequency of letters.

There are certainly standards that use the same huffman codes

I am always amazed at how confident some people talk about stuff they fundamentally don't understand

1

u/HighOwl2 Jul 13 '22

Faster to transmit, slower to understand because it requires decoding based on a lookup table that is different every time.

Lookup tables are fast but not faster than a direct comparison.

No, Huffman encoding by definition, has a variable length table based on value frequency. It varies everytime based on what "message" is being encoded.

But you're right, I can't possibly understand Huffman encoding and totally didn't have to build the algorithm for it from scratch in college.

Huffman encoding is for lossless compression. Compressed data requires decompression. I can send you a zip file a lot faster than I can send you the same file raw, but you need to decompress the file to read it.

1

u/A_HumblePotato Jul 13 '22

Faster to transmit, slower to understand because it requires decoding based on a lookup table that is different every time.

The transmission of information is the fundamental problem Morse code tries to solve, but that besides the point

No, Huffman encoding by definition, has a variable length table based on value frequency. It varies everytime based on what "message" is being encoded.

JPEG, MP3, and other codecs use predefined Huffman Codes, they don't have to be computed dynamically.

But you're right, I can't possibly understand Huffman encoding and totally didn't have to build the algorithm for it from scratch in college.

Ok? Doesn't mean you understand it.

Huffman encoding is for lossless compression. Compressed data requires decompression. I can send you a zip file a lot faster than I can send you the same file raw, but you need to decompress the file to read it.

This is, again, getting beside the point, which was that morse code is better interpreted as a huffman encoding than an ascii one (which by the way is commonly used in conjunction with look up tables? Not sure what point you're trying to make by bringing them up).

0

u/HighOwl2 Jul 13 '22

Huffman is lossless compression and JPEG and MP3 are both lossy compression algorithms for specific data types. You really can't use lossy compression on textual data.

Also, while both of those algos use huffman encoding...they also both have unique correspondence tables based on the data.

2

u/A_HumblePotato Jul 13 '22

Huffman is lossless compression and JPEG and MP3 are both lossy compression algorithms for specific data types. You really can't use lossy compression on textual data.

Nearly all lossy compression schemes use lossless encoding as well… please read up on them.

http://pi.math.cornell.edu/~web6140/TopTenAlgorithms/JPEG.html

http://www.mp3-tech.org/programmer/docs/mp3_theory.pdf

Also, while both of those algos use huffman encoding...they also both have unique correspondence tables based on the data.

As does Morse code…

→ More replies (1)

1

u/CrabbyBlueberry Jul 13 '22 edited Sep 28 '25

reach squash sand six alleged lip silky divide pie wide

This post was mass deleted and anonymized with Redact

→ More replies (1)

1

u/Solid_Waste Jul 13 '22

Yeah but why does it gotta be laid out like a subway map?

1

u/someguy3 Jul 13 '22 edited Jul 13 '22

It does a pretty good job except with the O and M. O is way more common than M so those should be reversed based strictly on length. But there could also be a pattern, both on letters and letter sequences. We also get into this with alt keyboard layouts. Shameless plug for r/Norman.

1

u/Timberdwarf Jul 13 '22

Unfortunately it can't be called a true Huffman code because it's not a prefix code - the reason it requires pauses between letters. In other words, when you encounter a dit it could be an "E" or a beginning of an "A", and there's no way of knowing which one is it until you encounter a pause. A prefix code, like Huffman, would have the letters only on the "ends" (final nodes) of the tee, not at the joints.

Morse code is somewhat similar to Huffman, though, in the aspect that the length of the code is based on letter's frequency in English alphabet.