SlideShare a Scribd company logo
1 of 83
Download to read offline
Sunawar Khan
Islamia University of Bahawalpur
Bahawalnagar Campus
Analysis o f Algorithm
‫خان‬ ‫سنور‬ Algorithm Analysis
Minimum Spanning Trees
Spanning Trees
Prims Algorithm
Kruskal Algorithm
Contents
‫خان‬ ‫سنور‬ Algorithm Analysis
Spanning Trees
• A spanning tree for an undirected graph is a sub-graph which includes all
vertices but has no cycles.
• Example: There can be several spanning trees for a graph. Figure (i)
shows a sample graph. Figure (ii) depicts some of the trees for the graph
‫خان‬ ‫سنور‬ Algorithm Analysis
Explanation
• Each spanning tree includes all the four vertices (v1,v2,v3,v4) of
the parent graph
• Spanning trees can be generated by depth-first–search(DFS) and
breadth-first-search(BFS) procedures.
‫خان‬ ‫سنور‬ Algorithm Analysis
Definition using Directed Graph
• A weighted undirected graph can have several spanning trees. One of the
spanning trees has smallest sum of all the weights associated with the
edges. This tree is called minimum spanning tree (mst).
• Example :Figure shows a sample weighted graph, and some of the
spanning trees, with total weight of edges for each tree. The tree T1, with
smallest total weight is the minimum spanning tree. It is shown with
vertices colored red
‫خان‬ ‫سنور‬ Algorithm Analysis
Applications
• Minimum spanning trees have many practical applications. Some typical
examples are:
• A telephone network can be configured, using minimum spanning tree, so that
minimum cable length is used.
• The air travel routes can be selected so that the travel time or travel cost is least.
• A computer network can be set up with minimum routing distance
• Linking a group of islands with bridges so that total bridge span length is minimum
• Two important algorithms for creating a minimum spanning tree for a
weighted graph, are Kruskal's algorithm and Prim's algorithm, named
after their inventors.
‫خان‬ ‫سنور‬ Algorithm Analysis
Kruskal's Algorithm
• Kruskal's algorithm is categorized as greedy, because at each step it picks
an edge with smallest weight.
• The algorithm can be implemented in several ways. Generally, a priority
queue is used to store graph edges, so that, starting with the smallest
weight , edges are extracted in order of their increasing weights.
‫خان‬ ‫سنور‬ Algorithm Analysis
Pseudo Code
• The Kruskal‘s algorithm works as follows:
Step # 1: Remove all edges of the graph
Step #2: Arrange edges according to their weights
Step # 3: Select an edge with least weight
Step #4: Attach the edge to the corresponding vertices, if it does not form a
cycle; otherwise, drop the edge
Step #5: Repeat steps 3 to 4 until all the edges have been processed
(added or dropped)
‫خان‬ ‫سنور‬ Algorithm Analysis
Example
• In order to examine the working of Kruskal's algorithm for building a
minimum spanning tree consider the sample weighted undirected graph
shown in the figure below. The number attached to the edges are the
weights.
‫خان‬ ‫سنور‬ Algorithm Analysis
Figure
About:- The steps for growing the minimum spanning tree are elaborated in the next set of figures
‫خان‬ ‫سنور‬ Algorithm Analysis
Running Example
‫خان‬ ‫سنور‬ Algorithm Analysis
Running Example
‫خان‬ ‫سنور‬ Algorithm Analysis
Running Example
‫خان‬ ‫سنور‬ Algorithm Analysis
Running Example
‫خان‬ ‫سنور‬ Algorithm Analysis
Running Example
‫خان‬ ‫سنور‬ Algorithm Analysis
Running Example
‫خان‬ ‫سنور‬ Algorithm Analysis
Running Example
‫خان‬ ‫سنور‬ Algorithm Analysis
Running Example
‫خان‬ ‫سنور‬ Algorithm Analysis
Running Example
‫خان‬ ‫سنور‬ Algorithm Analysis
Running Example
‫خان‬ ‫سنور‬ Algorithm Analysis
Running Example
‫خان‬ ‫سنور‬ Algorithm Analysis
Running Example
‫خان‬ ‫سنور‬ Algorithm Analysis
Running Example
‫خان‬ ‫سنور‬ Algorithm Analysis
Running Example
‫خان‬ ‫سنور‬ Algorithm Analysis
Running Example
‫خان‬ ‫سنور‬ Algorithm Analysis
Running Example
‫خان‬ ‫سنور‬ Algorithm Analysis
Running Example
‫خان‬ ‫سنور‬ Algorithm Analysis
Running Example
‫خان‬ ‫سنور‬ Algorithm Analysis
Running Example
‫خان‬ ‫سنور‬ Algorithm Analysis
Running Example
‫خان‬ ‫سنور‬ Algorithm Analysis
Running Example
‫خان‬ ‫سنور‬ Algorithm Analysis
Running Example
‫خان‬ ‫سنور‬ Algorithm Analysis
Running Example
‫خان‬ ‫سنور‬ Algorithm Analysis
Running Example
‫خان‬ ‫سنور‬ Algorithm Analysis
Running Example
‫خان‬ ‫سنور‬ Algorithm Analysis
Running Example
‫خان‬ ‫سنور‬ Algorithm Analysis
Running Example
‫خان‬ ‫سنور‬ Algorithm Analysis
Running Example
‫خان‬ ‫سنور‬ Algorithm Analysis
Running Example
‫خان‬ ‫سنور‬ Algorithm Analysis
Running Example
‫خان‬ ‫سنور‬ Algorithm Analysis
Running Example
‫خان‬ ‫سنور‬ Algorithm Analysis
Running Example
‫خان‬ ‫سنور‬ Algorithm Analysis
Running Example
‫خان‬ ‫سنور‬ Algorithm Analysis
Running Example
‫خان‬ ‫سنور‬ Algorithm Analysis
Example
• The Minimum Spanning Tree (MST), generated by the Kruskal's algorithm,
is shown below. The dotted lines indicate the edges that are in the sample
graph but excluded from the MST. The tree includes all of the vertices in
the original graph. It does not have any cycles. The total weight of all the
tree edges is 182.
‫خان‬ ‫سنور‬ Algorithm Analysis
Running Example
‫خان‬ ‫سنور‬ Algorithm Analysis
Implementation
• It follows that the Kruskal's algorithm is implemented in two phases
(1) Sorting edges in non-decreasing order
(2) Constructing spanning tree (a sub-graph which has no cycles )
• In actual implementation, the edges can be sorted by using an efficient
algorithm such as
• Quick sort. Alternatively, a Priority Queue can be used. The edges are
retrieved in non-decreasing order by dequeue operation, as shown in the
preceding example.
• For detection of cycles Union Sets are used
‫خان‬ ‫سنور‬ Algorithm Analysis
Detecting Cycles
• To check whether or not an extracted edge forms a cycle, a Union Set can
be used. A Union Set is defined as a set of disjoint sets of vertices in a
graph
• Example : Consider the set of vertices V={a ,b, c, d ,e} in a sample graph.
The Union Set UV is defined as the set consisting of members {a}, {b}, {c},
{d}. In set notation UV can be denoted as set of sets, as under
UV={ {a}, {b}, {c}, {c}, {d}, {e} }
‫خان‬ ‫سنور‬ Algorithm Analysis
Cont. . .
• The rule for accepting or discarding an extracted edge is as
follows. Suppose that an edge (u, v) is extracted from a priority
queue. Let UV be the Union Set of vertices
(i)If the vertices u, v belong to the same member S of the Union Set UV
then the edge (u, v) forms cycle, and discarded
(i)If the vertices u, v belong to two different members, S1 and S2,of the
Union Set UV then the edge (u, v) is accepted. Further, the sets S1 and
S2 are merged together to form a single set S which is placed in the
Union Set UV
‫خان‬ ‫سنور‬ Algorithm Analysis
Detecting Cycles - Example
• Suppose at any stage of the execution of Kruskal’s algorithm , the
UV Union Set of vertices consists of members {a}, {b}, { c, e}, {d}
,i.e UV= { {a}, {b}, {c, e}, {d} } . Consider the following
possibilities:
( 1) Suppose an edge (e, d ) is extracted from the priority queue. Since
vertices e, d belong to two different members { c, e} and { d} of UV, the
edge (e, d) does not form a cycle. The sets {e, d} and { d } will be
merged into the set { c, d, e} which will replace the sets { c,e} { d} in the
original set UV. Thus, the updated UV would be UV= { {a}, {c, d ,e} }
‫خان‬ ‫سنور‬ Algorithm Analysis
Cont. . .
(2) Assume again that an edge (c, e) is extracted. Since the
vertices e and d belong to the same set {c, d, e} of the UV, the edge
(c, e ) will be discarded
(3) Again, assume that the edge (a, b) is extracted. Since the
vertices a, b belong to different sets, the corresponding disjoints
set, namely, {a}, {b} will be merged. Thus, the updated UV would
be UV={{a, b}, {c, d, e} }.
(4)Next , assume that edge ( b ,c) is extracted, Since b belongs to
{a,b} and c belongs to {c, d, e} the sets {a, b} and {c, d, e} would be
merged i.e UV={a, b, c, d, e}
‫خان‬ ‫سنور‬ Algorithm Analysis
Using Set for MST
‫خان‬ ‫سنور‬ Algorithm Analysis
Using Set for MST
‫خان‬ ‫سنور‬ Algorithm Analysis
Algorithm
• Following is pseudo code for Kruskal's algorithm.. The Union Set
UV initially holds vertices of the graph. The input to the
procedure includes a matrix W of edge weights. A priority queue
is created to hold the edges and weights.
‫خان‬ ‫سنور‬ Algorithm Analysis
Implementation Algorithm
‫خان‬ ‫سنور‬ Algorithm Analysis
Analysis of Running Time
Assume that edges are processed by using priority queue, graph is represented by linked lists, and Union
Set is used to detect cycles. The main contributions to the running time are
(1) Tsort = time to sort edges
(2) Tini = time to initialize the sets
(3) Tscan = time to scan linked lists
It was shown earlier that the time to sort n data items, using quick sort is n lg n. Since edge set contains
|E| edges, time to sort edges will be
Tsort = O(|E|. lg| E|).
The time for initialization of sets will be
Tini = O(|V|)., where |V| is number of vertices in the graph
The total time to scan the linked lists representing the graph is equal to number of edges in
the graph. This time is at most
Tscan=O(|E|)
Thus, total running time is O(|E|. lg| E|) + O(|E|)+O(|V|). Ignoring |E| compared to |E|.|lg |E|, the
running time for Kruskal's algorithm is
T Kruskal = O(|E|.lg|E|) +O(|V|)
‫خان‬ ‫سنور‬ Algorithm Analysis
Prims Strategy
• The Prim's algorithm is an alternative method for creating minimum
spanning tree for a weighted undirected graph. Unlike the Kruskal's
algorithm, it makes a systematic selection of vertices. It proceeds by
choosing some arbitrary initial vertex, and then examines all neighbors. It
selects the neighbor which has the shortest distance. Next, the neighbors
of selected vertices are examined for shortest link. This process is
continued till all the vertices have been explored. The selected shortest
links form minimum spanning tree
‫خان‬ ‫سنور‬ Algorithm Analysis
Prims Procedure
• Let V be the vertex set for a graph G. Let T be the minimum
spanning tree for G. The Prim’s procedure as follows:
Step # 1: Select some vertex s in V , as the start vertex.
Step # 2: Add vertex s to an empty set S. Remove s from V.
Step # 3: Repeat Step #:4 through Step #:6 until the set V is empty.
Step # 4: Examine all vertices in S which are linked to vertices in V.
Step #5: Choose the vertex u in V which has the minimum distance from
vertex v in S.
Step #6:Remove vertex u from V and add it to S. Move edge (v ,u) to T.
‫خان‬ ‫سنور‬ Algorithm Analysis
Example
• In order to study the working of Prim’s algorithm, consider the weighted
undirected graph shown in the figure below
‫خان‬ ‫سنور‬ Algorithm Analysis
Running Example
‫خان‬ ‫سنور‬ Algorithm Analysis
Running Example
‫خان‬ ‫سنور‬ Algorithm Analysis
Running Example
‫خان‬ ‫سنور‬ Algorithm Analysis
Running Example
‫خان‬ ‫سنور‬ Algorithm Analysis
Running Example
‫خان‬ ‫سنور‬ Algorithm Analysis
Running Example
‫خان‬ ‫سنور‬ Algorithm Analysis
Running Example
‫خان‬ ‫سنور‬ Algorithm Analysis
Running Example
‫خان‬ ‫سنور‬ Algorithm Analysis
Running Example
‫خان‬ ‫سنور‬ Algorithm Analysis
Running Example
‫خان‬ ‫سنور‬ Algorithm Analysis
Running Example
‫خان‬ ‫سنور‬ Algorithm Analysis
Running Example
‫خان‬ ‫سنور‬ Algorithm Analysis
Running Example
‫خان‬ ‫سنور‬ Algorithm Analysis
Running Example
‫خان‬ ‫سنور‬ Algorithm Analysis
Running Example
‫خان‬ ‫سنور‬ Algorithm Analysis
Running Example
‫خان‬ ‫سنور‬ Algorithm Analysis
Running Example
‫خان‬ ‫سنور‬ Algorithm Analysis
Running Example
‫خان‬ ‫سنور‬ Algorithm Analysis
Running Example
‫خان‬ ‫سنور‬ Algorithm Analysis
Running Example
‫خان‬ ‫سنور‬ Algorithm Analysis
Running Example
‫خان‬ ‫سنور‬ Algorithm Analysis
Running Example
‫خان‬ ‫سنور‬ Algorithm Analysis
Algorithm
‫خان‬ ‫سنور‬ Algorithm Analysis
Analysis of Running Time
The while loop in the implementation is executed |V|-1 times, where |V| represents the
number of vertices in the graph. In each iteration, distances of a given vertex from other
vertices is explored at most |V|-1 times, in worst case. Thus, the running time of Prim’s
algorithm is
Tprim = O((|V|-1).(|V|-1))
= O(|V|2)
= O(n2), n being the total number of vertices in the graph.
A more efficient implementation of Prim's algorithm ( Ref. T. Cormenet al ) uses a min-
heap
to extract an edge with smallest weight from a given vertex. In this case, it can be shown
that the running time is
Tprim = O(V lgV + E lgV)
= O(E lg V)

More Related Content

What's hot

Prestation_ClydeShen
Prestation_ClydeShenPrestation_ClydeShen
Prestation_ClydeShenClyde Shen
 
Problems in parallel computations of tree functions
Problems in parallel computations of tree functionsProblems in parallel computations of tree functions
Problems in parallel computations of tree functionsDr Sandeep Kumar Poonia
 
a brief introduction to Arima
a brief introduction to Arimaa brief introduction to Arima
a brief introduction to ArimaYue Xiangnan
 
Algorithm: Quick-Sort
Algorithm: Quick-SortAlgorithm: Quick-Sort
Algorithm: Quick-SortTareq Hasan
 
On the Numerical Solution of Differential Equations
On the Numerical Solution of Differential EquationsOn the Numerical Solution of Differential Equations
On the Numerical Solution of Differential EquationsKyle Poe
 
Presentation on binary search, quick sort, merge sort and problems
Presentation on binary search, quick sort, merge sort  and problemsPresentation on binary search, quick sort, merge sort  and problems
Presentation on binary search, quick sort, merge sort and problemsSumita Das
 
Lecture 4 asymptotic notations
Lecture 4   asymptotic notationsLecture 4   asymptotic notations
Lecture 4 asymptotic notationsjayavignesh86
 
Basic terminologies & asymptotic notations
Basic terminologies & asymptotic notationsBasic terminologies & asymptotic notations
Basic terminologies & asymptotic notationsRajendran
 
Asymptotic Notation and Data Structures
Asymptotic Notation and Data StructuresAsymptotic Notation and Data Structures
Asymptotic Notation and Data StructuresAmrinder Arora
 
Lecture 5: Asymptotic analysis of algorithms
Lecture 5: Asymptotic analysis of algorithmsLecture 5: Asymptotic analysis of algorithms
Lecture 5: Asymptotic analysis of algorithmsVivek Bhargav
 
3.8 quick sort
3.8 quick sort3.8 quick sort
3.8 quick sortKrish_ver2
 

What's hot (20)

Prestation_ClydeShen
Prestation_ClydeShenPrestation_ClydeShen
Prestation_ClydeShen
 
Quicksort
QuicksortQuicksort
Quicksort
 
Merge sort and quick sort
Merge sort and quick sortMerge sort and quick sort
Merge sort and quick sort
 
Problems in parallel computations of tree functions
Problems in parallel computations of tree functionsProblems in parallel computations of tree functions
Problems in parallel computations of tree functions
 
sorting
sortingsorting
sorting
 
Jmestn42351212
Jmestn42351212Jmestn42351212
Jmestn42351212
 
asymptotic notation
asymptotic notationasymptotic notation
asymptotic notation
 
a brief introduction to Arima
a brief introduction to Arimaa brief introduction to Arima
a brief introduction to Arima
 
Greedy algorithm
Greedy algorithmGreedy algorithm
Greedy algorithm
 
Algorithm: Quick-Sort
Algorithm: Quick-SortAlgorithm: Quick-Sort
Algorithm: Quick-Sort
 
On the Numerical Solution of Differential Equations
On the Numerical Solution of Differential EquationsOn the Numerical Solution of Differential Equations
On the Numerical Solution of Differential Equations
 
Presentation on binary search, quick sort, merge sort and problems
Presentation on binary search, quick sort, merge sort  and problemsPresentation on binary search, quick sort, merge sort  and problems
Presentation on binary search, quick sort, merge sort and problems
 
Lecture23
Lecture23Lecture23
Lecture23
 
Divide and conquer
Divide and conquerDivide and conquer
Divide and conquer
 
Lecture 4 asymptotic notations
Lecture 4   asymptotic notationsLecture 4   asymptotic notations
Lecture 4 asymptotic notations
 
Basic terminologies & asymptotic notations
Basic terminologies & asymptotic notationsBasic terminologies & asymptotic notations
Basic terminologies & asymptotic notations
 
Data Structures- Hashing
Data Structures- Hashing Data Structures- Hashing
Data Structures- Hashing
 
Asymptotic Notation and Data Structures
Asymptotic Notation and Data StructuresAsymptotic Notation and Data Structures
Asymptotic Notation and Data Structures
 
Lecture 5: Asymptotic analysis of algorithms
Lecture 5: Asymptotic analysis of algorithmsLecture 5: Asymptotic analysis of algorithms
Lecture 5: Asymptotic analysis of algorithms
 
3.8 quick sort
3.8 quick sort3.8 quick sort
3.8 quick sort
 

Similar to Graph 2

ADA - Minimum Spanning Tree Prim Kruskal and Dijkstra
ADA - Minimum Spanning Tree Prim Kruskal and Dijkstra ADA - Minimum Spanning Tree Prim Kruskal and Dijkstra
ADA - Minimum Spanning Tree Prim Kruskal and Dijkstra Sahil Kumar
 
Graph Algorithms
Graph AlgorithmsGraph Algorithms
Graph AlgorithmsAshwin Shiv
 
Decision Maths 1 Chapter 3 Algorithms on Graphs (including Floyd A2 content)....
Decision Maths 1 Chapter 3 Algorithms on Graphs (including Floyd A2 content)....Decision Maths 1 Chapter 3 Algorithms on Graphs (including Floyd A2 content)....
Decision Maths 1 Chapter 3 Algorithms on Graphs (including Floyd A2 content)....SintooChauhan6
 
prim's and kruskal's algorithm
prim's and kruskal's algorithmprim's and kruskal's algorithm
prim's and kruskal's algorithmshreeuva
 
Chapter 1 units,physicalquantities and vectors
Chapter 1   units,physicalquantities and vectorsChapter 1   units,physicalquantities and vectors
Chapter 1 units,physicalquantities and vectorsPaouloDe
 
APznzaZLM_MVouyxM4cxHPJR5BC-TAxTWqhQJ2EywQQuXStxJTDoGkHdsKEQGd4Vo7BS3Q1npCOMV...
APznzaZLM_MVouyxM4cxHPJR5BC-TAxTWqhQJ2EywQQuXStxJTDoGkHdsKEQGd4Vo7BS3Q1npCOMV...APznzaZLM_MVouyxM4cxHPJR5BC-TAxTWqhQJ2EywQQuXStxJTDoGkHdsKEQGd4Vo7BS3Q1npCOMV...
APznzaZLM_MVouyxM4cxHPJR5BC-TAxTWqhQJ2EywQQuXStxJTDoGkHdsKEQGd4Vo7BS3Q1npCOMV...KUSHDHIRRA2111026030
 
Simulation exponential
Simulation exponentialSimulation exponential
Simulation exponentialKaren Yang
 
Stolarsky_Interacting_Particles_midterm_presentation
Stolarsky_Interacting_Particles_midterm_presentationStolarsky_Interacting_Particles_midterm_presentation
Stolarsky_Interacting_Particles_midterm_presentationCan Liu
 
Eigenvalues and eigenvectors
Eigenvalues and eigenvectorsEigenvalues and eigenvectors
Eigenvalues and eigenvectorsiraq
 
Final_Report_Rohit-Neha
Final_Report_Rohit-NehaFinal_Report_Rohit-Neha
Final_Report_Rohit-Nehaneha agarwal
 
Final Report
Final ReportFinal Report
Final ReportCan Liu
 

Similar to Graph 2 (20)

ADA - Minimum Spanning Tree Prim Kruskal and Dijkstra
ADA - Minimum Spanning Tree Prim Kruskal and Dijkstra ADA - Minimum Spanning Tree Prim Kruskal and Dijkstra
ADA - Minimum Spanning Tree Prim Kruskal and Dijkstra
 
Graph Algorithms
Graph AlgorithmsGraph Algorithms
Graph Algorithms
 
Decision Maths 1 Chapter 3 Algorithms on Graphs (including Floyd A2 content)....
Decision Maths 1 Chapter 3 Algorithms on Graphs (including Floyd A2 content)....Decision Maths 1 Chapter 3 Algorithms on Graphs (including Floyd A2 content)....
Decision Maths 1 Chapter 3 Algorithms on Graphs (including Floyd A2 content)....
 
prim's and kruskal's algorithm
prim's and kruskal's algorithmprim's and kruskal's algorithm
prim's and kruskal's algorithm
 
UNIT III.pptx
UNIT III.pptxUNIT III.pptx
UNIT III.pptx
 
Manu maths ppt
Manu maths pptManu maths ppt
Manu maths ppt
 
Unit V - ppt.pptx
Unit V - ppt.pptxUnit V - ppt.pptx
Unit V - ppt.pptx
 
Curve fitting
Curve fittingCurve fitting
Curve fitting
 
Curve fitting
Curve fittingCurve fitting
Curve fitting
 
Av 738- Adaptive Filtering - Background Material
Av 738- Adaptive Filtering - Background MaterialAv 738- Adaptive Filtering - Background Material
Av 738- Adaptive Filtering - Background Material
 
Chapter 1 units,physicalquantities and vectors
Chapter 1   units,physicalquantities and vectorsChapter 1   units,physicalquantities and vectors
Chapter 1 units,physicalquantities and vectors
 
Presentation.pptx
Presentation.pptxPresentation.pptx
Presentation.pptx
 
APznzaZLM_MVouyxM4cxHPJR5BC-TAxTWqhQJ2EywQQuXStxJTDoGkHdsKEQGd4Vo7BS3Q1npCOMV...
APznzaZLM_MVouyxM4cxHPJR5BC-TAxTWqhQJ2EywQQuXStxJTDoGkHdsKEQGd4Vo7BS3Q1npCOMV...APznzaZLM_MVouyxM4cxHPJR5BC-TAxTWqhQJ2EywQQuXStxJTDoGkHdsKEQGd4Vo7BS3Q1npCOMV...
APznzaZLM_MVouyxM4cxHPJR5BC-TAxTWqhQJ2EywQQuXStxJTDoGkHdsKEQGd4Vo7BS3Q1npCOMV...
 
Weighted graphs
Weighted graphsWeighted graphs
Weighted graphs
 
Lec33
Lec33Lec33
Lec33
 
Simulation exponential
Simulation exponentialSimulation exponential
Simulation exponential
 
Stolarsky_Interacting_Particles_midterm_presentation
Stolarsky_Interacting_Particles_midterm_presentationStolarsky_Interacting_Particles_midterm_presentation
Stolarsky_Interacting_Particles_midterm_presentation
 
Eigenvalues and eigenvectors
Eigenvalues and eigenvectorsEigenvalues and eigenvectors
Eigenvalues and eigenvectors
 
Final_Report_Rohit-Neha
Final_Report_Rohit-NehaFinal_Report_Rohit-Neha
Final_Report_Rohit-Neha
 
Final Report
Final ReportFinal Report
Final Report
 

More from International Islamic University (20)

Hash tables
Hash tablesHash tables
Hash tables
 
Binary Search Tree
Binary Search TreeBinary Search Tree
Binary Search Tree
 
Dynamic programming
Dynamic programmingDynamic programming
Dynamic programming
 
Quick sort
Quick sortQuick sort
Quick sort
 
Linear timesorting
Linear timesortingLinear timesorting
Linear timesorting
 
Facial Expression Recognitino
Facial Expression RecognitinoFacial Expression Recognitino
Facial Expression Recognitino
 
Lecture#4
Lecture#4Lecture#4
Lecture#4
 
Lecture#3
Lecture#3 Lecture#3
Lecture#3
 
Lecture#2
Lecture#2 Lecture#2
Lecture#2
 
Case study
Case studyCase study
Case study
 
Arrays
ArraysArrays
Arrays
 
Pcb
PcbPcb
Pcb
 
Data transmission
Data transmissionData transmission
Data transmission
 
Basic organization of computer
Basic organization of computerBasic organization of computer
Basic organization of computer
 
Sorting techniques
Sorting techniquesSorting techniques
Sorting techniques
 
Linear search-and-binary-search
Linear search-and-binary-searchLinear search-and-binary-search
Linear search-and-binary-search
 
Fundamentals of-algorithm
Fundamentals of-algorithmFundamentals of-algorithm
Fundamentals of-algorithm
 
Fundamentals of-algorithm
Fundamentals of-algorithmFundamentals of-algorithm
Fundamentals of-algorithm
 
What is computer
What is computerWhat is computer
What is computer
 
Storage devices
Storage devicesStorage devices
Storage devices
 

Recently uploaded

Pharmacognosy Flower 3. Compositae 2023.pdf
Pharmacognosy Flower 3. Compositae 2023.pdfPharmacognosy Flower 3. Compositae 2023.pdf
Pharmacognosy Flower 3. Compositae 2023.pdfMahmoud M. Sallam
 
AmericanHighSchoolsprezentacijaoskolama.
AmericanHighSchoolsprezentacijaoskolama.AmericanHighSchoolsprezentacijaoskolama.
AmericanHighSchoolsprezentacijaoskolama.arsicmarija21
 
Proudly South Africa powerpoint Thorisha.pptx
Proudly South Africa powerpoint Thorisha.pptxProudly South Africa powerpoint Thorisha.pptx
Proudly South Africa powerpoint Thorisha.pptxthorishapillay1
 
“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...
“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...
“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...Marc Dusseiller Dusjagr
 
Employee wellbeing at the workplace.pptx
Employee wellbeing at the workplace.pptxEmployee wellbeing at the workplace.pptx
Employee wellbeing at the workplace.pptxNirmalaLoungPoorunde1
 
Final demo Grade 9 for demo Plan dessert.pptx
Final demo Grade 9 for demo Plan dessert.pptxFinal demo Grade 9 for demo Plan dessert.pptx
Final demo Grade 9 for demo Plan dessert.pptxAvyJaneVismanos
 
Meghan Sutherland In Media Res Media Component
Meghan Sutherland In Media Res Media ComponentMeghan Sutherland In Media Res Media Component
Meghan Sutherland In Media Res Media ComponentInMediaRes1
 
Solving Puzzles Benefits Everyone (English).pptx
Solving Puzzles Benefits Everyone (English).pptxSolving Puzzles Benefits Everyone (English).pptx
Solving Puzzles Benefits Everyone (English).pptxOH TEIK BIN
 
ENGLISH 7_Q4_LESSON 2_ Employing a Variety of Strategies for Effective Interp...
ENGLISH 7_Q4_LESSON 2_ Employing a Variety of Strategies for Effective Interp...ENGLISH 7_Q4_LESSON 2_ Employing a Variety of Strategies for Effective Interp...
ENGLISH 7_Q4_LESSON 2_ Employing a Variety of Strategies for Effective Interp...JhezDiaz1
 
Alper Gobel In Media Res Media Component
Alper Gobel In Media Res Media ComponentAlper Gobel In Media Res Media Component
Alper Gobel In Media Res Media ComponentInMediaRes1
 
What is Model Inheritance in Odoo 17 ERP
What is Model Inheritance in Odoo 17 ERPWhat is Model Inheritance in Odoo 17 ERP
What is Model Inheritance in Odoo 17 ERPCeline George
 
POINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptx
POINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptxPOINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptx
POINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptxSayali Powar
 
call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️
call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️
call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️9953056974 Low Rate Call Girls In Saket, Delhi NCR
 
Procuring digital preservation CAN be quick and painless with our new dynamic...
Procuring digital preservation CAN be quick and painless with our new dynamic...Procuring digital preservation CAN be quick and painless with our new dynamic...
Procuring digital preservation CAN be quick and painless with our new dynamic...Jisc
 
MICROBIOLOGY biochemical test detailed.pptx
MICROBIOLOGY biochemical test detailed.pptxMICROBIOLOGY biochemical test detailed.pptx
MICROBIOLOGY biochemical test detailed.pptxabhijeetpadhi001
 
Crayon Activity Handout For the Crayon A
Crayon Activity Handout For the Crayon ACrayon Activity Handout For the Crayon A
Crayon Activity Handout For the Crayon AUnboundStockton
 
DATA STRUCTURE AND ALGORITHM for beginners
DATA STRUCTURE AND ALGORITHM for beginnersDATA STRUCTURE AND ALGORITHM for beginners
DATA STRUCTURE AND ALGORITHM for beginnersSabitha Banu
 

Recently uploaded (20)

Pharmacognosy Flower 3. Compositae 2023.pdf
Pharmacognosy Flower 3. Compositae 2023.pdfPharmacognosy Flower 3. Compositae 2023.pdf
Pharmacognosy Flower 3. Compositae 2023.pdf
 
AmericanHighSchoolsprezentacijaoskolama.
AmericanHighSchoolsprezentacijaoskolama.AmericanHighSchoolsprezentacijaoskolama.
AmericanHighSchoolsprezentacijaoskolama.
 
Proudly South Africa powerpoint Thorisha.pptx
Proudly South Africa powerpoint Thorisha.pptxProudly South Africa powerpoint Thorisha.pptx
Proudly South Africa powerpoint Thorisha.pptx
 
“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...
“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...
“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...
 
9953330565 Low Rate Call Girls In Rohini Delhi NCR
9953330565 Low Rate Call Girls In Rohini  Delhi NCR9953330565 Low Rate Call Girls In Rohini  Delhi NCR
9953330565 Low Rate Call Girls In Rohini Delhi NCR
 
ESSENTIAL of (CS/IT/IS) class 06 (database)
ESSENTIAL of (CS/IT/IS) class 06 (database)ESSENTIAL of (CS/IT/IS) class 06 (database)
ESSENTIAL of (CS/IT/IS) class 06 (database)
 
Employee wellbeing at the workplace.pptx
Employee wellbeing at the workplace.pptxEmployee wellbeing at the workplace.pptx
Employee wellbeing at the workplace.pptx
 
Final demo Grade 9 for demo Plan dessert.pptx
Final demo Grade 9 for demo Plan dessert.pptxFinal demo Grade 9 for demo Plan dessert.pptx
Final demo Grade 9 for demo Plan dessert.pptx
 
Meghan Sutherland In Media Res Media Component
Meghan Sutherland In Media Res Media ComponentMeghan Sutherland In Media Res Media Component
Meghan Sutherland In Media Res Media Component
 
Solving Puzzles Benefits Everyone (English).pptx
Solving Puzzles Benefits Everyone (English).pptxSolving Puzzles Benefits Everyone (English).pptx
Solving Puzzles Benefits Everyone (English).pptx
 
ENGLISH 7_Q4_LESSON 2_ Employing a Variety of Strategies for Effective Interp...
ENGLISH 7_Q4_LESSON 2_ Employing a Variety of Strategies for Effective Interp...ENGLISH 7_Q4_LESSON 2_ Employing a Variety of Strategies for Effective Interp...
ENGLISH 7_Q4_LESSON 2_ Employing a Variety of Strategies for Effective Interp...
 
Alper Gobel In Media Res Media Component
Alper Gobel In Media Res Media ComponentAlper Gobel In Media Res Media Component
Alper Gobel In Media Res Media Component
 
What is Model Inheritance in Odoo 17 ERP
What is Model Inheritance in Odoo 17 ERPWhat is Model Inheritance in Odoo 17 ERP
What is Model Inheritance in Odoo 17 ERP
 
POINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptx
POINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptxPOINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptx
POINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptx
 
TataKelola dan KamSiber Kecerdasan Buatan v022.pdf
TataKelola dan KamSiber Kecerdasan Buatan v022.pdfTataKelola dan KamSiber Kecerdasan Buatan v022.pdf
TataKelola dan KamSiber Kecerdasan Buatan v022.pdf
 
call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️
call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️
call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️
 
Procuring digital preservation CAN be quick and painless with our new dynamic...
Procuring digital preservation CAN be quick and painless with our new dynamic...Procuring digital preservation CAN be quick and painless with our new dynamic...
Procuring digital preservation CAN be quick and painless with our new dynamic...
 
MICROBIOLOGY biochemical test detailed.pptx
MICROBIOLOGY biochemical test detailed.pptxMICROBIOLOGY biochemical test detailed.pptx
MICROBIOLOGY biochemical test detailed.pptx
 
Crayon Activity Handout For the Crayon A
Crayon Activity Handout For the Crayon ACrayon Activity Handout For the Crayon A
Crayon Activity Handout For the Crayon A
 
DATA STRUCTURE AND ALGORITHM for beginners
DATA STRUCTURE AND ALGORITHM for beginnersDATA STRUCTURE AND ALGORITHM for beginners
DATA STRUCTURE AND ALGORITHM for beginners
 

Graph 2