Skip to content

soham0-0/Morse-Code-Converter

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

20 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

🕵🏼 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