/Morse-Code-Converter

Simple morse converter using binary tree.

Primary LanguageC++GNU General Public License v3.0GPL-3.0

šŸ•µšŸ¼ Morse-Code-Converter šŸ•µšŸ¼

Simple morse converter using binary tree and hashmap.


Decoder Logic:

Implemented 4 levels of the following tree for decoding. Morse code tree

Encoder Logic:

Used the hashtable (alphabets only as of yet).

Input Format:

  • Decoder:
    • Use one space to seperate letters and two spaces to seperate words.
    • Put the input string inside quotation marks.
    • example input: ./morseconverter decode "-.- --- -. .. -.-. .... .. .-- .-"
  • Encoder:
    • Only alphabet conversion supported yet.
    • example input: ./morseconverter encode "HeY"

Build:

  1. git clone https://github.com/soham0-0/Morse-Code-Converter.git
  2. cd Morse-Code-Converter/
  3. make all