Comparison


 
 

A comparison is an evaluation of similarities and differences - described by Gregory Bateson in his book Mind and Nature as the two quanta of experience.

~ ~ ~ ~ ~ ~ ~ ~ ~ ~

~ ~ ~ ~ ~ ~ ~ ~ ~ ~

In computer programming, when one compares the two values x and y, a negative number often indicates x < y, zero x == y and a positive number x > y. Even when two values are not integers, e.g. literal strings, this convention is largely adopted. For example, strcmp returns -1, 0, or 1 according to the lexicographical order, and qsort expects the comparison function to return values according to this convention. This is because it is efficient to do the subtraction x - y resulting in the directional signs above. In sorting algorithms, the efficiency of comparison code is critical since it is one of the major factors of sorting performance.


 

Evaluation: Evaluation is the systematic determination of merit, worth, and significance....

Similarities: redirect similarity...

Differences: }}...

~ Table of Content ~

Introduction
In computer programming
In grammar
In mathematics
Academic fields focusing on comparison
See also
 


 

~ Related Subjects ~

Lexicographical order (1) - Strcmp (1) - Sorting algorithm (1) - Qsort (1) - Computer programming (1) - Similarities (1) - Evaluation (1) - Gregory Bateson (1) - Differences (1) -
 

~ Community ~

History Forum
Come and discuss about History, Civilizations, Historical Events and Figures
History Web-Ring
A community of sites, blogs and forums dedicated to History. Do not hesitate to submit your site.