Data Structure Introduction
Data Structure Introduction
CSE Department
National Institute of Technology Rourkela
This lecture: outlines
What is Data?
What is Data type?
What is abstract data type?
What is Data Structure?
Why Data Structure?
What are different types of Data Structure?
Why different data structure?
Primitive
Integer, Character, Float
Non-primitive (Complex)
String
Arrays etc.
Algorithm:
An algorithm is a step-by-step procedure for solving a problem
Data
Structure
Linear Non-linear
Reference: https://medium.com/basecs/whats-a-linked-list-anyway-part-1-d8b7e6508b9d
NIT Rourkela Puneet Kumar Jain “Data Structure and Algorithms”
Why different data structure
There is no ultimate data structure...
The choice depends on our requirements
Ref:https://slideplayer.com/slide/1450967/
NIT Rourkela Puneet Kumar Jain “Data Structure and Algorithms”
Why different data structure
2. Frequent operation: The structure should be simple enough that
one can electively process the data when necessary
Traversing: to access every record at once
Searching: to find a location of the record using key
Insertion: adding a new record
Deletion: remove a record from the structure
Sorting: arranging items in a sequence ordered by some criterion
Merging: combine
Operations
Special operations
node
linked
Linked list A B C
Arbitrary
Front/1st Back/nth
Location
Find Good Okay Good
Insert Bad Bad Good
Erase Bad Bad Good
Arbitrary
Front/1st Back/nth
Location
Find Good Bad Good
Insert Bad Bad Good
Erase Bad Bad Good
Arbitrary
Front/1st Back/nth
Location
Find Good Bad Good
Insert Good Bad Good
Erase Good Bad Bad
https://medium.com/basecs/whats-a-linked-list-anyway-part-1-d8b7e6508b9d
NIT Rourkela Puneet Kumar Jain “Data Structure and Algorithms”
• End of Chapter