Click here to Skip to main content
15,889,335 members
Home / Discussions / Algorithms
   

Algorithms

 
GeneralRe: Skin color detection help me Pin
kabirbdboy22-Aug-09 19:34
kabirbdboy22-Aug-09 19:34 
GeneralRe: Skin color detection help me Pin
Tim Craig22-Aug-09 21:27
Tim Craig22-Aug-09 21:27 
GeneralRe: Skin color detection help me Pin
kabirbdboy23-Aug-09 4:04
kabirbdboy23-Aug-09 4:04 
GeneralRe: Skin color detection help me Pin
Tim Craig23-Aug-09 7:57
Tim Craig23-Aug-09 7:57 
AnswerRe: Skin color detection help me Pin
arunkamaraj20-Jan-10 19:27
arunkamaraj20-Jan-10 19:27 
QuestionMD5CryptoServiceProvider's ComputeHash doesn't match (x86 vs x64)? Pin
francoisdotnet18-Aug-09 6:13
francoisdotnet18-Aug-09 6:13 
GeneralRe: <object>.GetHashCode doesn't match (x86 vs x64)? [modified]</object> Pin
francoisdotnet18-Aug-09 21:22
francoisdotnet18-Aug-09 21:22 
GeneralRe: .GetHashCode doesn't match (x86 vs x64)? Pin
supercat919-Aug-09 6:44
supercat919-Aug-09 6:44 
I believe that Microsoft's documentation for GetHashCode specifies that no assumption should be made about the value returned, other than the fact that within a given execution context, if a=b, a.GetHashCode=b.GetHashCode. The release of a class with one version of GetHashCode does not imply a contract that all versions of the class will yield the same GetHashCode; indeed, there may be good reasons why future versions would not.

For example, someone might have a class to store shapes, using a fairly simple GetHashCode implementation, and then discover that some particular application which stores shapes in a hash table performs poorly because many different shapes evaluate to the same hash. If the release of the earlier version of GetHashCode compelled all future versions to perform identically on those shapes, it would be impossible to fix its poor behavior with certain combinations of shapes. Allowing GetHashCode to change avoids this risk.

Further, I would expect that an object's implementation would even be allowed to have an object's hash code vary based upon the circumstances in which it, or the first still-existing object like it, was created. For example, an object holds a strings could, every time the string is modified, check for it in a dictionary and either use or add a dictionary reference. If all matching strings would use the same dictionary reference, the object's GetHashCode could use the hash of that dictionary reference rather than computing the actual hash of the string, even though the hash of the dictionary reference would be affected by when the object was first inserted.
GeneralRe: .GetHashCode doesn't match (x86 vs x64)? Pin
francoisdotnet19-Aug-09 10:46
francoisdotnet19-Aug-09 10:46 
GeneralRe: .GetHashCode doesn't match (x86 vs x64)? Pin
supercat919-Aug-09 14:34
supercat919-Aug-09 14:34 
GeneralRe: .GetHashCode doesn't match (x86 vs x64)? Pin
francoisdotnet19-Aug-09 20:43
francoisdotnet19-Aug-09 20:43 
AnswerRe: MD5CryptoServiceProvider's ComputeHash doesn't match (x86 vs x64)? Pin
Luc Pattyn20-Aug-09 0:49
sitebuilderLuc Pattyn20-Aug-09 0:49 
QuestionVariable Depth For Loop to create a number sequence... Pin
Aaron @ Think Software17-Aug-09 14:46
professionalAaron @ Think Software17-Aug-09 14:46 
Answer[CrossPost] Variable Depth For Loop to create a number sequence... Pin
Scott Dorman17-Aug-09 15:35
professionalScott Dorman17-Aug-09 15:35 
AnswerRe: Variable Depth For Loop to create a number sequence... Pin
Alan Balkany18-Aug-09 9:44
Alan Balkany18-Aug-09 9:44 
Questiontree recursive traversing . Pin
devboycpp15-Aug-09 5:18
devboycpp15-Aug-09 5:18 
AnswerRe: tree recursive traversing . Pin
Moreno Airoldi15-Aug-09 7:28
Moreno Airoldi15-Aug-09 7:28 
QuestionRegarding time complexity Pin
kirancgi14-Aug-09 1:04
kirancgi14-Aug-09 1:04 
AnswerRe: Regarding time complexity [modified] Pin
Moreno Airoldi14-Aug-09 7:27
Moreno Airoldi14-Aug-09 7:27 
GeneralRe: Regarding time complexity Pin
kirancgi22-Aug-09 6:43
kirancgi22-Aug-09 6:43 
QuestionHi, I'm a freshman for the Digtal image processing, I wonder if HMM or Markov model is the right choice for target tracking. Pin
superwave6-Aug-09 21:51
superwave6-Aug-09 21:51 
AnswerRe: Hi, I'm a freshman for the Digtal image processing, I wonder if HMM or Markov model is the right choice for target tracking. Pin
fresi8-Aug-09 1:50
fresi8-Aug-09 1:50 
GeneralRe: Hi, I'm a freshman for the Digtal image processing, I wonder if HMM or Markov model is the right choice for target tracking. Pin
superwave8-Aug-09 3:27
superwave8-Aug-09 3:27 
GeneralRe: Hi, I'm a freshman for the Digtal image processing, I wonder if HMM or Markov model is the right choice for target tracking. Pin
Tim Craig9-Aug-09 8:48
Tim Craig9-Aug-09 8:48 
GeneralRe: Hi, I'm a freshman for the Digtal image processing, I wonder if HMM or Markov model is the right choice for target tracking. [modified] Pin
superwave9-Aug-09 18:33
superwave9-Aug-09 18:33 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.