What is Abstract Data Types – Data Types

This question appears a lot in front of Computer Science Students, that What is Abstract Data types?

Before we define Abstract Data types, let us define two important terms what are data types? and what are primitive data types?


Data Types

data type is collection of data having specified values in computer language. For example, int, float, double, string, char, etc. There is a predefined data size to save every data type; For example, int takes 2bytes of size, float takes 4 bytes of size, char takes 1 byte of size, etc. A size Data Type takes actually depends on the compiler. To know more about the Data types and their importance, visit HERE.

Primitive Data Types

These are the Data types that are already defined in the system, because of which these are also known as System-defined data types. For example, in the C++ language, the primitive data types are int, double, char, etc. Usually, most of the primitive data types support operations like addition, subtraction, etc. The system or Programming language provides the implementations of these operations. Too. Various languages may have different data type sizes for the same data types. To know more about the Primitive Data types and their importance, visit HERE.

What is abstract Data Types?

Abstract Data types are actually user-defined data types that behave according to the value and functions defined by the user. To solve a problem, wintegrate data structures with the user-defined functions, called Abstract Data Type. Different examples of Abstract Data Types are Stacks, Queues, Linked Lists, Trees, Dictionaries, Sets, Hash Tables, etc.

Abstract Data type has two parts, Data, and Operations. For example Linked List, it has two parts a data part and a Function Part, Data Part Stored a value at a specific node, and the Operation part moves the Linked List to the next Node. ADTs are designed for variety of applications, and some are highly specialized for certain tasks.



Data Structures related posts visit HERE

Algorithms related posts visit HERE

Databases related posts Visit HERE

Python-related posts Visit HERE

C++ related posts Visit HERE

Data Science related posts visit HERE

Share the Knowledge