Welcome To The Home Of The Visual FoxPro Experts  
home. signup. forum. archives. search. google. articles. downloads. faq. members. weblogs. file info. rss.
 From: Sergey Karimov
  Where is Sergey Karimov?
 Reston
 Virginia - United States
 Sergey Karimov
 To: Mz
  Where is Mz?
 Metro Manila
 Philippines
 Mz
 Tags
Subject: RE: An adhoc Article... mzhash
Thread ID: 50901 Message ID: 51414 # Views: 3 # Ratings: 0
Version: Unknown Category: Other
Date: Sunday, September 12, 2004 4:13:36 PM         
   


> to solve your 'olleh' and 'hello', you can redefine your SUM in this way
>
> VSum = VSum + (LOG(ASC(SUBSTR(NewStr,ICtr,1)) + 1) * 0510200405281975 * LOG(ictr))
>

Hi MZ,

You are too fast :) You fixed one problem, but got another. Right now your code will produce the same result for

- Strings which differs by the first character only.
- Such strings:

s1+”ABCD”+s2 and s1+”BCDA”+s2, where len(s1)=asc("A")

Anyway, thanks a lot for hash code explanation and lets stop here to discuss it.

Regards,
Sergey



ENTIRE THREAD

The strength of Logarithm... Posted by Mz @ 9/7/2004 4:06:53 AM
RE: The strength of Logarithm... Posted by Wild Fire @ 9/7/2004 4:23:00 AM
RE: The strength of Logarithm... Posted by Alexander Federizo @ 9/7/2004 4:56:54 AM
RE: The strength of Logarithm... Posted by Mz @ 9/7/2004 5:07:57 AM
RE: The strength of Logarithm... Posted by Alexander Federizo @ 9/7/2004 6:40:06 AM
RE: The strength of Logarithm... Posted by Mz @ 9/7/2004 7:00:06 AM
RE: The strength of Logarithm... Posted by Alexander Federizo @ 9/7/2004 7:23:24 AM
RE: The strength of Logarithm... Posted by Mz @ 9/10/2004 12:47:34 PM
RE: The strength of Logarithms... Posted by Alexander Federizo @ 9/10/2004 6:07:12 PM
RE: The strength of Logarithm... Posted by Boudewijn Lutgerink @ 9/10/2004 8:43:15 AM
An adhoc Article... mzhash Posted by Mz @ 9/10/2004 9:35:34 AM
RE: An adhoc Article... mzhash Posted by Alexander Federizo @ 9/10/2004 5:53:58 PM
RE: An adhoc Article... mzhash Posted by Mz @ 9/11/2004 4:30:58 AM
RE: An adhoc Article... mzhash Posted by Sergey Karimov @ 9/11/2004 5:10:55 AM
RE: An adhoc Article... mzhash Posted by Mz @ 9/11/2004 6:45:48 AM
RE: An adhoc Article... mzhash Posted by Mz @ 9/11/2004 7:00:53 AM
RE: An adhoc Article... mzhash Posted by Sergey Karimov @ 9/11/2004 3:20:46 PM
RE: An adhoc Article... mzhash Posted by Sergey Karimov @ 9/11/2004 3:42:35 PM
RE: An adhoc Article... mzhash Posted by Mz @ 9/12/2004 10:19:23 AM
RE: An adhoc Article... mzhash Posted by Sergey Karimov @ 9/12/2004 4:13:36 PM
RE: An adhoc Article... mzhash Posted by Mz @ 9/13/2004 3:19:33 AM
An approach for Intelectual Property Protection... Posted by Mz @ 9/11/2004 7:12:08 AM
RE: An approach for Intelectual Property Protec... Posted by Dale Dedoroy @ 9/13/2004 4:14:20 AM
RE: An approach for Intelectual Property Protec... Posted by Mz @ 9/13/2004 5:27:30 AM