i was thinking about using TRIE or patricia tree. hashing is another but it wont work if URLs are in millions is there any better data structure ?
On Tue, May 15, 2012 at 11:37 PM, Varun <[email protected]> wrote: > should be a tree based on domain in url and directory mentioned in url. > > > On Tuesday, 15 May 2012 21:20:55 UTC+5:30, atul007 wrote: >> >> Given a file which contain millions of URL's. which data structure would >> you use for storing these URL's . data structure used should store and >> fetch data in efficient manner. > > > On Tuesday, 15 May 2012 21:20:55 UTC+5:30, atul007 wrote: >> >> Given a file which contain millions of URL's. which data structure would >> you use for storing these URL's . data structure used should store and >> fetch data in efficient manner. > > -- > You received this message because you are subscribed to the Google Groups > "Algorithm Geeks" group. > To view this discussion on the web visit > https://groups.google.com/d/msg/algogeeks/-/idbhSUZ6TNIJ. > To post to this group, send email to [email protected]. > To unsubscribe from this group, send email to > [email protected]. > For more options, visit this group at > http://groups.google.com/group/algogeeks?hl=en. > -- You received this message because you are subscribed to the Google Groups "Algorithm Geeks" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/algogeeks?hl=en.
