01 Overview of Data Structure PDF
01 Overview of Data Structure PDF
OF DATA
STRUCTUR
E
COURSE
DESCRIPTION
At the end of this presentation the students must be able to comprehend the
4. Algorithms
5. Categories of Algorithms
6. Characteristics of Algorithms
7. Algorithm Analysis
DATA STRUCTURE
2. 2.Average Case − This is the scenario depicting the average execution time
of an operation of a data structure. If an operation takes ƒ(n) time in
execution, then m operations will take mƒ(n) time.
3. Best Case − This is the scenario depicting the least possible execution time of an
operation of a data structure. If an operation takes ƒ(n) time in execution, then
the actual operation may take time as the random number which would be
maximum as ƒ(n).
BASIC TERMINOLOGY
1.Data − Data are values or set of values.
3. Group Items − Data items that are divided into sub items
are called as Group Items.
4. Elementary Items − Data items that cannot be divided are
called as Elementary Items.
BASIC TERMINOLOGY
5. Attribute and Entity − An entity is that which contains certain
attributes or properties, which may be assigned values. 6. Entity Set −
Entities of similar attributes form an entity set. 7. Field − is a single
elementary unit of information representing an attribute of an entity.
8. Record − is a collection of field values of a given entity. 9. File − is
a collection of records of the entities in a given entity set.
ALGORITHM
a step-by-step procedure, which
defines a set of instructions to be
executed in a certain order to get the
desired output. Algorithms are
generally created independent of
underlying languages, i.e. an
algorithm can be implemented in
more than one programming
language
IMPORTANT
CATEGORIES OF
ALGORITHMS
• Search − Algorithm to search an item in a data structure. Sort •
ALGORITHM
ANALYSIS
Efficiency of an algorithm can be
analyzed at two different stages, before
implementation and after
implementation. They are the following :
• A Priori Analysis − This is a
theoretical analysis of an algorithm.
Efficiency of an algorithm is
measured by assuming that all other
factors, for example, processor
speed, are constant and have no
effect on the implementation.
computer machine. In this
ALGORITHM analysis, actual statistics like
ANALYSIS running time and space
required, are collected.
ALGORITHM
COMPLEXITY
• Time Factor − Time is measured
by counting the number of key
operations such as comparisons in
the sorting algorithm.
Direction: Express your understanding in your own statements, no need to copy the definition cited above, just
explain your answers briefly the way you understand the following concepts:
1. Data Structure
4. Algorithms
5. Categories of Algorithms
6. Characteristics of Algorithms
7. Algorithm Analysis
ENABLING ASSESSMENT 2:
{
int ans = x + y + z;
} return ans;
int r = 0;
for (int i = 0; i < n; ++i)
{
r += v[i];
}
return r;
}