Introduction to Data Structure & Algorithms
The study of data structures helps to understand the basic concepts involved in organizing and storing data as well as the relationship among the data sets. This in turn helps to determine the way information is stored, retrieved and modified in a computer’s memory.
Algorithm is 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 language.
Algorithm efficiency is calculated in terms of Time and Space complexity. The time and space complexity of algorithm depends on the data structure which is used to solve given problem. So data structure and algorithm together play crucial role to solve any given problem efficiently.