Skip to content

jceaser/AutoComplete

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Auto Complete

An example project that implements a Trie class.

Overview

A very simple attempt at creating a Trie class based on the most superficial reading of a description of said class on Wikipedia.

Usage

Project is managed by Apache-Maven. Build with the package command then run the App class as such:

>mvm package
>java -cp target/AutoComplete-1.0-SNAPSHOT.jar \
    com.cherry.thomas.app.autocomplete.App -f words.txt
Loaded 6805 words in 223ms.
enter 'exit()' to quit.
Find> elf
result: [] - 0ms.
Find> elv 
result: [elves, elvenking, elvish] - 0ms.
Find> qu
result: [queer, questioned, questions, quesstion, quench, quaff, quarters, quarreled, quarrels, quays, quoits, quivering, quieter, quite] - 1ms.
Find> exit()

While in the "Find>" loop enter words to query. You will be returned a list of results and a duration.

About

An example program of how to implement a Trie class.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published