Skip to content

Using Trie to store Strings and search strings #113

Open
@vaishnavijha

Description

@vaishnavijha

Trie is an efficient information reTrieval data structure. Using Trie, search complexities can be brought to optimal limit (key length). If we store keys in binary search tree, a well balanced BST will need time proportional to M * log N, where M is maximum string length and N is number of keys in tree. Using Trie, we can search the key in O(M) time.

I want to demonstrate how can we use trie data structure to search for a given string.

problem link: https://practice.geeksforgeeks.org/problems/trie-insert-and-search0651/1

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions