Top "Compare" questions

The analysis required to assess the differences and similarities between two or more entities.

Python: Dictionary merge by updating but not overwriting if value exists

If I have 2 dicts as follows: d1 = {('unit1','test1'):2,('unit1','test2'):4} d2 = {('unit1','test1'):2,(…

python dictionary merge compare
In Perl, is there a built in way to compare two arrays for equality?

I have two arrays of strings that I would like to compare for equality: my @array1 = ("part1", "part2", "part3", "part4"); …

arrays perl compare match
Efficient way to compare version strings in Java

Possible Duplicate: How do you compare two version Strings in Java? I've 2 strings which contains version information as shown below: …

java string compare
Compare 2 images in php

Comparing 2 images to see if they are both the same files are easy, threw the files MD5, but is it …

php image compare gd
Image comparison algorithm

I'm trying to compare images to each other to find out whether they are different. First I tried to make …

python image image-processing compare computer-vision
How to compare Enums in TypeScript

In TypeScript, I want to compare two variables containing enum values. Here's my minimal code example: enum E { A, B } …

typescript enums compare equality
Compare 2 excel files using Python

I have two xlsx files as follows: value1 value2 value3 0.456 3.456 0.4325436 6.24654 0.235435 6.376546 4.26545 4.264543 7.2564523 and value1 value2 value3 0.456 3.456 0.4325436 6.24654 0.23546 6.376546 4.26545 4.264543 7.2564523 I need to compare all cells, …

python excel pandas compare xlrd
How to compare a list of lists/sets in python?

What is the easiest way to compare the 2 lists/sets and output the differences? Are there any built in functions …

python list compare set tuples
Comparing text files with Junit

I am comparing text files in junit using: public static void assertReaders(BufferedReader expected, BufferedReader actual) throws IOException { String line; …

java junit compare text-files
How to compare two DATE values based only on date part in Oracle?

I am trying to get counts for last 30 days with the following query - SELECT date_occured, COUNT(*) FROM problem …

sql oracle date compare datepart