Notes DS CH 1 Shraddha
Notes DS CH 1 Shraddha
Notes DS CH 1 Shraddha
Data- Data can be numbers or texts written on a piece of paper, in the form of bits and bytes
stored inside the memory of electronic devices, or facts stored within a person's mind. As the
world started modernizing, this data became a significant aspect of everyone's day-to-day
life, and various implementations allowed them to store it differently.
Data is a collection of facts and figures or a set of values or values of a specific format that
refers to a single set of item values. The data items are then classified into sub-items, which
is the group of items that are not known as the simple primary form of the item.
Let us consider an example where an employee name can be broken down into three
sub-items: First, Middle, and Last. However, an ID assigned to an employee will
generally be considered a single item.
In the example mentioned above, the items such as ID, Age, Gender, First, Middle, Last,
Street, Locality, etc., are elementary data items. In contrast, the Name and the Address are
group data items.
Data Types:
Primitive Data Types: Basic types provided by a programming language as building
blocks. Examples include integers, floats, characters, and booleans.
Composite Data Types: Formed by combining primitive types. Examples include
arrays, structures, and classes.
Abstract Data Types (ADT): Custom data types defined by the user, encapsulating
data and operations. Examples include stacks, queues, lists, and trees
The study of data structure allows us to understand the organization of data and the
management of the data flow in order to increase the efficiency of any process or program.
Data Structure is a particular way of storing and organizing data in the memory of the
computer so that these data can easily be retrieved and efficiently utilized in the future when
required. The data can be managed in various ways, like the logical or mathematical model
for a specific organization of data is known as a data structure.
Some examples of Data Structures are Arrays, Linked Lists, Stack, Queue, Trees, etc. Data
Structures are widely used in almost every aspect of Computer Science, i.e., Compiler Design,
Operating Systems, Graphics, Artificial Intelligence, and many more
Data Structures are the main part of many Computer Science Algorithms as they allow the
programmers to manage the data in an effective way. It plays a crucial role in improving the
performance of a program or software, as the main objective of the software is to store and
retrieve the user's data as fast as possible.
Entities with similar attributes form an Entity Set. Each attribute of an entity set has a
range of values, the set of all possible values that could be assigned to the specific
attribute.
The term "information" is sometimes utilized for data with given attributes of
meaningful or processed data.
Data Structure:
A data structure is a particular way of organizing data in a computer to utilize it efficiently.
Common data structures include arrays, linked lists, stacks, queues, trees, and graphs.
Stack ADT: Operations include push, pop, isEmpty, isFull, and peek.
Queue ADT: Operations include enqueue, dequeue, isEmpty, and isFull.
3. Representation of Information
4. Characteristics of Algorithms
Program:
A program is a sequence of instructions written to perform a specified task on a computer. It
implements algorithms to solve specific problems.
Analyzing Programs:
Based on memory allocation, the Linear Data Structures are further classified into two
types:
1. Static Data Structures: The data structures having a fixed size are known as Static
Data Structures. The memory for these data structures is allocated at the compiler
time, and their size cannot be changed by the user after being compiled; however,
the data stored in them can be altered.
The Array is the best example of the Static Data Structure as they have a fixed size,
and its data can be modified later.
2. Dynamic Data Structures: The data structures having a dynamic size are known as
Dynamic Data Structures. The memory of these data structures is allocated at the run
time, and their size varies during the run time of the code. Moreover, the user can
change the size as well as the data elements stored in these data structures at the run
time of the code.
Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.
Alternative Proxies: