Brief overview of Data Structures and Algorithms are explained with examples.
Data Structures and Algorithms
Data Structure – Efficient way of arranging the data which enables to solve a problem efficiently.
Example of Data Structure : Unsorted fruit basket.
Algorithms – Steps to be followed to solve a problem.
Example of Algorithm : Preparing a fruit salad.
Queue – To avoid rush in ticket counter or ATM counter.
Tree – To identify the relationship between parent and child
Graph – To find shortest distance between cities