0% found this document useful (0 votes)
3 views1 page

S4 Algorithim

The document outlines various operations that can be performed on data structures, including traversing, searching, insertion, deletion, creation, selection, updating, sorting, merging, and splitting data. It also defines algorithms as a set of finite rules or instructions for problem-solving and highlights their applications in fields such as computer science, mathematics, operations research, artificial intelligence, and data science. The importance of algorithms is emphasized as they are foundational to modern technology and decision-making processes.

Uploaded by

Krishna Dwepayan
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
3 views1 page

S4 Algorithim

The document outlines various operations that can be performed on data structures, including traversing, searching, insertion, deletion, creation, selection, updating, sorting, merging, and splitting data. It also defines algorithms as a set of finite rules or instructions for problem-solving and highlights their applications in fields such as computer science, mathematics, operations research, artificial intelligence, and data science. The importance of algorithms is emphasized as they are foundational to modern technology and decision-making processes.

Uploaded by

Krishna Dwepayan
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd

Operations on different Data Structure: There are different types of operations that can be

performed for the manipulation of data in every data structure. Some operations are explained and
illustrated below: Traversing: Traversing a Data Structure means to visit the element stored in it.
It visits data in a systematic manner. This can be done with any type of DS. Searching: Searching
means to find a particular element in the given data-structure. It is considered as successful when
the required element is found. Searching is the operation which we can performed on data-
structures like array, linkedlist, tree, graph, etc. Insertion: It is the operation which we apply on
all the data-structures. Insertion means to add an element in the given data structure. The
operation of insertion is successful when the required element is added to the required data-
structure. It is unsuccessful in some cases when the size of the data structure is full and when
there is no space in the data-structure to add any additional element. The insertion has the same
name as an insertion in the data-structure as an array, linked-list, graph, tree. In stack, this
operation is called Push. In the queue, this operation is called Enqueue. 9 Data Structures
Deletion: It is the operation which we apply on all the data-structures. Deletion means to delete an
element in the given data structure. The operation of deletion is successful when the required
element is deleted from the data structure. The deletion has the same name as a deletion in the
data- structure as an array, linked-list, graph, tree, etc. In stack, this operation is called Pop. In
Queue this operation is called Dequeue. Create: It reserves memory for program elements by
declaring them. The creation of data structure can be done during o Compile-time o Run-time.
Selection: It selects specific data from present data. You can select any specific data by giving
condition in loop. Update: It updates the data in the data structure. You can also update any
specific data by giving some condition in loop like select approach. Sort: Sorting data in a
particular order (ascending or descending). We can take the help of many sorting algorithms to sort
data in less time. Example: bubble sort which takes O (n^2) time to sort data. There are many
algorithms present like merge sort, insertion sort, selection sort, quick sort, etc. Merge: Merging
data of two different orders in a specific order may ascend or descend. We use merge sort to merge
sort data. Split Data: Dividing data into different sub-parts to make the process complete in less
time. 10 Data Structures Algorithm Specifications: What is an Algorithm? Algorithm Basics The
word Algorithm means” A set of finite rules or instructions to be followed in calculations or other
problem-solving operations” or” A procedure for solving a mathematical problem in a finite
number of steps that frequently involves recursive operations”. Therefore, Algorithm refers to a
sequence of finite steps to solve a particular problem. Use of the Algorithms: Algorithms play a
crucial role in various fields and have many applications. Some of the key areas where algorithms
are used include: Computer Science: Algorithms form the basis of computer programming and are
used to solve problems ranging from simple sorting and searching to complex tasks such as
artificial intelligence and machine learning. Mathematics: Algorithms are used to solve
mathematical problems, such as finding the optimal solution to a system of linear equations or
finding the shortest path in a graph. Operations Research: Algorithms are used to optimize and
make decisions in fields such as transportation, logistics, and resource allocation. Artificial
Intelligence: Algorithms are the foundation of artificial intelligence and machine learning, and are
used to develop intelligent systems that can perform tasks such as image recognition, natural
language processing and decision-making. Data Science: Algorithms are used to analyze, process,
and extract insights from large amounts of data in fields such as marketing, finance and healthcare.
These are just a few examples of the many applications of algorithms. The use of algorithms is
continually expanding as new technologies and fields emerge, making it a vital component of
modern society.

You might also like