Skip to content
This repository has been archived by the owner on Apr 1, 2021. It is now read-only.

Create Article : Data-Structures-Trie.md #1064

Merged
11 commits merged into from
May 31, 2016
Merged

Create Article : Data-Structures-Trie.md #1064

11 commits merged into from
May 31, 2016

Conversation

ds-249
Copy link
Contributor

@ds-249 ds-249 commented May 30, 2016

No description provided.

@ghost ghost added this to the June Summit milestone May 30, 2016
@ghost ghost assigned koustuvsinha, alayek and ghost May 30, 2016

The word trie is an inflix of the word "re**trie**val", because the trie can find a single word in a dictionary with only a prefix of the word.
Trie is an efficient data retrieval data structure, using trie, search complexities can be brought to an optimal limit, i.e. length of the string.
It is a multi-way tree structure useful for storing strings over an alphabet.
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

- It is a multi-way tree structure useful for storing strings over an alphabet.
+ It is a multi-way tree structure, useful for storing strings over an alphabet, when we are storing them.

@ds-249 ds-249 mentioned this pull request May 30, 2016
23 tasks
@alayek alayek added QA and removed QA labels May 30, 2016
@ghost
Copy link

ghost commented May 30, 2016

LGTM 👍

@Rafase282
Copy link
Member

Rafase282 commented May 31, 2016

LGTM 👍

Just add the data structure prefix to the title in the article.

@ghost
Copy link

ghost commented May 31, 2016

@alayek @koustuvsinha, please take a look 🎉

## What is a trie?

A trie is a tree like data structure which stores strings, and helps you find the data associated with that string using the prefix of the string.
For example, say you plan on building a dictionary to store strings along with their meanings. You must be wondering why can't I simply use a hash table, to get the information.
Copy link
Member

@koustuvsinha koustuvsinha May 31, 2016

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Reference hash table : the existing article Hash-Tables-and-Hashing Functions.md

For referencing, just add [hash table](the filename), no need to give exact paths, it will be picked up relatively.

@koustuvsinha
Copy link
Member

Just add the reference, otherwise

LGTM 👍


A trie is a tree like data structure which stores strings, and helps you find the data associated with that string using the prefix of the string.
For example, say you plan on building a dictionary to store strings along with their meanings. You must be wondering why can't I simply use a hash table, to get the information.
Yes, you obviously can get information using a hash table, but, the [hash tables](Hash-Tables-And-Hashing-Functions.md) can only find data where the string exactly matches the one we've added. But trie will give us the capability to find strings with common prefixes, a missing character etc in lesser time, in comparison to a hash table.
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

-[hash tables](Hash-Tables-And-Hashing-Functions.md)
+[hash tables](Hash-Tables-And-Hashing-Functions)

@ghost ghost merged commit b2d20dc into freeCodeCamp:master May 31, 2016
@BerkeleyTrue BerkeleyTrue removed the QA label May 31, 2016
@ghost
Copy link

ghost commented May 31, 2016

🎉 Thanks @ds-249 🎉

This pull request was closed.
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants