Module 1 Flashcards
is representation of the logical
relationship existing between individual elements
of data.
Data structure
is a way of
organizing all data items that considers not only
the elements stored but also their relationship to
each other.
data structure
affects the design of both
structural & functional aspects of a program.
Data structure
is a step by step
procedure to solve a particular function.
algorithm
is a set of instruction written
to carry out certain tasks & the data structure is the
way of organizing the data with their logical
relationship retained.
algorithm
Data structures are normally
divided into two broad categories:
- Primitive Data Structure
* Non-Primitive Data Structure
Integer, Floating-point number, Character
constants, string constants, pointers etc, fall in
this category.
Primitive Data Structure
These are basic structures and directly operated
upon by the machine instructions.
Primitive Data Structure
These are more sophisticated data structures.
Non-Primitive Data Structure
emphasize on
structuring of a group of homogeneous (same
type) or heterogeneous (different type) data items.
non-primitive data structures
2 types of non-primitive data structures
linear list
non-linear list
in X data structure, values are arrange in
linear fashion.
linear data structure
linear list
an ordered list that have a fixed-size
array
an ordered list that have variable-size
linked-list
an ordered list that adds to the top and removes from the top
stack