grammar · medium
易错句子A ADT is a data structure that you can define yourself.
正确表达An ADT is a data structure that you can define yourself.
ADT 读作 /ˌeɪ diː ˈtiː/,以元音音素开头,因此不定冠词要用 an 而不是 a。
抽象数据类型
先理解核心含义,再看它在真实句子里的用法。
抽象数据类型
abstract data type
In computer science, an ADT defines the operations that can be performed on a data structure without specifying how they are implemented.
在计算机科学中,抽象数据类型定义了可对数据结构执行的操作,而不指定这些操作的具体实现方式。
用法提示:ADT 是抽象数据类型的缩写,在本句中作主语名词。
When you design a program, you can use an ADT to separate the interface from the implementation details.
在设计程序时,可以用抽象数据类型将接口与实现细节分开。
用法提示:ADT 用作可数名词,前有不定冠词 an,表示一种抽象数据类型。
Our teacher asked us to implement a stack as an ADT before writing the actual code.
老师要求我们先以抽象数据类型的形式实现一个栈,再编写实际代码。
用法提示:ADT 在句中作介词 as 的宾语,指抽象数据类型。
在计算机科学语境中,ADT 是 abstract data type 的缩写;两者可互换,但正式写作或首次提及时常用完整形式。
grammar · medium
易错句子A ADT is a data structure that you can define yourself.
正确表达An ADT is a data structure that you can define yourself.
ADT 读作 /ˌeɪ diː ˈtiː/,以元音音素开头,因此不定冠词要用 an 而不是 a。
grammar · medium
易错句子We need to create several ADT for this algorithm.
正确表达We need to create several ADTs for this algorithm.
ADT 是可数名词,复数形式应在缩写后加 -s,表示多个抽象数据类型。
grammar · medium
易错句子The library contains many useful ADT's.
正确表达The library contains many useful ADTs.
英语中复数名词不加撇号;ADT's 只用于所有格或缩写形式,表示多个时直接写 ADTs。
抽象类(abstract class)是一种不能被直接实例化的类;抽象数据类型(ADT)是描述数据与操作接口的规范。两者都含“抽象”,但 ADT 不是面向对象语言中的类,而是独立于实现的数据类型。
数据结构指数据的存储和组织方式,是具体实现;抽象数据类型(ADT)只定义外部操作和逻辑行为,不规定存储细节。栈的 ADT 定义 push/pop,而数组或链表是其数据结构实现。
adb 与 ADT 拼写相近(前两个字母相同),且都可能出现在安卓开发文本中;本条目 ADT 指“抽象数据类型”,adb 则是连接安卓设备的调试工具。
抽象数据类型的实现
The ADT implementation hides the underlying data structure from the user.
该抽象数据类型的实现向用户隐藏了底层数据结构。
抽象数据类型的规范
Before coding, we wrote the ADT specification to define the supported operations.
编码之前,我们编写了抽象数据类型的规范来定义支持的操作。
抽象数据类型的操作
The ADT operations include insert, delete, and search.
该抽象数据类型的操作包括插入、删除和查找。
抽象数据类型的接口
Programmers only need to know the ADT interface, not the details of its implementation.
程序员只需了解抽象数据类型的接口,而无需了解其实现细节。
栈抽象数据类型
A stack ADT provides push and pop as its fundamental operations.
栈抽象数据类型将入栈和出栈作为其基本操作。
队列抽象数据类型
In this course, we implement a queue ADT using a circular array.
在这门课程中,我们用环形数组实现队列抽象数据类型。
ADT是一种抽象数据类型,通常由具体的数据结构来实现。
栈是ADT的经典例子,具有后进先出的操作特性。
队列也是常用ADT,遵循先进先出的操作规则。
ADT通过接口定义可执行的操作,隐藏内部实现细节。
算法可以作用在ADT之上,通过其定义的操作来解决问题。
Dictionary facts from ECDICT, WIKTIONARY.