Data Structure and Algorithm Job Preparation
Data Structure and Algorithm Job Preparation
Data Structure and Algorithm Job Preparation
What is data-structure?
Data structure is a way of defining, storing & retriving of data in a structural & systemetic way. A
data structure may contain different type of data items.
Data structure availability may vary by programming languages. Commonly available data
structures are list, arrays, stack, queues, graph, tree etc.
What is algorithm?
A problem can be solved in more than one ways. So, many solution algorithms can be derived
for a given problem. We analyze available algorithms to find and implement the best suitable
algorithm.
An algorithm are generally analyzed on two factors − time and space. That is, how
much execution time and how much extra space required by the algorithm.
Asymptotic analysis can provide three levels of mathematical binding of execution time
of an algorithm –
Best case is represented by Ω(n) notation.
Worst case is represented by Ο(n) notation.
Average case is represented by Θ(n) notation.
A linear data-structure has sequentially arranged data items. The next time can be located in
the next memory address. It is stored and accessed in a sequential manner. Array and list are
example of linear data structure.
18/10/2020