regarding doenloads folder..............tiger tree hash(TTH) as we use it in file sharing (DC++) might help.... look this -> http://www.dslreports.com/faq/9677
Once DC++ hashes all of your share (yes, this *will* take a while), it will only hash new files. The hashing thread in DC++ is set to low priority, so it shouldn't interfere too badly. There are several benefits of file hashing: No longer does one need to pay attention to the name of the file when looking for alternative sources. If the files are the same, they will have the same hash and can thus be chosen as an alternative source. Just because two files are the exact same size does *not* mean they are the same bitwise! On Fri, Jun 3, 2011 at 10:01 AM, Nate Archibald <[email protected]>wrote: > hashing for lookup. where key will be the tinyurl generated and value will > be the actual url. We need to lookup the actual url everytime a client > queries with a tinyurl. The question is how will you make this search > faster. > > > On Fri, Jun 3, 2011 at 10:17 PM, vaibhav agrawal <[email protected]>wrote: > >> Why to do hashing?? rather generate a unique id everytime... >> >> >> On Fri, Jun 3, 2011 at 9:50 PM, Nate <[email protected]> wrote: >> >>> How will you design a site similar to tinyurl.com? >>> Simple hashing may require a lot of space, and collisions is another >>> issue. Any other approch other than just hashing? >>> >>> -- >>> 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. >>> >>> >> -- >> 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. >> > > -- > 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. > -- 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.
