SlideShare a Scribd company logo
CSE-443
SIX WEEKS
SUMMER
TRAINING
COMPETITIVE CODING USING DATA
STRUCTURES
BY HUMAN RESOURCE DEVELOPMENT
CENTRE, LOVELY PROFESSIONAL
UNIVERSITY
--UDIT AGARWAL
--12108895
INTRODUCTION
• A data structure is a way of organizing and storing data to
enable efficient manipulation, retrieval, and management.
• It defines how data elements are arranged and connected,
providing a framework for performing various operations
on the data.
• Data structures are fundamental in computer science and are
used to optimize algorithms and solve a wide range of
problems.
• For ex- Arrays, LinkedList, Stack, Queue, Tree etc.
SEARCHING
• Searching Algorithms are designed to check for an
element or retrieve an element from any data structure
where it is stored. Based on the type of search operation,
these algorithms are generally classified into two
categories:
1. Sequential Search: In this, the list or array is traversed
sequentially, and every element is checked. For
example: Linear Search.
2. Interval Search: These algorithms are specifically
designed for searching in sorted data-structures. These
type of searching algorithms are much more efficient
than Linear Search as they repeatedly target the center of
the search structure and divide the search space in half.
For Example: Binary Search.
SORTING
A Sorting Algorithm is used to
rearrange a given array or list of
elements according to a
comparison operator on the
elements. The comparison operator
is used to decide the new order of
elements in the respective data
structure.
For Example: The Array
[45,25,65,10,90] can be written in
a sorted way as [10,25,45,65,90].
Its very helpful in searching any
element in any given array.
ARRAYS
• An array is a collection of items
stored at contiguous memory
locations. The idea is to store
multiple items of the same type
together. This makes it easier to
calculate the position of each
element by simply adding an offset
to a base value, i.e., the memory
location of the first element of the
array (generally denoted by the
name of the array).
2-D ARRAY
• A 2-D Array represents a collection of numbers
arranged in an order of rows and columns. It is
necessary to enclose the elements of the array in
parentheses or brackets.
• For example:
• This array has 3 rows and 3 columns. Each
element of array can be referred to by its row
and column number. For example, a[0][0]=1
LINKED LIST
• A linked list is a linear data
structure, in which the elements are
not stored at contiguous memory
locations. The elements in a linked
list are linked using pointers as
shown in the below image:
TYPE OF LINKED-LIST
Singly
linked list
Doubly
linked list
Circular
linked list
STACK
• Stack is a linear data structure
which follows a particular order in
which the operations are performed.
The order may be LIFO(Last In
First Out) or FILO(First In Last
Out).
QUEUE
• A queue is defined as a linear data structure that
is open at both ends and the operations are
performed in First In First Out (FIFO) order.
• We define a queue to be a list in which all
additions to the list are made at one end, and all
deletions from the list are made at the other
end. The element which is first pushed into the
order, the operation is first performed on that.
TREE
• A tree is non-linear and a hierarchical data structure
consisting of a collection of nodes such that each node
of the tree stores a value and a list of references to
other nodes (the “children”).
• This data structure is a specialized method to organize
and store data in the computer to be used more
effectively. It consists of a central node, structural
nodes, and sub-nodes, which are connected via edges.
We can also say that tree data structure has roots,
branches, and leaves connected with one another.
BINARY SEARCH TREE
Binary Search Tree is
a node-based binary
tree data structure
which has the
following properties:
The left subtree of a
node contains only
nodes with keys lesser
than the node’s key.
The right subtree of a
node contains only
nodes with keys
greater than the node’s
key.
The left and right
subtree each must
also be a binary
search tree.
BACKTRACKING
• Backtracking is an algorithmic technique for
solving problems recursively by trying to build a
solution incrementally, one piece at a time,
removing those solutions that fail to satisfy the
constraints of the problem at any point of time
(by time, here, is referred to the time elapsed till
reaching any level of the search tree).
WHY LEARN DSA
• Data structures and algorithms (DSA) goes
through solutions to standard problems in detail
and gives you an insight into how efficient it is to
use each one of them. It also teaches you the
science of evaluating the efficiency of an
algorithm. This enables you to choose the best of
various choices.
LEARNING OUTCOMES
• Understand the concept of Dynamic memory
management, data types, algorithms, Big O
notation.
• Understand basic data structures such as
arrays, linked lists, stacks and queues.
• Describe the hash function and concepts of
collision and its resolution methods
• Solve problem involving graphs, trees and
heaps
• Apply Algorithm for solving problems like
sorting, searching, insertion and deletion of
data
PROJECT
Library Management System
With the help of Hashmap
Modules:-
Addbook()
Remove book()
Search book()
Issue book()
F_latter() // to find which more books student needed
OUTPUTS
data science
Thank You

More Related Content

PPT
C++ Data Structure PPT.ppt
PPTX
Data structfghz€zdsrgnhlhlfdshllures.pptx
PPTX
Introduction to Data Structures and their importance
PPTX
1-Introduction to Data Structures beginner.pptx
PPT
Lecture 1 - Overview of Data Structure .ppt
PPTX
C++ Data Structure PPT.pptx
PDF
viva.pdfjgthjghngnfgnfgnhfnhvndrcfbdrfgd
PPTX
Introduction to data structures - Explore the basics
C++ Data Structure PPT.ppt
Data structfghz€zdsrgnhlhlfdshllures.pptx
Introduction to Data Structures and their importance
1-Introduction to Data Structures beginner.pptx
Lecture 1 - Overview of Data Structure .ppt
C++ Data Structure PPT.pptx
viva.pdfjgthjghngnfgnfgnhfnhvndrcfbdrfgd
Introduction to data structures - Explore the basics

Similar to data science (20)

PPTX
project on data structures and algorithm
PPTX
Summer Training Project On Data Structure & Algorithms
PPTX
EE-232-LEC-01 Data_structures.pptx
PPTX
Basics of Data Structure in engineering courses
PPTX
DSA Ch1(Introduction) [Recovered].pptx
PPTX
Data_structures_and_algorithm_Lec_1.pptx
PPTX
Data_structures_and_algorithm_Lec_1.pptx
PPTX
DATA STRUCTURES and its classifications.pptx
PPT
data structure algorithm example and example
PPT
PMDATA STRUICVIUDGHfjufguigfuigkguidfui.ppt
PPT
Data Structures and Algorithm for Engineers.ppt
PPT
DATA STRUCTURES IN INFORMATION TECHNOLOGY
PPT
DSA theory all topics (summary) presentation
PPT
02-dataStructurePM and algortima for python.ppt
PPT
Basic Data Structure and its concepts details
PPTX
data structures module I & II.pptx
PPT
Unit 1.ppt
PPT
different types of data structures using c.ppt
PPT
data structure programing language in c.ppt
project on data structures and algorithm
Summer Training Project On Data Structure & Algorithms
EE-232-LEC-01 Data_structures.pptx
Basics of Data Structure in engineering courses
DSA Ch1(Introduction) [Recovered].pptx
Data_structures_and_algorithm_Lec_1.pptx
Data_structures_and_algorithm_Lec_1.pptx
DATA STRUCTURES and its classifications.pptx
data structure algorithm example and example
PMDATA STRUICVIUDGHfjufguigfuigkguidfui.ppt
Data Structures and Algorithm for Engineers.ppt
DATA STRUCTURES IN INFORMATION TECHNOLOGY
DSA theory all topics (summary) presentation
02-dataStructurePM and algortima for python.ppt
Basic Data Structure and its concepts details
data structures module I & II.pptx
Unit 1.ppt
different types of data structures using c.ppt
data structure programing language in c.ppt

Recently uploaded (20)

PPTX
Microbial diseases, their pathogenesis and prophylaxis
PPTX
Cell Types and Its function , kingdom of life
PPTX
Institutional Correction lecture only . . .
PDF
The Lost Whites of Pakistan by Jahanzaib Mughal.pdf
PPTX
Lesson notes of climatology university.
PDF
Computing-Curriculum for Schools in Ghana
PDF
Insiders guide to clinical Medicine.pdf
PDF
Module 4: Burden of Disease Tutorial Slides S2 2025
PDF
STATICS OF THE RIGID BODIES Hibbelers.pdf
PDF
102 student loan defaulters named and shamed – Is someone you know on the list?
PDF
2.FourierTransform-ShortQuestionswithAnswers.pdf
PDF
Physiotherapy_for_Respiratory_and_Cardiac_Problems WEBBER.pdf
PDF
BÀI TẬP BỔ TRỢ 4 KỸ NĂNG TIẾNG ANH 9 GLOBAL SUCCESS - CẢ NĂM - BÁM SÁT FORM Đ...
PPTX
Pharma ospi slides which help in ospi learning
PDF
Supply Chain Operations Speaking Notes -ICLT Program
PDF
TR - Agricultural Crops Production NC III.pdf
PDF
Complications of Minimal Access Surgery at WLH
PDF
Pre independence Education in Inndia.pdf
PPTX
school management -TNTEU- B.Ed., Semester II Unit 1.pptx
PPTX
1st Inaugural Professorial Lecture held on 19th February 2020 (Governance and...
Microbial diseases, their pathogenesis and prophylaxis
Cell Types and Its function , kingdom of life
Institutional Correction lecture only . . .
The Lost Whites of Pakistan by Jahanzaib Mughal.pdf
Lesson notes of climatology university.
Computing-Curriculum for Schools in Ghana
Insiders guide to clinical Medicine.pdf
Module 4: Burden of Disease Tutorial Slides S2 2025
STATICS OF THE RIGID BODIES Hibbelers.pdf
102 student loan defaulters named and shamed – Is someone you know on the list?
2.FourierTransform-ShortQuestionswithAnswers.pdf
Physiotherapy_for_Respiratory_and_Cardiac_Problems WEBBER.pdf
BÀI TẬP BỔ TRỢ 4 KỸ NĂNG TIẾNG ANH 9 GLOBAL SUCCESS - CẢ NĂM - BÁM SÁT FORM Đ...
Pharma ospi slides which help in ospi learning
Supply Chain Operations Speaking Notes -ICLT Program
TR - Agricultural Crops Production NC III.pdf
Complications of Minimal Access Surgery at WLH
Pre independence Education in Inndia.pdf
school management -TNTEU- B.Ed., Semester II Unit 1.pptx
1st Inaugural Professorial Lecture held on 19th February 2020 (Governance and...

data science

  • 1. CSE-443 SIX WEEKS SUMMER TRAINING COMPETITIVE CODING USING DATA STRUCTURES BY HUMAN RESOURCE DEVELOPMENT CENTRE, LOVELY PROFESSIONAL UNIVERSITY --UDIT AGARWAL --12108895
  • 2. INTRODUCTION • A data structure is a way of organizing and storing data to enable efficient manipulation, retrieval, and management. • It defines how data elements are arranged and connected, providing a framework for performing various operations on the data. • Data structures are fundamental in computer science and are used to optimize algorithms and solve a wide range of problems. • For ex- Arrays, LinkedList, Stack, Queue, Tree etc.
  • 3. SEARCHING • Searching Algorithms are designed to check for an element or retrieve an element from any data structure where it is stored. Based on the type of search operation, these algorithms are generally classified into two categories: 1. Sequential Search: In this, the list or array is traversed sequentially, and every element is checked. For example: Linear Search. 2. Interval Search: These algorithms are specifically designed for searching in sorted data-structures. These type of searching algorithms are much more efficient than Linear Search as they repeatedly target the center of the search structure and divide the search space in half. For Example: Binary Search.
  • 4. SORTING A Sorting Algorithm is used to rearrange a given array or list of elements according to a comparison operator on the elements. The comparison operator is used to decide the new order of elements in the respective data structure. For Example: The Array [45,25,65,10,90] can be written in a sorted way as [10,25,45,65,90]. Its very helpful in searching any element in any given array.
  • 5. ARRAYS • An array is a collection of items stored at contiguous memory locations. The idea is to store multiple items of the same type together. This makes it easier to calculate the position of each element by simply adding an offset to a base value, i.e., the memory location of the first element of the array (generally denoted by the name of the array).
  • 6. 2-D ARRAY • A 2-D Array represents a collection of numbers arranged in an order of rows and columns. It is necessary to enclose the elements of the array in parentheses or brackets. • For example: • This array has 3 rows and 3 columns. Each element of array can be referred to by its row and column number. For example, a[0][0]=1
  • 7. LINKED LIST • A linked list is a linear data structure, in which the elements are not stored at contiguous memory locations. The elements in a linked list are linked using pointers as shown in the below image:
  • 8. TYPE OF LINKED-LIST Singly linked list Doubly linked list Circular linked list
  • 9. STACK • Stack is a linear data structure which follows a particular order in which the operations are performed. The order may be LIFO(Last In First Out) or FILO(First In Last Out).
  • 10. QUEUE • A queue is defined as a linear data structure that is open at both ends and the operations are performed in First In First Out (FIFO) order. • We define a queue to be a list in which all additions to the list are made at one end, and all deletions from the list are made at the other end. The element which is first pushed into the order, the operation is first performed on that.
  • 11. TREE • A tree is non-linear and a hierarchical data structure consisting of a collection of nodes such that each node of the tree stores a value and a list of references to other nodes (the “children”). • This data structure is a specialized method to organize and store data in the computer to be used more effectively. It consists of a central node, structural nodes, and sub-nodes, which are connected via edges. We can also say that tree data structure has roots, branches, and leaves connected with one another.
  • 12. BINARY SEARCH TREE Binary Search Tree is a node-based binary tree data structure which has the following properties: The left subtree of a node contains only nodes with keys lesser than the node’s key. The right subtree of a node contains only nodes with keys greater than the node’s key. The left and right subtree each must also be a binary search tree.
  • 13. BACKTRACKING • Backtracking is an algorithmic technique for solving problems recursively by trying to build a solution incrementally, one piece at a time, removing those solutions that fail to satisfy the constraints of the problem at any point of time (by time, here, is referred to the time elapsed till reaching any level of the search tree).
  • 14. WHY LEARN DSA • Data structures and algorithms (DSA) goes through solutions to standard problems in detail and gives you an insight into how efficient it is to use each one of them. It also teaches you the science of evaluating the efficiency of an algorithm. This enables you to choose the best of various choices.
  • 15. LEARNING OUTCOMES • Understand the concept of Dynamic memory management, data types, algorithms, Big O notation. • Understand basic data structures such as arrays, linked lists, stacks and queues. • Describe the hash function and concepts of collision and its resolution methods • Solve problem involving graphs, trees and heaps • Apply Algorithm for solving problems like sorting, searching, insertion and deletion of data
  • 16. PROJECT Library Management System With the help of Hashmap Modules:- Addbook() Remove book() Search book() Issue book() F_latter() // to find which more books student needed