Comparison

From Academic Kids

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.

Contents

In computer programming

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.

Sometimes, particularly in object-oriented programming, the comparison raises questions of datatypes and inheritance, equality and identity. It is often necessary to distinguish between:

  • two objects with different datatypes both related to another datatype, e.g. an orange and a lemon, both being citrus fruit
  • two different objects of the same type, e.g. two hands
  • two objects being equal but distinct, e.g. two $10 banknotes
  • two different references to the same object, e.g. two nicknames for the same person

Sameness and difference can be relative or graduated as well as absolute, particularly in fuzzy logic, artificial intelligence, signal processing, lossy data compression and pattern recognition.

See also: regular expression

In grammar

Comparison, in grammar, is a property of adjectives and adverbs in most languages; it describes systems that distinguish the degree to which the modifier modifies its complement.

English, due to the complex etymology of its lexicon, has two parallel systems of comparison. One involves the suffixes -er (the "comparative") and -est (the "superlative"). These inflections are of Indo-European origin, and are cognate with the Latin suffixes -ior and -issimus. These inflections are typically added to shorter words, words of Anglo-Saxon origin, and borrowed words that have been fully assimilated into the English vocabulary. Usually the words that take these inflections have fewer than three syllables. This system contains a number of irregular forms, some of which, like good, better, best, contain suppletive forms. These irregular forms include:

good        better       best
well        better       best
bad         worse        worst
far         farther      farthest
far         further      furthest
little      less(er)     least (also has regular forms)
many        more         most

The second system of comparison in English appends the grammatical particles more and most, themselves the irregular comparatives of many, to the adjective or adverb being modified. This series can be compared to a system containing the diminutives less and least. This system is most commonly used with words of French or Latin derivation; adjectives and adverbs formed with suffixes other than -ly (e.g. beautiful); and with longer, technical, or infrequently used words. Knowing which words fall into which system is a highly idiomatic issue in English syntax. Some words require the suffixing system: e.g. taller is required; *more tall is not idiomatic English. Some words (e.g. difficult) require more and most. Some words (e.g. polite) can be used with either system; curiously, while polite can go either way, the derived word impolite requires more and most. The general rule is that words with one syllable require the suffix, words with three or more syllables require more or most and words with two syllables can go either way.

A perennial issue in English usage involves the comparison of so-called "absolute" adjectives, adjectives that logically do not seem to admit of comparison. There are many such adjectives - generally adjectives that name qualities that are either present or absent: nothing is *"more Cretaceous" or *"more igneous" than anything else. Other examples include perfect and parallel, which name qualities that are inherently superlative: if something is perfect, there can be nothing better, so it does not make sense to describe one thing as *"more perfect" than something else. Nonetheless, such forms often do make sense in a specific context. If one fossil is from the very beginning of the Cretaceous period - the transition into the Cretaceous period - while another is from the middle of that period, then the latter might be described as "more Cretaceous" than the former. If one solution to a problem leaves everyone happy, then it might be regarded as a perfect solution, even if another solution leaves everyone even happier; in this case, the latter might be characterized as "more perfect" than the latter. In general, terms like perfect and parallel cannot ever apply exactly to things in real life, so they are commonly used to mean nearly perfect, nearly parallel, and so on; and in this (inexact) use, more perfect (i.e., more nearly perfect, closer to perfect) and more parallel (i.e., more nearly parallel, closer to parallel) do seem to make sense. See Sapir-Whorf hypothesis for a discussion on how this sort of imprecise language might lead to similarly imprecise thought.

In mathematics

See:

Academic fields focusing on comparison

See also

Navigation

Academic Kids Menu

  • Art and Cultures
    • Art (http://www.academickids.com/encyclopedia/index.php/Art)
    • Architecture (http://www.academickids.com/encyclopedia/index.php/Architecture)
    • Cultures (http://www.academickids.com/encyclopedia/index.php/Cultures)
    • Music (http://www.academickids.com/encyclopedia/index.php/Music)
    • Musical Instruments (http://academickids.com/encyclopedia/index.php/List_of_musical_instruments)
  • Biographies (http://www.academickids.com/encyclopedia/index.php/Biographies)
  • Clipart (http://www.academickids.com/encyclopedia/index.php/Clipart)
  • Geography (http://www.academickids.com/encyclopedia/index.php/Geography)
    • Countries of the World (http://www.academickids.com/encyclopedia/index.php/Countries)
    • Maps (http://www.academickids.com/encyclopedia/index.php/Maps)
    • Flags (http://www.academickids.com/encyclopedia/index.php/Flags)
    • Continents (http://www.academickids.com/encyclopedia/index.php/Continents)
  • History (http://www.academickids.com/encyclopedia/index.php/History)
    • Ancient Civilizations (http://www.academickids.com/encyclopedia/index.php/Ancient_Civilizations)
    • Industrial Revolution (http://www.academickids.com/encyclopedia/index.php/Industrial_Revolution)
    • Middle Ages (http://www.academickids.com/encyclopedia/index.php/Middle_Ages)
    • Prehistory (http://www.academickids.com/encyclopedia/index.php/Prehistory)
    • Renaissance (http://www.academickids.com/encyclopedia/index.php/Renaissance)
    • Timelines (http://www.academickids.com/encyclopedia/index.php/Timelines)
    • United States (http://www.academickids.com/encyclopedia/index.php/United_States)
    • Wars (http://www.academickids.com/encyclopedia/index.php/Wars)
    • World History (http://www.academickids.com/encyclopedia/index.php/History_of_the_world)
  • Human Body (http://www.academickids.com/encyclopedia/index.php/Human_Body)
  • Mathematics (http://www.academickids.com/encyclopedia/index.php/Mathematics)
  • Reference (http://www.academickids.com/encyclopedia/index.php/Reference)
  • Science (http://www.academickids.com/encyclopedia/index.php/Science)
    • Animals (http://www.academickids.com/encyclopedia/index.php/Animals)
    • Aviation (http://www.academickids.com/encyclopedia/index.php/Aviation)
    • Dinosaurs (http://www.academickids.com/encyclopedia/index.php/Dinosaurs)
    • Earth (http://www.academickids.com/encyclopedia/index.php/Earth)
    • Inventions (http://www.academickids.com/encyclopedia/index.php/Inventions)
    • Physical Science (http://www.academickids.com/encyclopedia/index.php/Physical_Science)
    • Plants (http://www.academickids.com/encyclopedia/index.php/Plants)
    • Scientists (http://www.academickids.com/encyclopedia/index.php/Scientists)
  • Social Studies (http://www.academickids.com/encyclopedia/index.php/Social_Studies)
    • Anthropology (http://www.academickids.com/encyclopedia/index.php/Anthropology)
    • Economics (http://www.academickids.com/encyclopedia/index.php/Economics)
    • Government (http://www.academickids.com/encyclopedia/index.php/Government)
    • Religion (http://www.academickids.com/encyclopedia/index.php/Religion)
    • Holidays (http://www.academickids.com/encyclopedia/index.php/Holidays)
  • Space and Astronomy
    • Solar System (http://www.academickids.com/encyclopedia/index.php/Solar_System)
    • Planets (http://www.academickids.com/encyclopedia/index.php/Planets)
  • Sports (http://www.academickids.com/encyclopedia/index.php/Sports)
  • Timelines (http://www.academickids.com/encyclopedia/index.php/Timelines)
  • Weather (http://www.academickids.com/encyclopedia/index.php/Weather)
  • US States (http://www.academickids.com/encyclopedia/index.php/US_States)

Information

  • Home Page (http://academickids.com/encyclopedia/index.php)
  • Contact Us (http://www.academickids.com/encyclopedia/index.php/Contactus)

  • Clip Art (http://classroomclipart.com)
Toolbox
Personal tools