Data structure

Overview of DS:-

Data structure is most important field in computer science. its main objective to represent structure of data in memory with the help of various data structure tools as stack,queue,linked list, tree, graph etc.
                                      It is not a programming language but it is implemented in several programming language as C, C++, Java, vb dot net etc.
Example:-
1.       Data representation using Array.
    Case1:
10
20
30
40
50
60
70
    

                                    i.e int a[7];
    case2:
vikash
ankesh
suman
tanmay
sonu
  
              
                                     i.e char a[5][30]  
  2. Data representation using stack.
40
30
20
10
  Note:- In which data is store at TOP position. It used to store data in LIFO(last in first out)/FIFO(first in last out) order.
3.       Data representation using queue.
   
60
50
40
30
20
10
5



                                   Insertion in FIF0 order   







 
                                                           

Comments

Post a Comment

Popular posts from this blog

python pattern programming

Stack

What is function?What is function in python?