What does comparator mean?
A comparator is anything designed to make systematic comparisons between two things, though the word is chiefly at home in technical fields. In electronics, a comparator is a circuit — often built from an operational amplifier — that takes two input voltages and outputs a signal indicating which is greater, a basic building block of analog-to-digital conversion and threshold detection. In engineering metrology, an optical comparator projects a magnified silhouette of a workpiece onto a screen so its dimensions can be checked against a standard. In computer programming, a comparator is a function or object supplied to a sorting algorithm that defines the order of elements, allowing developers to sort data by any criterion they choose. The term derives from the Latin comparare, 'to compare,' placing it firmly within the family of comparison words. Precise, functional, and largely formal in register, comparator is essential vocabulary for engineers and programmers alike.
nounA device, instrument, or program that compares things — such as an optical comparator used in metrology or a software component that determines the ordering of two objects. More broadly, a person or thing that makes comparisons.
- A device or circuit (especially in electronics) that compares two signals or values and indicates which is larger.
- A function, routine, or parameter in computing that defines how two elements are ordered for sorting or searching.
- An optical or mechanical instrument in engineering that magnifies and measures differences between an object and a standard.
"The lab technician measured the gear tooth profile using an optical comparator."
"The microcontroller uses an internal voltage comparator to decide whether the sensor reading exceeds the threshold."
"To sort the records by date instead of name, simply pass a custom comparator to the sort function."
Regular plural; standard in all contexts.
"Modern microcontrollers often include several built-in analog comparators on a single chip."
In Java and Python alike, the humble comparator quietly decides the order of nearly everything you've ever seen sorted on a screen.
Reviewed by Deb Chak, Editor. AI-assisted content curated by RJS Tech Solutions LLP.
Etymology of comparator
Comparator comes from the Latin verb comparare, meaning 'to compare' or 'to pair together', formed from com- ('together') and par ('equal'). English borrowed the noun via post-classical Latin and Old French during the early modern period, initially denoting one who compares. Its modern technical senses developed in the nineteenth and twentieth centuries alongside precision instruments, electrical circuits, and eventually computer science, where it became standard terminology in languages such as C++ and Java.
How comparator is actually used
Predominantly a technical term found in electronics, metrology, and programming; rare in everyday conversation. In electronics, 'op-amp comparator' and 'voltage comparator' are standard usages; in software, it typically denotes a callback or object defining ordering rules.
Easily confused with comparator
A comparison is the act or result of comparing, while a comparator is the tool, device, or function that performs the comparing.