InterviewSolution
Saved Bookmarks
| 1. |
Which of the following is not true?(a) Trie requires less storage space than hashing(b) Trie allows listing of all the words with same prefix(c) Tries are collision free(d) Trie is also known as prefix treeQuestion is taken from Trie topic in division Trie of Data Structures & Algorithms II had been asked this question in an online quiz. |
|
Answer» CORRECT answer is (a) Trie requires less storage space than hashing Easiest explanation - Both the hashing and the trie provides searching in the LINEAR TIME. But trie requires EXTRA space for storage and it is collision free. And trie allows finding all the strings with same prefix, so it is also called prefix tree. |
|