SlideShare a Scribd company logo
1 of 20
CSE-443
SUMMER INTERNSHIP
ON
DATA STRUCTURE AND ALGORITHMS (GFG)
Presented by :-
Name: I.Jayakrishna Reddy
Reg. No.: 11913860
Topics Covered
INTRODUCTION
DATA STRUCTURES
i. Asymptotic Notations
ii. Time Complexity
iii. Arrays, Trees, Linked List, etc.
ALGORITHMS
CONCLUSION
INTRODUCTION
 A computer program is a collection of instructions to perform a specific task. For this, a computer program may need to store
data, retrieve data, and perform computations on the data.
 A data structure is a named location that can be used to store and organize data. And, an algorithm is a collection of steps to
solve a particular problem. Learning data structures and algorithms allow us to write efficient and optimized computer
programs.
 An algorithm is a set of well-defined instructions in sequence to solve a problem.
Asymptotic Notation
 Asymptotic notations are mathematical tools to represent the time complexity of
algorithms for asymptotic analysis.
 Types of Asymptotic notation:
 Big Oh notation:
It represents the upper bound of the running time of an algorithm. Thus, it gives the worst case complexity of
an algorithm.
 Big Theta notation:
It encloses the function from above and below. Since it represents the upper and the lower bound of the running
time of an algorithm, it is used for analyzing the average case complexity of an algorithm.
 Big Omega notation:
It represents the lower bound of the running time of an algorithm. Thus, it provides best case complexity of an
algorithm.
(i)Big O (ii)Big Theta (iii)Big Omega
Time Complexity
 Time complexity of an algorithm signifies the total time required by the program
to run till its completion.
 Types of Time complexity:
 Worst Case:
In the worst case analysis, we calculate upper bound on running time of an
algorithm.
 Average case:
In average case analysis, we take all possible inputs and calculate computing
time for all of the inputs.
 Best case:
In the best case analysis, we calculate lower bound on running time of an
algorithm
ARRAYS
 An array is a collection of items of same data type stored at contiguous
memory locations.
 Location of the next element depends on the datatype of the element.
 Arrays allows to access elements randomly. Elements in an array can be
accessed using indexes.
 It gives a better performance as access time become faster because we can
randomly access the elements and its an advantage of array.
 Operations like searching, insertion, deletion, reversing we can with array.
TREE
 A Tree is a non-linear data structure where each node is connected to a
number of nodes with the help of pointers or references.
 Basic terminologies in tree: root node, leaf node, edge, siblings, height
of tree, etc.
 Special case of tree: Binary tree
 A Tree is said to be a Binary Tree if all of its nodes have at most 2
children i.e. all of its node can have either no child, 1 child or 2 child
nodes.
 Types of binary tree: Full binary tree, Complete binary tree, Perfect
binary tree.
 Operations on tree are Traversal, Insertion, Deletion, etc.
LINKED LIST
 Linked Lists are linear or sequential data structures in which elements are stored
at non-contiguous memory location and are linked to each other using pointers.
 Each linked list has two parts :
 Data
 Next pointer
 Types of linked list:
 Singly linked list
 Doubly linked list
 Circular linked list
 Operations are like searching, insertion and deletion, etc.
STRINGS
 Strings are defined as a stream of characters.
 Strings are used to represent text and are generally represented by enclosing text
within quotes.
 In java, objects of string are immutable which means a constant and cannot be
changed once created.
 Some methods in strings:
 Finding the length and substring
 Index of string,
 Concatenating two strings
 Comparing two strings, Uppercase, Lowercase, Trim and Replace.
 Searching algorithms:
 Naïve pattern searching: O(m*(n-m+1))
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).
 The LIFO order says that the element which is inserted at the last in the Stack
will be the first one to be removed. In LIFO order insertion takes place at the rear
end of the stack and deletion occurs at the front of the stack.
 Operations such as push, pop, etc. are performed.
 It can be implemented in two ways using arrays and linked list.
 Pros: Easy to implement. Memory is saved as pointers are not involved.
 Cons: It is not dynamic. It doesn’t grow and shrink depending on needs at
runtime.
QUEUE
 Queue is also a linear data structure which follows a particular order in which the operations are performed.
 The order is First In First Out (FIFO) which means that the element which is inserted first in the queue will
be the first one to be removed from the queue.
 Operations:
 Enqueue: Adds an item to the queue. If the queue is full, then it is said to be an Overflow Condition.
 Dequeue: Removes an item from the queue. The items are popped in the same order in which they are pushed. If the
queue is empty, then it is said to be an Underflow Condition.
 Front: Get the front item from queue.
 Rear: Get the last item from queue.
GRAPH
 A graph is a data structure that consists of the following two components:
 A finite set of vertices also called nodes.
 A finite set of ordered pair of the form (u, v) called as edge.
 Two types of graph:
 Directed graph : The Directed graphs are such graphs in which edges are directed in a single
direction.
 Undirected graph: Undirected graphs are such graphs in which the edges are directionless or
in other words bi-directional.
 Operations such as Traversal(two types)
 Breadth first traversal
 Depth first traversal
ALGORITHMS
Qualities of Good Algorithm
Searching
Recursion
Sorting
Insertion
Deletion , etc.
QUALITIES OF GOOD
ALGORITHM
 Input and output should be defined precisely.
 Each step in the algorithm should be clear and unambiguous.
 Algorithms should be most effective among many different ways to solve a problem.
 An algorithm shouldn't include computer code.
 The algorithm should be written in such a way that it can be used in different
programming languages.
SEARCHING
 Searching means searching a particular element in any data structure.
 Two types:
1. Linear search:
i. It is also known as sequential search.
ii. Time complexity: O(n)
2. Binary search:
i. It performs the search operation by repeatedly dividing the search
interval in half.
ii. It performed only on sorted arrays and it is also more efficient than the
linear search algorithm.
iii. Time complexity: O(Log n)
RECURSION
 The process in which a function calls itself directly or indirectly
is called recursion and the corresponding function is called as
recursive function.
 Recursion algorithm must have base condition in recursive
program, the solution to base case is provided and solution of
bigger problem is expressed in terms of smaller problems.
 Pros:
 Recursion provides a simple and clean way to write codes.
 Cons:
 It takes greater space and also greater time for processing.
SORTING
 Sorting any sequence means to arrange the elements of that
sequence according to some specific criterion.
 Types:
► Insertion sort: O(n^2)
► Selection sort: O(n^2)
► Bubble sort: O(n^2)
► Quick sort: O(n^2)
► Merge sort: O(log n)
CSE 443 (1).pptx
CSE 443 (1).pptx

More Related Content

What's hot

Web ontology language (owl)
Web ontology language (owl)Web ontology language (owl)
Web ontology language (owl)Ameer Sameer
 
Sql Server Performance Tuning
Sql Server Performance TuningSql Server Performance Tuning
Sql Server Performance TuningBala Subra
 
Query processing and optimization (updated)
Query processing and optimization (updated)Query processing and optimization (updated)
Query processing and optimization (updated)Ravinder Kamboj
 
A Common Database Approach for OLTP and OLAP Using an In-Memory Column Database
A Common Database Approach for OLTP and OLAP Using an In-Memory Column DatabaseA Common Database Approach for OLTP and OLAP Using an In-Memory Column Database
A Common Database Approach for OLTP and OLAP Using an In-Memory Column DatabaseIshara Amarasekera
 
Introducción a Microsoft Azure SQL Data Warehouse
Introducción a Microsoft Azure SQL Data WarehouseIntroducción a Microsoft Azure SQL Data Warehouse
Introducción a Microsoft Azure SQL Data WarehouseJoseph Lopez
 
Big Data Processing with Spark and Scala
Big Data Processing with Spark and Scala Big Data Processing with Spark and Scala
Big Data Processing with Spark and Scala Edureka!
 
Rdf data-model-and-storage
Rdf data-model-and-storageRdf data-model-and-storage
Rdf data-model-and-storage灿辉 葛
 
Data Structure and Algorithms
Data Structure and AlgorithmsData Structure and Algorithms
Data Structure and Algorithmsiqbalphy1
 
big data and machine learning ppt.pptx
big data and machine learning ppt.pptxbig data and machine learning ppt.pptx
big data and machine learning ppt.pptxNATASHABANO
 
How to enhance your DSpace repository: use cases for DSpace-CRIS, DSpace-RDM,...
How to enhance your DSpace repository: use cases for DSpace-CRIS, DSpace-RDM,...How to enhance your DSpace repository: use cases for DSpace-CRIS, DSpace-RDM,...
How to enhance your DSpace repository: use cases for DSpace-CRIS, DSpace-RDM,...4Science
 
Delta Lake Cheat Sheet.pdf
Delta Lake Cheat Sheet.pdfDelta Lake Cheat Sheet.pdf
Delta Lake Cheat Sheet.pdfkaransharma62792
 
IRJET-Stock Management System
IRJET-Stock Management SystemIRJET-Stock Management System
IRJET-Stock Management SystemIRJET Journal
 
collectd & PostgreSQL
collectd & PostgreSQLcollectd & PostgreSQL
collectd & PostgreSQLMark Wong
 
Ray: Enterprise-Grade, Distributed Python
Ray: Enterprise-Grade, Distributed PythonRay: Enterprise-Grade, Distributed Python
Ray: Enterprise-Grade, Distributed PythonDatabricks
 

What's hot (20)

Unit 1 dsa
Unit 1 dsaUnit 1 dsa
Unit 1 dsa
 
Web ontology language (owl)
Web ontology language (owl)Web ontology language (owl)
Web ontology language (owl)
 
Sql Server Performance Tuning
Sql Server Performance TuningSql Server Performance Tuning
Sql Server Performance Tuning
 
Query processing and optimization (updated)
Query processing and optimization (updated)Query processing and optimization (updated)
Query processing and optimization (updated)
 
A Common Database Approach for OLTP and OLAP Using an In-Memory Column Database
A Common Database Approach for OLTP and OLAP Using an In-Memory Column DatabaseA Common Database Approach for OLTP and OLAP Using an In-Memory Column Database
A Common Database Approach for OLTP and OLAP Using an In-Memory Column Database
 
NoSQL databases
NoSQL databasesNoSQL databases
NoSQL databases
 
data Structure
data Structuredata Structure
data Structure
 
Introducción a Microsoft Azure SQL Data Warehouse
Introducción a Microsoft Azure SQL Data WarehouseIntroducción a Microsoft Azure SQL Data Warehouse
Introducción a Microsoft Azure SQL Data Warehouse
 
Uml
UmlUml
Uml
 
Big Data Processing with Spark and Scala
Big Data Processing with Spark and Scala Big Data Processing with Spark and Scala
Big Data Processing with Spark and Scala
 
Rdf data-model-and-storage
Rdf data-model-and-storageRdf data-model-and-storage
Rdf data-model-and-storage
 
Data Structure and Algorithms
Data Structure and AlgorithmsData Structure and Algorithms
Data Structure and Algorithms
 
big data and machine learning ppt.pptx
big data and machine learning ppt.pptxbig data and machine learning ppt.pptx
big data and machine learning ppt.pptx
 
23 sparql
23 sparql23 sparql
23 sparql
 
How to enhance your DSpace repository: use cases for DSpace-CRIS, DSpace-RDM,...
How to enhance your DSpace repository: use cases for DSpace-CRIS, DSpace-RDM,...How to enhance your DSpace repository: use cases for DSpace-CRIS, DSpace-RDM,...
How to enhance your DSpace repository: use cases for DSpace-CRIS, DSpace-RDM,...
 
Delta Lake Cheat Sheet.pdf
Delta Lake Cheat Sheet.pdfDelta Lake Cheat Sheet.pdf
Delta Lake Cheat Sheet.pdf
 
ETL_DWH_ Resume
ETL_DWH_ ResumeETL_DWH_ Resume
ETL_DWH_ Resume
 
IRJET-Stock Management System
IRJET-Stock Management SystemIRJET-Stock Management System
IRJET-Stock Management System
 
collectd & PostgreSQL
collectd & PostgreSQLcollectd & PostgreSQL
collectd & PostgreSQL
 
Ray: Enterprise-Grade, Distributed Python
Ray: Enterprise-Grade, Distributed PythonRay: Enterprise-Grade, Distributed Python
Ray: Enterprise-Grade, Distributed Python
 

Similar to CSE 443 (1).pptx

Data structures - Introduction
Data structures - IntroductionData structures - Introduction
Data structures - IntroductionDeepaThirumurugan
 
Chapter 1 Introduction to Data Structures and Algorithms.pdf
Chapter 1 Introduction to Data Structures and Algorithms.pdfChapter 1 Introduction to Data Structures and Algorithms.pdf
Chapter 1 Introduction to Data Structures and Algorithms.pdfAxmedcarb
 
DS Module 1.pptx
DS Module 1.pptxDS Module 1.pptx
DS Module 1.pptxsarala9
 
DATA STRUCTURE AND ALGORITHMS
DATA STRUCTURE AND ALGORITHMS DATA STRUCTURE AND ALGORITHMS
DATA STRUCTURE AND ALGORITHMS Adams Sidibe
 
DS Module 1.pptx
DS Module 1.pptxDS Module 1.pptx
DS Module 1.pptxSaralaT3
 
Ch 1 intriductions
Ch 1 intriductionsCh 1 intriductions
Ch 1 intriductionsirshad17
 
Data Structures and algoithms Unit - 1.pptx
Data Structures and algoithms Unit - 1.pptxData Structures and algoithms Unit - 1.pptx
Data Structures and algoithms Unit - 1.pptxmexiuro901
 
Datastructures and algorithms prepared by M.V.Brehmanada Reddy
Datastructures and algorithms prepared by M.V.Brehmanada ReddyDatastructures and algorithms prepared by M.V.Brehmanada Reddy
Datastructures and algorithms prepared by M.V.Brehmanada ReddyMalikireddy Bramhananda Reddy
 
Algorithms.pptx
Algorithms.pptxAlgorithms.pptx
Algorithms.pptxjohn6938
 
Bca ii dfs u-1 introduction to data structure
Bca ii dfs u-1 introduction to data structureBca ii dfs u-1 introduction to data structure
Bca ii dfs u-1 introduction to data structureRai University
 
Mca ii dfs u-1 introduction to data structure
Mca ii dfs u-1 introduction to data structureMca ii dfs u-1 introduction to data structure
Mca ii dfs u-1 introduction to data structureRai University
 
Data structures Lecture no. 2
Data structures Lecture no. 2Data structures Lecture no. 2
Data structures Lecture no. 2AzharIqbal710687
 
introduction about data structure_i.pptx
introduction about data structure_i.pptxintroduction about data structure_i.pptx
introduction about data structure_i.pptxpoonamsngr
 
Bsc cs ii dfs u-1 introduction to data structure
Bsc cs ii dfs u-1 introduction to data structureBsc cs ii dfs u-1 introduction to data structure
Bsc cs ii dfs u-1 introduction to data structureRai University
 

Similar to CSE 443 (1).pptx (20)

Data structures - Introduction
Data structures - IntroductionData structures - Introduction
Data structures - Introduction
 
Chapter 1 Introduction to Data Structures and Algorithms.pdf
Chapter 1 Introduction to Data Structures and Algorithms.pdfChapter 1 Introduction to Data Structures and Algorithms.pdf
Chapter 1 Introduction to Data Structures and Algorithms.pdf
 
DS Module 1.pptx
DS Module 1.pptxDS Module 1.pptx
DS Module 1.pptx
 
DATA STRUCTURE AND ALGORITHMS
DATA STRUCTURE AND ALGORITHMS DATA STRUCTURE AND ALGORITHMS
DATA STRUCTURE AND ALGORITHMS
 
DS Module 1.pptx
DS Module 1.pptxDS Module 1.pptx
DS Module 1.pptx
 
UNIT 1.pptx
UNIT 1.pptxUNIT 1.pptx
UNIT 1.pptx
 
Ch 1 intriductions
Ch 1 intriductionsCh 1 intriductions
Ch 1 intriductions
 
Data Structures and algoithms Unit - 1.pptx
Data Structures and algoithms Unit - 1.pptxData Structures and algoithms Unit - 1.pptx
Data Structures and algoithms Unit - 1.pptx
 
Data structures in c#
Data structures in c#Data structures in c#
Data structures in c#
 
UNITIII LDS.pdf
UNITIII LDS.pdfUNITIII LDS.pdf
UNITIII LDS.pdf
 
Datastructures and algorithms prepared by M.V.Brehmanada Reddy
Datastructures and algorithms prepared by M.V.Brehmanada ReddyDatastructures and algorithms prepared by M.V.Brehmanada Reddy
Datastructures and algorithms prepared by M.V.Brehmanada Reddy
 
Algorithms.pptx
Algorithms.pptxAlgorithms.pptx
Algorithms.pptx
 
Bca ii dfs u-1 introduction to data structure
Bca ii dfs u-1 introduction to data structureBca ii dfs u-1 introduction to data structure
Bca ii dfs u-1 introduction to data structure
 
Mca ii dfs u-1 introduction to data structure
Mca ii dfs u-1 introduction to data structureMca ii dfs u-1 introduction to data structure
Mca ii dfs u-1 introduction to data structure
 
Data structures Lecture no. 2
Data structures Lecture no. 2Data structures Lecture no. 2
Data structures Lecture no. 2
 
introduction about data structure_i.pptx
introduction about data structure_i.pptxintroduction about data structure_i.pptx
introduction about data structure_i.pptx
 
Lecture 1 and 2
Lecture 1 and 2Lecture 1 and 2
Lecture 1 and 2
 
M v bramhananda reddy dsa complete notes
M v bramhananda reddy dsa complete notesM v bramhananda reddy dsa complete notes
M v bramhananda reddy dsa complete notes
 
Data structures
Data structuresData structures
Data structures
 
Bsc cs ii dfs u-1 introduction to data structure
Bsc cs ii dfs u-1 introduction to data structureBsc cs ii dfs u-1 introduction to data structure
Bsc cs ii dfs u-1 introduction to data structure
 

Recently uploaded

Sheet Pile Wall Design and Construction: A Practical Guide for Civil Engineer...
Sheet Pile Wall Design and Construction: A Practical Guide for Civil Engineer...Sheet Pile Wall Design and Construction: A Practical Guide for Civil Engineer...
Sheet Pile Wall Design and Construction: A Practical Guide for Civil Engineer...Dr.Costas Sachpazis
 
Introduction to Microprocesso programming and interfacing.pptx
Introduction to Microprocesso programming and interfacing.pptxIntroduction to Microprocesso programming and interfacing.pptx
Introduction to Microprocesso programming and interfacing.pptxvipinkmenon1
 
Oxy acetylene welding presentation note.
Oxy acetylene welding presentation note.Oxy acetylene welding presentation note.
Oxy acetylene welding presentation note.eptoze12
 
OSVC_Meta-Data based Simulation Automation to overcome Verification Challenge...
OSVC_Meta-Data based Simulation Automation to overcome Verification Challenge...OSVC_Meta-Data based Simulation Automation to overcome Verification Challenge...
OSVC_Meta-Data based Simulation Automation to overcome Verification Challenge...Soham Mondal
 
Gurgaon ✡️9711147426✨Call In girls Gurgaon Sector 51 escort service
Gurgaon ✡️9711147426✨Call In girls Gurgaon Sector 51 escort serviceGurgaon ✡️9711147426✨Call In girls Gurgaon Sector 51 escort service
Gurgaon ✡️9711147426✨Call In girls Gurgaon Sector 51 escort servicejennyeacort
 
APPLICATIONS-AC/DC DRIVES-OPERATING CHARACTERISTICS
APPLICATIONS-AC/DC DRIVES-OPERATING CHARACTERISTICSAPPLICATIONS-AC/DC DRIVES-OPERATING CHARACTERISTICS
APPLICATIONS-AC/DC DRIVES-OPERATING CHARACTERISTICSKurinjimalarL3
 
Study on Air-Water & Water-Water Heat Exchange in a Finned Tube Exchanger
Study on Air-Water & Water-Water Heat Exchange in a Finned Tube ExchangerStudy on Air-Water & Water-Water Heat Exchange in a Finned Tube Exchanger
Study on Air-Water & Water-Water Heat Exchange in a Finned Tube ExchangerAnamika Sarkar
 
VIP Call Girls Service Hitech City Hyderabad Call +91-8250192130
VIP Call Girls Service Hitech City Hyderabad Call +91-8250192130VIP Call Girls Service Hitech City Hyderabad Call +91-8250192130
VIP Call Girls Service Hitech City Hyderabad Call +91-8250192130Suhani Kapoor
 
power system scada applications and uses
power system scada applications and usespower system scada applications and uses
power system scada applications and usesDevarapalliHaritha
 
HARMONY IN THE HUMAN BEING - Unit-II UHV-2
HARMONY IN THE HUMAN BEING - Unit-II UHV-2HARMONY IN THE HUMAN BEING - Unit-II UHV-2
HARMONY IN THE HUMAN BEING - Unit-II UHV-2RajaP95
 
Call Girls Delhi {Jodhpur} 9711199012 high profile service
Call Girls Delhi {Jodhpur} 9711199012 high profile serviceCall Girls Delhi {Jodhpur} 9711199012 high profile service
Call Girls Delhi {Jodhpur} 9711199012 high profile servicerehmti665
 
Decoding Kotlin - Your guide to solving the mysterious in Kotlin.pptx
Decoding Kotlin - Your guide to solving the mysterious in Kotlin.pptxDecoding Kotlin - Your guide to solving the mysterious in Kotlin.pptx
Decoding Kotlin - Your guide to solving the mysterious in Kotlin.pptxJoão Esperancinha
 
CCS355 Neural Network & Deep Learning Unit II Notes with Question bank .pdf
CCS355 Neural Network & Deep Learning Unit II Notes with Question bank .pdfCCS355 Neural Network & Deep Learning Unit II Notes with Question bank .pdf
CCS355 Neural Network & Deep Learning Unit II Notes with Question bank .pdfAsst.prof M.Gokilavani
 
Application of Residue Theorem to evaluate real integrations.pptx
Application of Residue Theorem to evaluate real integrations.pptxApplication of Residue Theorem to evaluate real integrations.pptx
Application of Residue Theorem to evaluate real integrations.pptx959SahilShah
 
Sachpazis Costas: Geotechnical Engineering: A student's Perspective Introduction
Sachpazis Costas: Geotechnical Engineering: A student's Perspective IntroductionSachpazis Costas: Geotechnical Engineering: A student's Perspective Introduction
Sachpazis Costas: Geotechnical Engineering: A student's Perspective IntroductionDr.Costas Sachpazis
 
VICTOR MAESTRE RAMIREZ - Planetary Defender on NASA's Double Asteroid Redirec...
VICTOR MAESTRE RAMIREZ - Planetary Defender on NASA's Double Asteroid Redirec...VICTOR MAESTRE RAMIREZ - Planetary Defender on NASA's Double Asteroid Redirec...
VICTOR MAESTRE RAMIREZ - Planetary Defender on NASA's Double Asteroid Redirec...VICTOR MAESTRE RAMIREZ
 
Heart Disease Prediction using machine learning.pptx
Heart Disease Prediction using machine learning.pptxHeart Disease Prediction using machine learning.pptx
Heart Disease Prediction using machine learning.pptxPoojaBan
 

Recently uploaded (20)

Exploring_Network_Security_with_JA3_by_Rakesh Seal.pptx
Exploring_Network_Security_with_JA3_by_Rakesh Seal.pptxExploring_Network_Security_with_JA3_by_Rakesh Seal.pptx
Exploring_Network_Security_with_JA3_by_Rakesh Seal.pptx
 
Sheet Pile Wall Design and Construction: A Practical Guide for Civil Engineer...
Sheet Pile Wall Design and Construction: A Practical Guide for Civil Engineer...Sheet Pile Wall Design and Construction: A Practical Guide for Civil Engineer...
Sheet Pile Wall Design and Construction: A Practical Guide for Civil Engineer...
 
Introduction to Microprocesso programming and interfacing.pptx
Introduction to Microprocesso programming and interfacing.pptxIntroduction to Microprocesso programming and interfacing.pptx
Introduction to Microprocesso programming and interfacing.pptx
 
Oxy acetylene welding presentation note.
Oxy acetylene welding presentation note.Oxy acetylene welding presentation note.
Oxy acetylene welding presentation note.
 
OSVC_Meta-Data based Simulation Automation to overcome Verification Challenge...
OSVC_Meta-Data based Simulation Automation to overcome Verification Challenge...OSVC_Meta-Data based Simulation Automation to overcome Verification Challenge...
OSVC_Meta-Data based Simulation Automation to overcome Verification Challenge...
 
Gurgaon ✡️9711147426✨Call In girls Gurgaon Sector 51 escort service
Gurgaon ✡️9711147426✨Call In girls Gurgaon Sector 51 escort serviceGurgaon ✡️9711147426✨Call In girls Gurgaon Sector 51 escort service
Gurgaon ✡️9711147426✨Call In girls Gurgaon Sector 51 escort service
 
APPLICATIONS-AC/DC DRIVES-OPERATING CHARACTERISTICS
APPLICATIONS-AC/DC DRIVES-OPERATING CHARACTERISTICSAPPLICATIONS-AC/DC DRIVES-OPERATING CHARACTERISTICS
APPLICATIONS-AC/DC DRIVES-OPERATING CHARACTERISTICS
 
Call Us -/9953056974- Call Girls In Vikaspuri-/- Delhi NCR
Call Us -/9953056974- Call Girls In Vikaspuri-/- Delhi NCRCall Us -/9953056974- Call Girls In Vikaspuri-/- Delhi NCR
Call Us -/9953056974- Call Girls In Vikaspuri-/- Delhi NCR
 
Study on Air-Water & Water-Water Heat Exchange in a Finned Tube Exchanger
Study on Air-Water & Water-Water Heat Exchange in a Finned Tube ExchangerStudy on Air-Water & Water-Water Heat Exchange in a Finned Tube Exchanger
Study on Air-Water & Water-Water Heat Exchange in a Finned Tube Exchanger
 
🔝9953056974🔝!!-YOUNG call girls in Rajendra Nagar Escort rvice Shot 2000 nigh...
🔝9953056974🔝!!-YOUNG call girls in Rajendra Nagar Escort rvice Shot 2000 nigh...🔝9953056974🔝!!-YOUNG call girls in Rajendra Nagar Escort rvice Shot 2000 nigh...
🔝9953056974🔝!!-YOUNG call girls in Rajendra Nagar Escort rvice Shot 2000 nigh...
 
VIP Call Girls Service Hitech City Hyderabad Call +91-8250192130
VIP Call Girls Service Hitech City Hyderabad Call +91-8250192130VIP Call Girls Service Hitech City Hyderabad Call +91-8250192130
VIP Call Girls Service Hitech City Hyderabad Call +91-8250192130
 
power system scada applications and uses
power system scada applications and usespower system scada applications and uses
power system scada applications and uses
 
HARMONY IN THE HUMAN BEING - Unit-II UHV-2
HARMONY IN THE HUMAN BEING - Unit-II UHV-2HARMONY IN THE HUMAN BEING - Unit-II UHV-2
HARMONY IN THE HUMAN BEING - Unit-II UHV-2
 
Call Girls Delhi {Jodhpur} 9711199012 high profile service
Call Girls Delhi {Jodhpur} 9711199012 high profile serviceCall Girls Delhi {Jodhpur} 9711199012 high profile service
Call Girls Delhi {Jodhpur} 9711199012 high profile service
 
Decoding Kotlin - Your guide to solving the mysterious in Kotlin.pptx
Decoding Kotlin - Your guide to solving the mysterious in Kotlin.pptxDecoding Kotlin - Your guide to solving the mysterious in Kotlin.pptx
Decoding Kotlin - Your guide to solving the mysterious in Kotlin.pptx
 
CCS355 Neural Network & Deep Learning Unit II Notes with Question bank .pdf
CCS355 Neural Network & Deep Learning Unit II Notes with Question bank .pdfCCS355 Neural Network & Deep Learning Unit II Notes with Question bank .pdf
CCS355 Neural Network & Deep Learning Unit II Notes with Question bank .pdf
 
Application of Residue Theorem to evaluate real integrations.pptx
Application of Residue Theorem to evaluate real integrations.pptxApplication of Residue Theorem to evaluate real integrations.pptx
Application of Residue Theorem to evaluate real integrations.pptx
 
Sachpazis Costas: Geotechnical Engineering: A student's Perspective Introduction
Sachpazis Costas: Geotechnical Engineering: A student's Perspective IntroductionSachpazis Costas: Geotechnical Engineering: A student's Perspective Introduction
Sachpazis Costas: Geotechnical Engineering: A student's Perspective Introduction
 
VICTOR MAESTRE RAMIREZ - Planetary Defender on NASA's Double Asteroid Redirec...
VICTOR MAESTRE RAMIREZ - Planetary Defender on NASA's Double Asteroid Redirec...VICTOR MAESTRE RAMIREZ - Planetary Defender on NASA's Double Asteroid Redirec...
VICTOR MAESTRE RAMIREZ - Planetary Defender on NASA's Double Asteroid Redirec...
 
Heart Disease Prediction using machine learning.pptx
Heart Disease Prediction using machine learning.pptxHeart Disease Prediction using machine learning.pptx
Heart Disease Prediction using machine learning.pptx
 

CSE 443 (1).pptx

  • 1. CSE-443 SUMMER INTERNSHIP ON DATA STRUCTURE AND ALGORITHMS (GFG) Presented by :- Name: I.Jayakrishna Reddy Reg. No.: 11913860
  • 2. Topics Covered INTRODUCTION DATA STRUCTURES i. Asymptotic Notations ii. Time Complexity iii. Arrays, Trees, Linked List, etc. ALGORITHMS CONCLUSION
  • 3. INTRODUCTION  A computer program is a collection of instructions to perform a specific task. For this, a computer program may need to store data, retrieve data, and perform computations on the data.  A data structure is a named location that can be used to store and organize data. And, an algorithm is a collection of steps to solve a particular problem. Learning data structures and algorithms allow us to write efficient and optimized computer programs.  An algorithm is a set of well-defined instructions in sequence to solve a problem.
  • 4. Asymptotic Notation  Asymptotic notations are mathematical tools to represent the time complexity of algorithms for asymptotic analysis.  Types of Asymptotic notation:  Big Oh notation: It represents the upper bound of the running time of an algorithm. Thus, it gives the worst case complexity of an algorithm.  Big Theta notation: It encloses the function from above and below. Since it represents the upper and the lower bound of the running time of an algorithm, it is used for analyzing the average case complexity of an algorithm.  Big Omega notation: It represents the lower bound of the running time of an algorithm. Thus, it provides best case complexity of an algorithm.
  • 5. (i)Big O (ii)Big Theta (iii)Big Omega
  • 6. Time Complexity  Time complexity of an algorithm signifies the total time required by the program to run till its completion.  Types of Time complexity:  Worst Case: In the worst case analysis, we calculate upper bound on running time of an algorithm.  Average case: In average case analysis, we take all possible inputs and calculate computing time for all of the inputs.  Best case: In the best case analysis, we calculate lower bound on running time of an algorithm
  • 7. ARRAYS  An array is a collection of items of same data type stored at contiguous memory locations.  Location of the next element depends on the datatype of the element.  Arrays allows to access elements randomly. Elements in an array can be accessed using indexes.  It gives a better performance as access time become faster because we can randomly access the elements and its an advantage of array.  Operations like searching, insertion, deletion, reversing we can with array.
  • 8. TREE  A Tree is a non-linear data structure where each node is connected to a number of nodes with the help of pointers or references.  Basic terminologies in tree: root node, leaf node, edge, siblings, height of tree, etc.  Special case of tree: Binary tree  A Tree is said to be a Binary Tree if all of its nodes have at most 2 children i.e. all of its node can have either no child, 1 child or 2 child nodes.  Types of binary tree: Full binary tree, Complete binary tree, Perfect binary tree.  Operations on tree are Traversal, Insertion, Deletion, etc.
  • 9. LINKED LIST  Linked Lists are linear or sequential data structures in which elements are stored at non-contiguous memory location and are linked to each other using pointers.  Each linked list has two parts :  Data  Next pointer  Types of linked list:  Singly linked list  Doubly linked list  Circular linked list  Operations are like searching, insertion and deletion, etc.
  • 10. STRINGS  Strings are defined as a stream of characters.  Strings are used to represent text and are generally represented by enclosing text within quotes.  In java, objects of string are immutable which means a constant and cannot be changed once created.  Some methods in strings:  Finding the length and substring  Index of string,  Concatenating two strings  Comparing two strings, Uppercase, Lowercase, Trim and Replace.  Searching algorithms:  Naïve pattern searching: O(m*(n-m+1))
  • 11. 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).  The LIFO order says that the element which is inserted at the last in the Stack will be the first one to be removed. In LIFO order insertion takes place at the rear end of the stack and deletion occurs at the front of the stack.  Operations such as push, pop, etc. are performed.  It can be implemented in two ways using arrays and linked list.  Pros: Easy to implement. Memory is saved as pointers are not involved.  Cons: It is not dynamic. It doesn’t grow and shrink depending on needs at runtime.
  • 12. QUEUE  Queue is also a linear data structure which follows a particular order in which the operations are performed.  The order is First In First Out (FIFO) which means that the element which is inserted first in the queue will be the first one to be removed from the queue.  Operations:  Enqueue: Adds an item to the queue. If the queue is full, then it is said to be an Overflow Condition.  Dequeue: Removes an item from the queue. The items are popped in the same order in which they are pushed. If the queue is empty, then it is said to be an Underflow Condition.  Front: Get the front item from queue.  Rear: Get the last item from queue.
  • 13. GRAPH  A graph is a data structure that consists of the following two components:  A finite set of vertices also called nodes.  A finite set of ordered pair of the form (u, v) called as edge.  Two types of graph:  Directed graph : The Directed graphs are such graphs in which edges are directed in a single direction.  Undirected graph: Undirected graphs are such graphs in which the edges are directionless or in other words bi-directional.  Operations such as Traversal(two types)  Breadth first traversal  Depth first traversal
  • 14. ALGORITHMS Qualities of Good Algorithm Searching Recursion Sorting Insertion Deletion , etc.
  • 15. QUALITIES OF GOOD ALGORITHM  Input and output should be defined precisely.  Each step in the algorithm should be clear and unambiguous.  Algorithms should be most effective among many different ways to solve a problem.  An algorithm shouldn't include computer code.  The algorithm should be written in such a way that it can be used in different programming languages.
  • 16. SEARCHING  Searching means searching a particular element in any data structure.  Two types: 1. Linear search: i. It is also known as sequential search. ii. Time complexity: O(n) 2. Binary search: i. It performs the search operation by repeatedly dividing the search interval in half. ii. It performed only on sorted arrays and it is also more efficient than the linear search algorithm. iii. Time complexity: O(Log n)
  • 17. RECURSION  The process in which a function calls itself directly or indirectly is called recursion and the corresponding function is called as recursive function.  Recursion algorithm must have base condition in recursive program, the solution to base case is provided and solution of bigger problem is expressed in terms of smaller problems.  Pros:  Recursion provides a simple and clean way to write codes.  Cons:  It takes greater space and also greater time for processing.
  • 18. SORTING  Sorting any sequence means to arrange the elements of that sequence according to some specific criterion.  Types: ► Insertion sort: O(n^2) ► Selection sort: O(n^2) ► Bubble sort: O(n^2) ► Quick sort: O(n^2) ► Merge sort: O(log n)