Top "Comparison" questions

Questions about data comparison and efficient ways to accomplish it.

Clojure vs other Lisps

The intent of my question is not to start a flame war, but rather to determine in what circumstances each …

clojure comparison lisp scheme common-lisp
Text comparison algorithm

We have a requirement in the project that we have to compare two texts (update1, update2) and come up with …

text comparison diff compare
LINQ Distinct operator, ignore case?

Given the following simple example: List<string> list = new List<string>() { "One", "Two", "Three", "three", "Four", "…

c# linq string comparison distinct
How can I measure the similarity between 2 strings?

Given two strings text1 and text2: public SOMEUSABLERETURNTYPE Compare(string text1, string text2) { // DO SOMETHING HERE TO COMPARE } Examples: First …

c# string comparison phonetics
Checking if all elements of a vector are equal in C++

If I have a vector of values and want to check that they are all the same, what is the …

c++ algorithm vector comparison unique
Should I implement __ne__ as the negation of __eq__ in Python?

I have a class where I want to override the __eq__ method. It seems to make sense that I should …

python comparison operators python-datamodel
How to compare almost similar Strings in Java? (String distance measure)

I would like to compare two strings and get some score how much these look alike. For example "The sentence …

java string comparison levenshtein-distance string-metric
Why Is Comparing if an Unsigned Int >= 0 a "Pointless Comparison"?

I got warning: Pe186 "Pointless comparison of unsigned int with zero" when I tried to compile the following code: for(…

c++ c for-loop comparison unsigned
FluentAssertions: ShouldBeEquivalentTo vs Should().Be() vs Should().BeEquivalentTo()?

Can anybody summarize differences and usage scope between them? I read SO articles, ShouldBeEquivalientTo(): ShouldBeEquivalentTo() is intended to be used …

c# comparison fluent-assertions
Algorithm to check similarity of colors

I'm looking for an algorithm that compares two RGB colors and generates a value of their similarity (where similarity means "…

algorithm colors comparison rgb