U1 L1 Introduction
U1 L1 Introduction
DATA STRUCTURE =
DATA
+
STRUCTURE
DATA
Data Structure is a way of collecting and organizing data in such a way that we can
perform operations on these data in an effective way.
or
In simple language, Data Structures are structures programmed to store ordered
data, so that various operations can be performed on it easily.
It should be designed and implemented in such a way that it reduces the complexity
and increases the efficiency.
Need of Data Structures
As applications are getting complexed and amount of data is increasing day by
day, there may arrise the following problems:
Processor speed: To handle very large amout of data, high speed processing is
required, but as the data is growing day by day to the billions of files per entity,
processor may fail to deal with that much amount of data.
Data Search: Consider an inventory size of 106 items in a store, If our application
needs to search for a particular item, it needs to traverse 106 items every time,
results in slowing down the search process.
Non Linear Data Structures: This data structure does not form a
sequence i.e. each item or element is connected with two or more other
items in a non-linear arrangement. The data elements are not arranged in
sequential structure. Ex: Tree, Graphs
DATA STRUCTURE – BASIC OPERATIONS
Implementation phase
implement the program in some programming language
STEPS IN PROBLEM SOLVING
• As we know that all programming languages share basic code constructs like loops
(do, for, while), flow-control (if-else), etc. These common constructs can be used to
write an algorithm.
• Algorithm writing is a process and is executed after the problem domain is well-
defined. That is, we should know the problem domain, for which we are designing a
solution.
EXAMPLES
Hence, many solution algorithms can be derived for a given problem. The next step is to
analyze those proposed solution algorithms and implement the best suitable solution.