P1 Lec Data Structure
P1 Lec Data Structure
P1 Lec Data Structure
Structure
Jorge F. Resurreccion
Prepared By
Lesson Overview
Data Structure
Lesson Outline
Area Where
What are Why Do We Types of
Why Data Data
Data Need Data Data
Structure? Structure is
Structures? Structure? Structure
Applied
Data Structure
Intended Learning Outcomes
• Define the meaning of Data Structures
• Explain why we need Data Structures
• Enumerate the different types of Data Structures
Data Structure
What are Data Structures?
• Data structure is a storage that is used to store and
organize data. It is a way of arranging data on a
computer so that it can be accessed and updated
efficiently.
• Data structures are methods of storing and organizing
data in a computer system so that operations can be
performed upon them more efficiently.
• When data is “unstructured,” it does not have a
defined data model or is not organized in a manner
that is conducive to operations or analysis.
– For example, Suppose we have some data of the students of class 4. As we know that every
students have name, age and roll number in general.
– If we consider a student whose name is “Pawan”, age is 17 and he is from class 4. Here
“Pawan” name is of String data, and 17 and 1 is integer data.
– If we have only one the data of single student then it is easy to manage and store. But what
about if we have thousands of students data?
– So for that purpose data structure concept is needed to handle the operations on that large
amount of data.
– Means we have to use array or linked list as per requirement to manage that much data and
perform any desired operation on it efficiently.
Data Structure
Why do we need data structures?
• Data structures are used in every program or software
system to arrange the data.
• Data structures are essential ingredients of many
efficient algorithms. It helps in the management of
huge amounts of data, such as a large integrated
collection of databases.
• Each Data Structure allows data/elements to be
stored in a specific manner in the memory.
Data Structure
Why do we need data structures?
• Data Structure helps in efficient data search and
retrieval.
• For specific problems, specific Data structures are
used.
• Data Structure allows managing a large amount of
data, such as large databases and indexing services
such as a hash table.
• Data structures organized the storage and retrieval of
data and information which is stored in both main
memory and secondary memory.
Data Structure
Area where data structure is applied
• In Numerical analysis
• In Operating System
• In Artificial intelligence
• In Compiler design
• In Statistical analysis package
• In DBMS
• In Simulation
• In Graphics Design
Data Structure
TYPES OF DATA STRUCTURE
9/3/2022
Types of Data Structure
• Data structures are divided into two categories:
– The type of elements that can be stored in the form of arrays is determined by the
programming language.
9/3/2022