Introduction of Data Structure
Introduction of Data Structure
2
Course Outcome
After doing this course, the student will be able
to
1. Identify how arrays, linked lists, stacks,
queues, trees, and graphs are represented in
memory and used by algorithms.
2. Devise appropriate data structures for solving
computing problems.
3
Index
• Concept of data and information
• Introduction to Data Structures
• Types of data structure: Linear and non-linear
• Operations on Data Structures
Data
• Data is a raw and unorganized fact that required to
be processed to make it meaningful. Data can be
simple at the same time unorganized unless it is
organized. Generally, data comprises facts,
observations, perceptions numbers, characters,
symbols, image, etc.
• Data is always interpreted, by a human or machine,
to derive meaning. So, data is meaningless. Data
contains numbers, statements, and characters in a
raw form
Information
• Information is a set of data which is processed in a
meaningful way according to the given
requirement. Information is processed, structured,
or presented in a given context to make it
meaningful and useful.
• It is processed data which includes data that
possess context, relevance, and purpose. It also
involves manipulation of raw data.
Continue
Differences Between Data and Information
• Data types
A particular kind of data item, as defined by the
values it can take, the programming language used,
or the operations that can be performed on it.
Primitive Data Structure
• Primitive data structures are basic structures and are directly
operated upon by machine instructions.
• Primitive data structures have different representations on
different computers.
• Integers, floats, character and pointers are examples of primitive
data structures.
• These data types are available in most programming languages as
built in type.
• Integer: It is a data type which allows all values without fraction part. We
can use it for whole numbers.
• Float: It is a data type which use for storing fractional numbers.
• Character: It is a data type which is used for character values.
• Pointer: A variable that holds memory address of another variable are
called pointer.
Non primitive Data Type
• These are more sophisticated data structures.
• These are derived from primitive data structures.
• The non-primitive data structures emphasize on structuring of a
group of homogeneous or heterogeneous data items.
• Examples of Non-primitive data type are Array, List, and File etc.
• A Non-primitive data type is further divided into Linear and
Non-Linear data structure
• Array: An array is a fixed-size sequenced collection of elements of
the same data type.
• List: An ordered set containing variable number of elements is called
as Lists.
• File: A file is a collection of logically related information. It can be
viewed as a large list of records consisting of various fields.
Linear data structures
For queries
Email: [email protected]
25