Why hashing won;t work for millions of URL.
If you hash each URL in to a distinct 32 bit integer, you can map 2^32 URL
which is around 4 billion. it should work.

On Wed, May 16, 2012 at 10:42 AM, atul anand <atul.87fri...@gmail.com>wrote:

> 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 <tewari.va...@gmail.com> 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 algogeeks@googlegroups.com.
>> To unsubscribe from this group, send email to
>> algogeeks+unsubscr...@googlegroups.com.
>> 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 algogeeks@googlegroups.com.
> To unsubscribe from this group, send email to
> algogeeks+unsubscr...@googlegroups.com.
> For more options, visit this group at
> http://groups.google.com/group/algogeeks?hl=en.
>



-- 
Regards
Amit Mittal

-- 
You received this message because you are subscribed to the Google Groups 
"Algorithm Geeks" group.
To post to this group, send email to algogeeks@googlegroups.com.
To unsubscribe from this group, send email to 
algogeeks+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/algogeeks?hl=en.

Reply via email to