

Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
Prepare for your exams
Study with the several resources on Docsity
Earn points to download
Earn points by helping other students or get them with a premium plan
Unit 1- data structures, diff types, elementary data structures
Typology: Cheat Sheet
1 / 3
This page cannot be seen from the preview
Don't miss anything!


1.1 Definition : Data Structure Data structures are a specific way of organizing data in a computer memory, so that data can be used efficiently with Data structures. We can easily store , retrieve and process the data quickly. In other words, the possible way in which the data values such as integers, floats, chars are logically related among themselves are defined by data structures. Data structure = Organized data + operations The data structure deals with the study of how the data is organized in the memory. 1.2 Elementary Data Organization A computer is an electronic calculating machine, which manipulates the information. The study of computers include how the information is organized, manipulated and utilized. In computers one can measure quantities of information. Basic unit of information is the bit, which can assert โ ON โ or โ OFF โ position The ON is represented as 1 , โ OFF โ represented as 0. ON or OFF is one bit of information. Generally, Information = Instruction + Data Data is a part of information and a value or set of values represented by data is stored temporarily in the programs data area or stored permanently on a file in storage devices. Data is an entity piece of information. Entity has attributes(properties) which will be assigned with the values based on the Instruction. The field is a basic unit of information. A record is a collection of field values of a given entity. A file is a collection of records. Attributes Values Roll No Name DOB CITY 2101 Sriravi 5/5/98 Delhi
The records are classified according to their lengths: (i) Fixed length records : All records will contain equal number of fields with similar data items and the same amount of space allocated for each record (ii) Variable length records: Each record will have equal number of fields with same data items but available in different lengths in size. 1.3. Operations on Data structures: The data appearing in the data structure are processed by the operations, the operations on data structures are classified as follows: i) Inserting : Adding the new element to the existing data structure. ii) Deleting : Deleting the element from a data structure. iii) Traversing : Accessing each element exactly once iv) Searching : Searches a particular element in the list of elements. v) Sorting : Arranging the elements in ascending or descending order vi) Merging : Combining the two different lists into single list. 1.4 Abstract Data Type: An abstract data type (ADT) is a specification of a set of data and the set of operations that can be performed on the data. Field 1 Field 2 Field 3 Field 4 2101 Sriravi 5/5/98 Delhi 2102 Bhargavi 3/6/98 Gandhi Nagar