Giter Club home page Giter Club logo

compressedtrie-dictionary's Introduction

CompressedTrie

This is a program written in java that implements a dictionary of the English language through a compressed Trie based (radix) on the English alphabet (a-z). Compressed is any Trie whose nodes that are not terminals and have only one child are joined to their child. Joined nodes represent a string instead of a single character.

Features

● -i word: Inserts word into Trie.

● -r word: Deletes the word word from the Trie.

● -f word: Searches the word in the Trie.

● -p: Prints the pre-order penetration of Trie.

● -d: Prints all the words of the stored dictionary in alphabetical order.

● -w word X: Searches the Trie for all words of the same length as word that are exactly X characters away from the given word.

● -s suffix: Searches the Trie for words containing the given suffix.

● -q: Prints the string “Bye bye!” followed by a newline character and terminates the program.

Compilation and Execution

Compile the files using the command:

javac CompressedTrie/HW1.java

Run the files using the Command:

java HW1

compressedtrie-dictionary's People

Contributors

konstantinosgalanis avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.