V2EX  ›  英汉词典
Enqueued related words: Comparer

Comparator

定义 Definition

comparator(名词):比较器;用于比较两个值/信号并给出结果的工具或规则。常见于

  1. 电子学:比较两路电压/信号,输出高/低电平等结果的电路;
  2. 计算机:用于排序/比较的比较函数/比较器对象。(另有其他更专门用法)

发音 Pronunciation

/ˈkɑːmpəˌreɪtər/

例句 Examples

The circuit uses a comparator to detect when the voltage is too high.
这个电路使用比较器来检测电压是否过高。

In Java, you can pass a comparator to sort the list by length and then by name.
在 Java 中,你可以传入一个比较器,先按长度再按名称对列表排序。

词源 Etymology

来自拉丁语 comparare(“比较、对照”),由 **com-**(“共同、一起”)+ parare(“准备、安排”)构成;后形成英语 compare(比较),再派生出表示“用于比较的装置/规则”的 comparator

相关词 Related Words

文学与著作 Literary Works

  • The Art of Electronics(Horowitz & Hill)——在模拟/数字电路章节中讨论比较器的原理与应用。
  • Design Patterns: Elements of Reusable Object-Oriented Software(Gamma 等)——在策略/比较等相关语境中常出现“比较器/比较策略”用法。
  • Introduction to Algorithms(Cormen 等)——在排序与比较模型语境下涉及“比较器/比较操作”的表述与分析。
关于   ·   帮助文档   ·   自助推广系统   ·   博客   ·   API   ·   FAQ   ·   Solana   ·   901 人在线   最高记录 6679   ·     Select Language
创意工作者们的社区
World is powered by solitude
VERSION: 3.9.8.5 · 17ms · UTC 23:27 · PVG 07:27 · LAX 15:27 · JFK 18:27
♥ Do have faith in what you're doing.