Data Structure

       Data Structure



Data Structure :
                                
Data Structure is the way of organising representing & processing the data stored as a single unit in memory. For example, a record in a film can have several fields of different data types and entire record may be required to be processed in one unit. In such a case Data Structures can be beneficial  as Data Structure let us combine data of different data types and process them together.
 
   So we can say "A data structure is a named group of data of different data types which can be processed as a single unit" .
        We can also say that the logical or mathematical model which defines a particular organisation of data is known as data structure.The study of such data structure involves the following steps -

 1.Logical or mathematical description of the data structure.

2. Implementation of the data structure in the computer memory.














Classification of Data Structures :

Data structures are very important in a computer system, as these not only allow the user to combine various data types in a group but also allow processing of the group as a single unit thereby making things much simpler and easier . The data can be classified into following two types -
   

1. Simple Data Structures : These 

                                                          Data structures are normally built from primitive data types like Integers,reals, characters,and boolean. Following data structures can be termed as simple data structures -
 
1. Array and
2. Structure

2. Compound Data Structures : 

                                Simple data structures can be combined in various ways to form more complex Structures called compound data structures. Compound data structures are classified into following two types -

1. Linear Data Structures : 

                                                        These data structures are single level data structures. A data structure is said to be linear when it's elements form a sequence. Following are the examples of linear data structures -

(a) Stack
(b) Queue
(c)Linked List

2. Non-Linear Data Structure : 

                            These are multilevel data structures. Examples of non-linear data structure is Tree and Graph .




              Another way of classifying data structure is as follows-

1. Homogeneous and Non-homogeneous : 

     Homogeneous data structure all element are of same type in non- homogeneous Data Structure all elements may or may not be of the same type .

2. Static and Dynamic : 

   Static data structures are those whose size and associated memory location are fixed at the time of compilation. Dynamic data structures are those whose size may decrease or increase while program execution of program.


        



Thank You...                

Comments

Popular posts from this blog

Array Declaration

Data Structure and C

Description of Various Data Structures