Skip to main content
comparator

comparator

1 6.3
A function that checks two items to decide their order in a list
  • noun
  • /kəmˈpærətər/
  • Specialized
translation icon : comparador
  • You must implement a custom comparator to compare objects based on their attributes.

Examples

  • In programming, a comparator is essential for sorting algorithms to organize data efficiently.

  • The performance of the comparator can significantly affect the speed of the application.

  • And that vector of values goes into a comparator of some sort.

  • If I run through this comparator, OK, what I'm going to get for my Q of T is the following.

  • Thing is, the output of the comparator itself is just a PWM'd version of the input.

    Blog text (18)
  • Resizing a comparator circuit output stage, in which a cell was reused to reduce design time, would fix the problem.

    Academic text (2000)
  • Fortunately, an ingenious mechanical-optical device known as a "blink comparator" would come to the rescue.

    Academic text (2003)
  • Given that CCCSE has no legislatively invested authoritative status, it is an indirect comparator with Ofsted.

    Academic text (2014)

Synonyms

ranker
vscomparator
  • Specialized
6.3

A program that puts the most relevant search results first

works at a lower technical level using pairwise element comparisons

Surface Forms

comparator singular
comparators plural

Morphology

comparator = compare (transparent) = compare + or

Clear agentive/nominal formation from 'compare'; in programming it denotes a routine that compares elements, which follows expected morphology.

Etymology

The word comparator comes from the verb compare, which means 'put together to see differences', and in programming a comparator is a small function that 'compares two items' to decide which should come before the other.