SlideShare a Scribd company logo
2
Most read
3
Most read
4
Most read
Mathematical analysis of
non-recursive algorithm
Bharati.C
M.Tech
General plan
• Decide the input size.
• Identify basic operations.
• Check how many time basic operations is
executed & determine best,worst,avg case
analyzed seperately.
• Set up sum for basic operation.
• Simplifying the sum using std formula &
rules.
Mathematical Analysis of Non-Recursive Algorithm.
• The input size is n.
• The basic operation is comparison in loop for
finding largest value.
• Comparison made for each value for n.
• C(n) be the no.of.times comparison is executed.
• C(n)=one comparison.
• Simplify the sum.
Mathematical analysis
Mathematical Analysis of Non-Recursive Algorithm.
Mathematical Analysis of Non-Recursive Algorithm.
Mathematical analysis
• The input size of the problem is n
• The basic operation is if A[i]==A[j]
• The outter loop will be executed first to last but
one element and inner loop is executed 2 to n
arrary index.
• C(n) no.of.comparison statement is executed in
worstcase.
Mathematical Analysis of Non-Recursive Algorithm.

More Related Content

PPTX
Mathematical Analysis of Recursive Algorithm.
PDF
Design and analysis of algorithms
PDF
LECTURE NOTES ON BIOINFORMATICS
PDF
Railway management system, database mini project
PDF
IoT module 2- 22ETC15H-2022-23 by Dr.Suresha V image.pdf
PPT
Learning HTML
PDF
Introduction to data analytics
PPT
Research Methodology
Mathematical Analysis of Recursive Algorithm.
Design and analysis of algorithms
LECTURE NOTES ON BIOINFORMATICS
Railway management system, database mini project
IoT module 2- 22ETC15H-2022-23 by Dr.Suresha V image.pdf
Learning HTML
Introduction to data analytics
Research Methodology

What's hot (20)

PPTX
Performance analysis(Time & Space Complexity)
PPTX
The n Queen Problem
PPTX
Principal Sources of Optimization in compiler design
PPT
Fundamentals of the Analysis of Algorithm Efficiency
PPTX
Backtracking
PPT
Problems, Problem spaces and Search
PPT
Lamport’s algorithm for mutual exclusion
PPTX
Control Strategies in AI
PDF
I. Hill climbing algorithm II. Steepest hill climbing algorithm
PPT
Turing Machine
PPTX
Graph coloring using backtracking
PPTX
Timestamp protocols
PPTX
8 queens problem using back tracking
PDF
I. Mini-Max Algorithm in AI
PPTX
Recognition-of-tokens
PPTX
Deadlock dbms
PPTX
Lexical analyzer generator lex
PPTX
And or graph
PPTX
Code Optimization
PDF
I.BEST FIRST SEARCH IN AI
Performance analysis(Time & Space Complexity)
The n Queen Problem
Principal Sources of Optimization in compiler design
Fundamentals of the Analysis of Algorithm Efficiency
Backtracking
Problems, Problem spaces and Search
Lamport’s algorithm for mutual exclusion
Control Strategies in AI
I. Hill climbing algorithm II. Steepest hill climbing algorithm
Turing Machine
Graph coloring using backtracking
Timestamp protocols
8 queens problem using back tracking
I. Mini-Max Algorithm in AI
Recognition-of-tokens
Deadlock dbms
Lexical analyzer generator lex
And or graph
Code Optimization
I.BEST FIRST SEARCH IN AI
Ad

Similar to Mathematical Analysis of Non-Recursive Algorithm. (20)

PPTX
mathematical nonrecursive algorithm.pptx
PPTX
Data Structures - Lecture 1 [introduction]
PPT
Algorithms
PDF
Data Structure & Algorithms - Introduction
PPTX
Analysis of Algorithms_Under Graduate Class Slide
PDF
1-Algorithm Analysijhjhjhjhjhjhjhjhjhjs.pdf
PPTX
Lec 2 algorithms efficiency complexity
PDF
Analysis Framework for Analysis of Algorithms.pdf
PPT
Analysis design and analysis of algorithms ppt
PDF
Slides [DAA] Unit 2 Ch 2.pdf
PPTX
Analysis of algorithn class 2
PDF
Algorithm Design and Analysis
PPTX
FALLSEM2022-23_BCSE202L_TH_VL2022230103292_Reference_Material_I_25-07-2022_Fu...
PPTX
Lecture 7.pptx
PPTX
Unit ii algorithm
PDF
Analysis and Algorithms: basic Introduction
PDF
DAA - chapter 1.pdf
PPTX
Analysis Framework, Asymptotic Notations
PPT
Analysis.ppt
PPTX
Analysis of algorithms
mathematical nonrecursive algorithm.pptx
Data Structures - Lecture 1 [introduction]
Algorithms
Data Structure & Algorithms - Introduction
Analysis of Algorithms_Under Graduate Class Slide
1-Algorithm Analysijhjhjhjhjhjhjhjhjhjs.pdf
Lec 2 algorithms efficiency complexity
Analysis Framework for Analysis of Algorithms.pdf
Analysis design and analysis of algorithms ppt
Slides [DAA] Unit 2 Ch 2.pdf
Analysis of algorithn class 2
Algorithm Design and Analysis
FALLSEM2022-23_BCSE202L_TH_VL2022230103292_Reference_Material_I_25-07-2022_Fu...
Lecture 7.pptx
Unit ii algorithm
Analysis and Algorithms: basic Introduction
DAA - chapter 1.pdf
Analysis Framework, Asymptotic Notations
Analysis.ppt
Analysis of algorithms
Ad

More from mohanrathod18 (11)

PPTX
Flowchart
PPTX
Upload our ppt on internet
PPTX
PPTX
Graph therory
PPTX
Decrease and conquer technic
PPTX
Minimum spanning tree.
PPTX
Divide and conquer technic
PPTX
Greedy technique.
PPTX
Greedy technic.
PPTX
Asymptotic Notation
PPTX
Brute force technic
Flowchart
Upload our ppt on internet
Graph therory
Decrease and conquer technic
Minimum spanning tree.
Divide and conquer technic
Greedy technique.
Greedy technic.
Asymptotic Notation
Brute force technic

Recently uploaded (20)

PPTX
Nursing Management of Patients with Disorders of Ear, Nose, and Throat (ENT) ...
PDF
From loneliness to social connection charting
PPTX
Onica Farming 24rsclub profitable farm business
PPTX
Introduction to Child Health Nursing – Unit I | Child Health Nursing I | B.Sc...
PDF
PSYCHOLOGY IN EDUCATION.pdf ( nice pdf ...)
PDF
Origin of periodic table-Mendeleev’s Periodic-Modern Periodic table
PDF
Piense y hagase Rico - Napoleon Hill Ccesa007.pdf
PDF
grade 11-chemistry_fetena_net_5883.pdf teacher guide for all student
PDF
Open folder Downloads.pdf yes yes ges yes
PDF
Anesthesia in Laparoscopic Surgery in India
PPTX
Cardiovascular Pharmacology for pharmacy students.pptx
PPTX
Introduction and Scope of Bichemistry.pptx
PDF
3rd Neelam Sanjeevareddy Memorial Lecture.pdf
PDF
O7-L3 Supply Chain Operations - ICLT Program
PPTX
Week 4 Term 3 Study Techniques revisited.pptx
PDF
102 student loan defaulters named and shamed – Is someone you know on the list?
PPTX
Revamp in MTO Odoo 18 Inventory - Odoo Slides
PPTX
Pharmacology of Heart Failure /Pharmacotherapy of CHF
PDF
STATICS OF THE RIGID BODIES Hibbelers.pdf
PPTX
IMMUNITY IMMUNITY refers to protection against infection, and the immune syst...
Nursing Management of Patients with Disorders of Ear, Nose, and Throat (ENT) ...
From loneliness to social connection charting
Onica Farming 24rsclub profitable farm business
Introduction to Child Health Nursing – Unit I | Child Health Nursing I | B.Sc...
PSYCHOLOGY IN EDUCATION.pdf ( nice pdf ...)
Origin of periodic table-Mendeleev’s Periodic-Modern Periodic table
Piense y hagase Rico - Napoleon Hill Ccesa007.pdf
grade 11-chemistry_fetena_net_5883.pdf teacher guide for all student
Open folder Downloads.pdf yes yes ges yes
Anesthesia in Laparoscopic Surgery in India
Cardiovascular Pharmacology for pharmacy students.pptx
Introduction and Scope of Bichemistry.pptx
3rd Neelam Sanjeevareddy Memorial Lecture.pdf
O7-L3 Supply Chain Operations - ICLT Program
Week 4 Term 3 Study Techniques revisited.pptx
102 student loan defaulters named and shamed – Is someone you know on the list?
Revamp in MTO Odoo 18 Inventory - Odoo Slides
Pharmacology of Heart Failure /Pharmacotherapy of CHF
STATICS OF THE RIGID BODIES Hibbelers.pdf
IMMUNITY IMMUNITY refers to protection against infection, and the immune syst...

Mathematical Analysis of Non-Recursive Algorithm.

  • 1. Mathematical analysis of non-recursive algorithm Bharati.C M.Tech
  • 2. General plan • Decide the input size. • Identify basic operations. • Check how many time basic operations is executed & determine best,worst,avg case analyzed seperately. • Set up sum for basic operation. • Simplifying the sum using std formula & rules.
  • 4. • The input size is n. • The basic operation is comparison in loop for finding largest value. • Comparison made for each value for n. • C(n) be the no.of.times comparison is executed. • C(n)=one comparison. • Simplify the sum. Mathematical analysis
  • 7. Mathematical analysis • The input size of the problem is n • The basic operation is if A[i]==A[j] • The outter loop will be executed first to last but one element and inner loop is executed 2 to n arrary index. • C(n) no.of.comparison statement is executed in worstcase.