FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

Data-Structures/Trie at master · AlgorithmCrackers/Data-Structures · GitHub

Latest commit

 

History

History

README.md

Trie

A Trie, also called digital tree/ radix tree or prefix tree (as they can be searched by prefixes).

It is used for finding some or all places in a text where the query string occurs as a substring.

  • For a given text of size T, the space complexity is O(T)
  • For a substring/ prefix of size P which has to be searched in the text, the search query complexity is O(P)

Useful for

  • Suggestions for a complete word while typing
  • Spell checkers
  • File name searching
  • Validate a word

Setup

npm install

Test

npm test

Resources


Back | FazBrowse Home | New Git URL