Professional Documents
Culture Documents
Introduction To Data Structure: Maria Cristina A. Magon
Introduction To Data Structure: Maria Cristina A. Magon
Structure
Prepared By:
MARIA CRISTINA A. MAGON
(Instructor)
What is a computer?
Computer
Computer is an electronic device
which is used for data processing and
manipulation
In order to make computer
work we need to know:
representation of data in computer
accessing of data
how to solve problem step by step
Definition
Data structure is representation of the logical
relationship existing between individual elements of
data.
In other words, a data structure is a way of
organizing all data items that considers not only the
elements stored but also their relationship to each
other.
Definition
Data structures are the building
blocks of any program or the
software.
It is a systematic way to
organize data in order to use it
efficiently.
Data may be organized in many different
ways: the logical or mathematical model of a
particular organization of data
The study of such data structure, which forms
the subject matter of the text, includes the
following three steps:
1. Logical or mathematical description of the
structure.
2. Implementation of the structure on a computer.
3. Quantitative analysis of the structure, which
include determining the amount of memory
needed to store the structure and the time
required to process the structure.
Characteristics of a data
Structure
Correctness- data structure
implementation should implement its
interface correctly
Time complexity- running time or the
execution time of operations of data
structure must be as small as possible.
Space complexity- memory usage
Need for Data Structure
Data search- consider an inventory of 1
million items of a store. If the application is
to search an item, it has to be search an
item in 1 million items every time slowing
down the search. As data grows, search will
become slower.
Need for Data Structure
Processor speed- processor speed although
being very high, falls limited if the data
grows billion records.
Multiple requests- as thousands of users can
search data simultaneously on a web server,
even the fast server fails while searching the
data
Terminologies
Data: Data can be defined as an elementary
value or the collection of values.
Data is raw, unorganized facts that need to be
processed. Data can be something simple and
seemingly random and useless until it is
organized.
Example, student's name and its id are the data
about the student. Each student's test score is
one piece of data.
Terminologies
Data: Data can be defined as an elementary
value or the collection of values, for example,
student's name and its id are the data about the
student.