Professional Documents
Culture Documents
DATA STRUCTURE
1.1.1. Introduction
There are several ways to organise the data. Data structure may be defined as the logical or mathematical
structure of a certain situation.
Data structure, also known as the abstract data types refer to the data class that is characterised on the basis of
organisation and operations defined on it.
The possible ways in which data has been processed and analysed is greatly affected by the data file structure.
Any changes to data file are difficult and time taking once the structure has been filled with data.
The internal structure of data file varies with the type of data file and a research project may have multiple
separate data files that are related to one another in different ways. Formatting the content of data file such as
organisation and types of variables may also determine the structure of data files. The information related to the
relationship among various elements and its content parts is also provided by the structure of data file.
Data file also includes an essential part of the metadata. For example, it may in the form of value labels,
variables and names, different kinds of supplementary content variables and notes. Thus the clarity of data
documentation is also determined by the structure of data.
Byte Sequence
Record Sequence
Tree-Based Structure
1) Byte Sequence: The operating system at first only sees bytes and does not determine what is there in file
because file is an unstructured sequence of bytes initially. User level program can be used to impose any
meaning. This approach can be used by both Windows and UNIX.
Operating system provides maximum flexibility to the files as it only regards file as a byte sequence. User
programs name their file in any way which is significant for them and put anything they want in their file.
2) Record Sequence: Record sequence is the second way to structure the file. It is a sequence of fixed-length
record each having internal structure. Read operation reads only one record and turns it back that is why file
is known as a sequence of records. One’s record has been overwrites by the write operation and connects
them.
3) Tree-Based Structure: Tree-based structure is the third way to structure data file. Different records have
different length containing a key field in fixed position in record. To enable the fast searching for a
particular key, the tree is sorted a key field.
Programming language requires management of file. A person does some calculations and stores result in some
variables when s/he run program. Since the result will lose after finishing of execution because of variable
reside in main memory (RAM). Therefore, a permanent memory which is secondary (ROM) is required to store
the results. To store data permanently, file management is the management of secondary storage. Program helps
in both storing the calculation result and taking input from file. File management is defined as the process of
storing and retrieving data from or to file, and one goes to file whenever permanent storage of data is required.
One of the most prominent examples of file management application is Data Management System.
2) Shared Data: By any number of application programs or users, database allows the share of data under its
control.
3) Integrity: Not only the accuracy, but data integrity also ensures the consistency of data consists in
database. Therefore, data values are full within a specified range and their format is correct by checking
these data values entered in for storage. To provide data integrity, incorporation of adequate checks in
DBMS can also be ensured by the centralised control.
4) Security: It is important to maintain the confidentiality of the data as it is necessary for organisation.
Unauthorised persons are not allowed to access such confidential data. Proper access procedures are
followed including proper authentication schemes for access to the DBMS and extra checks before allowing
access to sensitive data must be ensured by the DBA who has the ultimate responsibility for the data in
DBMS. Implementation of different levels of security varies with the types of data and operations.
5) Conflict Resolution: DBS resolves the conflicting requirements of various users and applications as it
controls the database. Although with a relatively slower response, while allowing less critical applications
to use the database continuously, DBA selects the best file structure and method to access to get the
significant performance for the response critical application.
6) Data Independence: Physical data independence and logical data independence are the two bases to
consider the data independence. Organisation of the files or physical storage devices can be changed
without any change in the eternal views or conceptual view and thus in application programs using the
database with the help of physical independence.
Converting the queries of the users coming directly from the query processor or indirectly from an application
program from the logical view of the user to the physical file system is one of the main functions of database
manager. Moreover, the activity to enforce constraints in order to maintain the consistency and integrity of the
both data and security is also performed by the database manager.
Database manager controls the synchronisation of simultaneous operations performed by the users. Both backup
and recovery operations are performed by the data managers.
Database Management System
Database Manager
Operating System
Computer Hardware
2) Accuracy: Data communication system also ensures the accurate delivery of the data. It eliminates the
unusable data that have been altered in transmission and left uncorrected.
3) Timeliness: Data communication system also ensures the timely delivery of the data. When it comes to
video and audio, timely delivery implies sending data as soon as it is created, in the same sequence as it is
created, and without substantial delay. Real-time transmission is the term for this type of distribution.
4) Jitter: The fluctuation in packet arrival time is referred to as jitter. It is the transmission of audio or video
packets with an uneven delay. Assume that video packets are delivered every 3D-ms, for example. If some
packets come with a 3D-ms delay while others arrive with a 4D-ms delay, the video quality will be
inconsistent.