[algogeeks] Trie | (Insert and Search)

2013-04-10 Thread rahul sharma
http://www.geeksforgeeks.org/trie-insert-and-search/ Can any body tell me what is need of checking pcrawl!=0 int the return..cant we check only its value0 to check whether its a leaf node return (0 != pCrawl pCrawl-value); -- You received this message because you are subscribed to the Google

[algogeeks] trie implementation

2013-03-14 Thread rahul sharma
Can anybody provide me to understand t9 implementation? I dnt need code..I need how to implement t9 with trie with explanation..thnx in advance -- You received this message because you are subscribed to the Google Groups Algorithm Geeks group. To unsubscribe from this group and stop receiving

Re: [algogeeks] trie implementation

2013-03-14 Thread Hassan Monfared
Check codingways.blogspot.com I posted a t9 implementation On Mar 14, 2013 12:44 PM, rahul sharma rahul23111...@gmail.com wrote: Can anybody provide me to understand t9 implementation? I dnt need code..I need how to implement t9 with trie with explanation..thnx in advance -- You received

Re: [algogeeks] Trie Implementaion Issues

2013-01-01 Thread Arpit Sood
can someone share other implementations of trie ? since here we have lot of pointers with value as NULL... so wasting some space On Fri, Dec 28, 2012 at 2:52 AM, Aditya Raman adityarareloa...@gmail.comwrote: @Sachin :thanks man i just tried to change the code with focus on

[algogeeks] Trie Implementaion Issues

2012-12-27 Thread Aditya Raman
Hello everyone, I was trying to implement Trie in c++ for the first time and got some issues in coding its implementation. The code has 2 commented lines namely cmnt1 and cmnt 2. I dont understand how does it make a difference if i use cmnt1 instead of cmnt2 . Both lines are intended to check if a

Re: [algogeeks] Trie Implementaion Issues

2012-12-27 Thread atul anand
executed your code..working fine by commenting cmnt2 and un-commenting cmnt1 --

Re: [algogeeks] Trie Implementaion Issues

2012-12-27 Thread Sachin Maheshwari
Hi Aditya, In C++ member variables gets initialized to garbage values. So in child function T-Symbol is garbage and is not null so it returns because of null check. Next in your insert method you try to access that garbage value. This will cause a crash. When you remove the cmnt1, you

Re: [algogeeks] Trie Implementaion Issues

2012-12-27 Thread Aditya Raman
@Sachin :thanks man i just tried to change the code with focus on initializing NULL values to child pointers array (TrieNode-symbol in this case) and it just works fine. @Atul : thank you for trying to run the code. Actually the IDE i use preferably is DEV-c++ which had the problem i

Re: [algogeeks] TRIE problem

2012-09-01 Thread atul anand
yes but i would like to knw for which application you need this ? On 8/31/12, Carl Barton odysseus.ulys...@gmail.com wrote: There's no reason why a trie or a tree node couldn't be used to 'represent' more than one word. Although you'd take a penalty in the complexity for searching etc. On 31

Re: [algogeeks] TRIE problem

2012-09-01 Thread Navin Kumar
@atul: Given a word and a dictionary find all the anagrams of that word in that dictionary. For efficient access i am storing each word in TRIE with their sorted key. Ex: BAT will be inserted with key ABT. By this we will form TRIE of all words.For all the words whose sorted version are same ,

Re: [algogeeks] TRIE problem

2012-09-01 Thread atul anand
yes this will work On 9/1/12, Navin Kumar algorithm.i...@gmail.com wrote: @atul: Given a word and a dictionary find all the anagrams of that word in that dictionary. For efficient access i am storing each word in TRIE with their sorted key. Ex: BAT will be inserted with key ABT. By this we

[algogeeks] TRIE problem

2012-08-31 Thread Navin Kumar
Can we store multiple words in single TRIE node by using linked list or some other data structure. Based on the some property a node in TRIE will hold all the word with same property. -- You received this message because you are subscribed to the Google Groups Algorithm Geeks group. To view

Re: [algogeeks] TRIE problem

2012-08-31 Thread Carl Barton
There's no reason why a trie or a tree node couldn't be used to 'represent' more than one word. Although you'd take a penalty in the complexity for searching etc. On 31 August 2012 15:33, Navin Kumar algorithm.i...@gmail.com wrote: Can we store multiple words in single TRIE node by using linked

Re: [algogeeks] trie display

2012-07-01 Thread Akshat Sapra
Apply DFS in the trie -- Akshat Sapra Under Graduation(B.Tech) IIIT-Allahabad(Amethi Campus) *--* sapraaks...@gmail.com akshatsapr...@gmail.com rit20009008@ rit20009...@gmail.comiiita.ac.in -- You received this message because you are subscribed to the

Re: [algogeeks] trie display

2012-06-29 Thread atul anand
first search for node where abc ends i.e say func Search() will return node whose node-ch='c';(last character of input abc) then pass this node to following algo :- this is just a code sketchso you can add boundary conditions to it..(if i miss it) print(node *root,int j) { if(!root)

[algogeeks] trie display

2012-06-28 Thread deepikaanand
If there is a trie of following strings(say URLs) abcde,abcegh,abcpqr,abcxyz,xyz if input = abc then output should be = de,egh,pqr,xyz How can I code for this ??? -- You received this message because you are subscribed to the Google Groups Algorithm Geeks group. To post to this group, send

Re: [algogeeks] trie display

2012-06-28 Thread Prem Krishna Chettri
Well it Seems like problem is the DS here. if U have the DS of trie as struct trie { char letter;// Not being general boolean islast; int startindex; struct trie *next; }; I am sure you

Re: [algogeeks] trie display

2012-06-28 Thread raghavan M
To: Algorithm Geeks algogeeks@googlegroups.com Sent: Thursday, 28 June 2012 12:23 PM Subject: [algogeeks] trie display If there is a trie of following strings(say URLs) abcde,abcegh,abcpqr,abcxyz,xyz if input = abc then output should be = de,egh,pqr,xyz How can I code for this ??? -- You received

Re: [algogeeks] trie display

2012-06-28 Thread atul anand
do similar to inorder traversal after reaching at node 'c'..you will get the desired output and in dictionary order . On Thu, Jun 28, 2012 at 12:23 PM, deepikaanand swinyanand...@gmail.comwrote: If there is a trie of following strings(say URLs) abcde,abcegh,abcpqr,abcxyz,xyz if input = abc

[algogeeks] Trie

2010-06-24 Thread Raj N
Hi, Can anyone explain me the implementation of trie. I would be grateful if one could provide me the link to a good learning resource. Thanks!! -- You received this message because you are subscribed to the Google Groups Algorithm Geeks group. To post to this group, send email to