Data Types Flashcards
(12 cards)
what are the levels of Data abstraction? (5)
Atomic Data Composite Data Data Types Data structures abstract data structures ADT
Atomic data
consists of a single piece of info (char, int ,float)
composite data
data which can be broken down into various smaller parts or subfields. Multiple properties required; usually represented by a struct
Sometimes refers to type and sometimes to data
an example of composite data?
a point on a graph, phone number, geometric shape
Data Types
packages together data and ways of manipulating data together (operations & data)
Data type consists of 2 parts:
set of values
operations that can be performed
Data Structure
an aggregation of data elements into a set with defined relationships.
2 components of Data Structures:
elements are either data type or another data structure
a set of associations or relationships (structure) between elements
Examples of Data Structures:
Array, 2D array (matrix)
Abstract Data Type ADT
an abstraction that permits programmers to make use of the data structure without knowing its internal implementation.
T or F: We dont know what an ADT can do , but we know how its implemented .
False
Abstract data type consists of:
one or more data structures
operations (interface)
Encapsulation (hiding)