Data Structures
Data Structures
STRUCTURE
S Click icon to add picture
Agenda
1 2 3 4 5
Introduction Time and space Linear Data Non-Linear Searching &
complexity Structures DATA Sorting
analysis Structures
3
Data
• Data is nothing but a piece of information. Data input, data
manipulation (or data processing), and data output are the
functions of computers.
• Hence all information taken as input, processed within a
computer, or provided as output to the user is nothing but
data. It can be a number, a string, or a set of many
numbers and strings.
• Data Classified into 2-Types
• Atomic Data
• Composite Data
4
Data [Cont…]
• Atomic Data :
• Atomic data is the data that we choose to consider as a single,
non-decomposable entity.
• For example, the integer 1234 may be considered as a single
integer value.
• In some languages, atomic data is known as scalar data because
of its numeric properties.
• Composite Data :
• The opposite of atomic data is composite data.
• Composite data can be broken down into subfields that have
meaning.
• For example, a student’s record consists of Roll_Number,Name,
5
Branch, Year, and so on. Presentation title 2024
Data Type
• Data type refers to the kind of data a variable may store.
• Whenever we try to implement any algorithm in some
programming language, we need variables.
• Data type is a term that specifies the type of data that a
variable may hold in the programming language.
• Data types are classified into 2-types :
• Built-in data types
• User defined data types
•
•
The Class Array
• The array ADT can support various operations such as
• Traversal
• sorting
• searching
• insertion
• deletion
• merging.