1-Introduction To Data Structures
1-Introduction To Data Structures
Text Books:
1. Sartaj Sahni, “Data Structures, Algorithms”, Tata Mc Graw Hill, New York
2. E Balagurusamy,”Data Structures using C”, McGraw Hill
3. Narasimha Karumanchi, “Data Structures and Algorithms” Made Easy
Reference Books:
4. Corman et al., “Introduction to Algorithms”
5. Kruse, Tonso, Leung, “Data Structures and Program Design in C”
6. Langsam, Augestein, Tanenbaum, “Data Structures using C and C++”
7. Weiss, “Data Structures and Algorithm Analysis in C/C++”
8. Carrano and Prichard, “Data Abstraction and Problem solving with C++”
Marks Distribution(Data Structures)
You will be able to evaluate the quality of a program (Analysis of Algorithms: Running
time and memory space )
You will be able to give non-trivial methods to solve problems.
Data: simply a value or a set of values of different type which is called data types like string,
integer, char etc.
Structure: Way of organizing information, so that it is easier to use –can be easier to use.
Data Structure ?
A data structure is a particular way of organizing data in a computer memory so that it can
be used efficiently.
Even though computers can perform literally millions of mathematical computations per
second, when a problem gets large and complicated, performance can nonetheless be an
important consideration.
One of the most crucial aspects to how quickly a problem can be solved is how the data is
stored in memory.
Why Data Structure
Examples of ADT:
1. stack: operations are "push an item onto the stack", "pop an item from the
stack", "ask if the stack is empty"; implementation may be as array or linked list
or whatever.
2. queue: operations are "add to the end of the queue", "delete from the
beginning of the queue", "ask if the queue is empty"; implementation may be as
array or linked list or heap.
Cost of Data Structures
So, selection of data structure plays important role to make algorithm efficient
But, it depends on the nature of problem and operations to be supported.