Abstract data type refers to a mathematical model and a set of operations defined on the model. It only depends on its logical characteristics and has nothing to do with how the computer is represented and implemented internally. It embodies the decomposition of problems in programming. and information hiding characteristics.
Abstract data type (ADT
) refers toa mathematical model and a set of data defined on the model operate. It only depends on its logical characteristics and has nothing to do with how it is represented and implemented inside the computer. For example, the integer type just mentioned. Every computer, whether mainframe, minicomputer, PC, tablet or even smartphone, has an "integer" type, which also requires integer operations. So the integer type is actually an abstract data type. .
operations on that model. Just like the classic Nintendo game "Super Mario", the protagonist of the game is Mario. We have defined basic operations for him, such as forward, backward, jumping, shooting bullets, etc. This is an abstract data type that defines a data object, the relationship between elements in the object, and operations on the data elements.
ADT = (D,S,P) (D:数据对象 S:D上的关系集 P:D上的一组操作)
ADT 抽象数据类型名称{ 数据对象:<数据对象的定义>; 数据关系:<数据关系的定义>; 基本操作:<基本操作的定义> }
Related learning recommendations:
The above is the detailed content of What are abstract data types. For more information, please follow other related articles on the PHP Chinese website!