SlideShare ist ein Scribd-Unternehmen logo
1 von 60
Design and Analysis of Computer Algorithm Lecture 1 Ms P.Yatheesha.,Lecturer. .  Department of Computer Science and Engineering PPG Institute of Technology
Acknowledgement ,[object Object],Design and Analysis of Computer Algorithm
Course Information ,[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],Design and Analysis of Computer Algorithm
More Information ,[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],Design and Analysis of Computer Algorithm
Course Objectives ,[object Object],[object Object],[object Object],[object Object],[object Object],Design and Analysis of Computer Algorithm
What is Algorithm? ,[object Object],[object Object],[object Object],[object Object],[object Object],Design and Analysis of Computer Algorithm
What is a program? ,[object Object],[object Object],Design and Analysis of Computer Algorithm
Where We're Going   (1/2) ,[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],Design and Analysis of Computer Algorithm
Where We're Going(2 /2 ) ,[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],Design and Analysis of Computer Algorithm
Some Application ,[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],Design and Analysis of Computer Algorithm
The study of Algorithm ,[object Object],[object Object],[object Object],[object Object],[object Object],Design and Analysis of Computer Algorithm
Importance of  Analyze Algorithm ,[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],Design and Analysis of Computer Algorithm
Wh y  do we analyze about them?  ,[object Object],[object Object],Design and Analysis of Computer Algorithm
What do we analyze about them?  ,[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],Design and Analysis of Computer Algorithm
What do we analyze about them? ,[object Object],[object Object],[object Object],[object Object],Design and Analysis of Computer Algorithm
Complexity  ,[object Object],Design and Analysis of Computer Algorithm
RAM model  ,[object Object],[object Object],[object Object],[object Object],[object Object],Design and Analysis of Computer Algorithm
What’s more important than performance? Design and Analysis of Computer Algorithm
Why study algorithms and performance? ,[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],Design and Analysis of Computer Algorithm
Example Of Algorithm
What is the running time of this algorithm?  ,[object Object],[object Object],[object Object],Design and Analysis of Computer Algorithm pp
The Selection Problem  (1/2) ,[object Object],[object Object],[object Object],[object Object],[object Object],Design and Analysis of Computer Algorithm
The Selection Problem( 2/ 2) ,[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],Design and Analysis of Computer Algorithm
Example: What is an Algorithm?  Design and Analysis of Computer Algorithm 25, 90, 53, 23, 11, 34 INPUT OUTPUT instance 11 Algorithm m:= a[1]; for I:=2 to size of input if  m > a[I]  then  m:=a[I];  return s Data-Structure m Problem:   Input is a sequence of integers stored in an array. Output  the minimum.
Define Problem ,[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],Design and Analysis of Computer Algorithm
Example Algorithm A Design and Analysis of Computer Algorithm Problem:   The input is a sequence of integers stored in array. Output the minimum.  Algorithm A
Example Algorithm B This algorithm uses two temporary arrays . ,[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],Design and Analysis of Computer Algorithm
Visualize Algorithm B 8 9 5 6 11 34 7 20 6 5 8 7 5 7 5 Loop 1 Loop 2 Loop 3 Design and Analysis of Computer Algorithm
Example Algorithm C Sort the input in increasing order.  Return the first element of the sorted data. Sorting black box Design and Analysis of Computer Algorithm 8 9 5 6 11 34 7 20 5 6 7 8 9 11 20 34
Example Algorithm D For each element, test whether it is the minimum. Design and Analysis of Computer Algorithm
Which algorithm is better? ,[object Object],[object Object],[object Object],[object Object],Design and Analysis of Computer Algorithm
What do we need? Correctness:   Whether  the algorithm computes  the correct solution for  all  instances Efficiency:   Resources needed by the algorithm 1. Time:  Number of steps. 2. Space:  amount of memory used. Measurement “model”:  Worst case,  Average case  and  Best case. Design and Analysis of Computer Algorithm
Time vs. Size of Input Measurement parameterized by the size of the input. The algorihtms A,B,C are  implemented  and run in a PC. Algorithms D is implemented and run in a supercomputer. Let  T k (  n  ) be the amount of time taken by the Algorithm 1000 500 Input Size  T b  ( n ) T a  ( n ) Design and Analysis of Computer Algorithm 4  0 2 T c  ( n ) Running time (second) T d ( n )
Methods of Proof ,[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],Design and Analysis of Computer Algorithm
Review: Induction ,[object Object],[object Object],[object Object],[object Object],[object Object],Design and Analysis of Computer Algorithm
Proof By Induction ,[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],Design and Analysis of Computer Algorithm
Induction Example:  Gaussian Closed Form ,[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],Design and Analysis of Computer Algorithm
Induction Example: Geometric Closed Form ,[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],Design and Analysis of Computer Algorithm
Induction ,[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],Design and Analysis of Computer Algorithm
Basic  Recursion ,[object Object],[object Object],[object Object],[object Object],Design and Analysis of Computer Algorithm
Bad Example of Recursion ,[object Object],Design and Analysis of Computer Algorithm int bad(unsigned int n) { if(n == 0) return 0; else return(bad(n/3 + 1) + n - 1); }
Recursion( 1/ 2) ,[object Object],Design and Analysis of Computer Algorithm void print_out(int n) { if(n < 10) print_digit(n); /*outputs single-digit to terminal*/ else   { print_out(n/10); /*print the quotient*/ print_digit(n%10); /*print the remainder*/ } }
Recursion( 2/2 ) ,[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],Design and Analysis of Computer Algorithm
Recursion ,[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],Design and Analysis of Computer Algorithm
What is Algorithm Analysis? ,[object Object],[object Object],[object Object],Design and Analysis of Computer Algorithm pp
Running time for small inputs Design and Analysis of Computer Algorithm pp
Running time for moderate inputs Design and Analysis of Computer Algorithm
Important Question ,[object Object],[object Object],[object Object],[object Object],Design and Analysis of Computer Algorithm
Algorithm Analysis (1/5) ,[object Object],[object Object],[object Object],[object Object],Design and Analysis of Computer Algorithm
Algorithm Analysis ( 2/5 ) ,[object Object],[object Object],[object Object],[object Object],[object Object],Design and Analysis of Computer Algorithm
Algorithm Analysis (3 /5 ) ,[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],Design and Analysis of Computer Algorithm
Algorithm Analysis (4 /5 ) ,[object Object],[object Object],[object Object],Design and Analysis of Computer Algorithm
Algorithm Analysis (5 /5 ) ,[object Object],[object Object],[object Object],[object Object],Design and Analysis of Computer Algorithm
Asymptotic Performance ,[object Object],[object Object],[object Object],[object Object],[object Object],Design and Analysis of Computer Algorithm
Asymptotic Notation ,[object Object],[object Object],[object Object],[object Object],Design and Analysis of Computer Algorithm
Analysis of Algorithms ,[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],Design and Analysis of Computer Algorithm
Input Size ,[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],Design and Analysis of Computer Algorithm
Running Time ,[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],Design and Analysis of Computer Algorithm
Analysis ,[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],Design and Analysis of Computer Algorithm
Function of Growth rate Design and Analysis of Computer Algorithm

Weitere ähnliche Inhalte

Was ist angesagt?

Algorithm Complexity and Main Concepts
Algorithm Complexity and Main ConceptsAlgorithm Complexity and Main Concepts
Algorithm Complexity and Main Concepts
Adelina Ahadova
 
Algorithm analysis
Algorithm analysisAlgorithm analysis
Algorithm analysis
sumitbardhan
 
Introduction to data structures and Algorithm
Introduction to data structures and AlgorithmIntroduction to data structures and Algorithm
Introduction to data structures and Algorithm
Dhaval Kaneria
 

Was ist angesagt? (20)

Design and Analysis of Algorithms
Design and Analysis of AlgorithmsDesign and Analysis of Algorithms
Design and Analysis of Algorithms
 
Algorithm Complexity and Main Concepts
Algorithm Complexity and Main ConceptsAlgorithm Complexity and Main Concepts
Algorithm Complexity and Main Concepts
 
Brute force method
Brute force methodBrute force method
Brute force method
 
Complexity of Algorithm
Complexity of AlgorithmComplexity of Algorithm
Complexity of Algorithm
 
Introduction to Algorithms Complexity Analysis
Introduction to Algorithms Complexity Analysis Introduction to Algorithms Complexity Analysis
Introduction to Algorithms Complexity Analysis
 
Algorithms Lecture 8: Pattern Algorithms
Algorithms Lecture 8: Pattern AlgorithmsAlgorithms Lecture 8: Pattern Algorithms
Algorithms Lecture 8: Pattern Algorithms
 
Complexity analysis in Algorithms
Complexity analysis in AlgorithmsComplexity analysis in Algorithms
Complexity analysis in Algorithms
 
Insertion Sorting
Insertion SortingInsertion Sorting
Insertion Sorting
 
Algorithm analysis
Algorithm analysisAlgorithm analysis
Algorithm analysis
 
Minimum spanning tree
Minimum spanning treeMinimum spanning tree
Minimum spanning tree
 
Design and analysis of algorithms
Design and analysis of algorithmsDesign and analysis of algorithms
Design and analysis of algorithms
 
Data Structures and Algorithm Analysis
Data Structures  and  Algorithm AnalysisData Structures  and  Algorithm Analysis
Data Structures and Algorithm Analysis
 
Algorithm And analysis Lecture 03& 04-time complexity.
 Algorithm And analysis Lecture 03& 04-time complexity. Algorithm And analysis Lecture 03& 04-time complexity.
Algorithm And analysis Lecture 03& 04-time complexity.
 
Asymptotic notation
Asymptotic notationAsymptotic notation
Asymptotic notation
 
Analysis of algorithms
Analysis of algorithmsAnalysis of algorithms
Analysis of algorithms
 
Introduction to data structures and Algorithm
Introduction to data structures and AlgorithmIntroduction to data structures and Algorithm
Introduction to data structures and Algorithm
 
Asymptotic Notation
Asymptotic NotationAsymptotic Notation
Asymptotic Notation
 
Sum of subsets problem by backtracking 
Sum of subsets problem by backtracking Sum of subsets problem by backtracking 
Sum of subsets problem by backtracking 
 
Data structures and algorithms
Data structures and algorithmsData structures and algorithms
Data structures and algorithms
 
Big o notation
Big o notationBig o notation
Big o notation
 

Ähnlich wie chapter 1

Analysis of Algorithm full version 2024.pptx
Analysis of Algorithm  full version  2024.pptxAnalysis of Algorithm  full version  2024.pptx
Analysis of Algorithm full version 2024.pptx
rajesshs31r
 
Design Analysis of Alogorithm 1 ppt 2024.pptx
Design Analysis of Alogorithm 1 ppt 2024.pptxDesign Analysis of Alogorithm 1 ppt 2024.pptx
Design Analysis of Alogorithm 1 ppt 2024.pptx
rajesshs31r
 
Aad introduction
Aad introductionAad introduction
Aad introduction
Mr SMAK
 
CP4151 Advanced data structures and algorithms
CP4151 Advanced data structures and algorithmsCP4151 Advanced data structures and algorithms
CP4151 Advanced data structures and algorithms
Sheba41
 
2-Algorithms and Complexit data structurey.pdf
2-Algorithms and Complexit data structurey.pdf2-Algorithms and Complexit data structurey.pdf
2-Algorithms and Complexit data structurey.pdf
ishan743441
 

Ähnlich wie chapter 1 (20)

complexity analysis.pdf
complexity analysis.pdfcomplexity analysis.pdf
complexity analysis.pdf
 
Lecture 01-2.ppt
Lecture 01-2.pptLecture 01-2.ppt
Lecture 01-2.ppt
 
Chapter one
Chapter oneChapter one
Chapter one
 
Analysis of Algorithm full version 2024.pptx
Analysis of Algorithm  full version  2024.pptxAnalysis of Algorithm  full version  2024.pptx
Analysis of Algorithm full version 2024.pptx
 
Design Analysis of Alogorithm 1 ppt 2024.pptx
Design Analysis of Alogorithm 1 ppt 2024.pptxDesign Analysis of Alogorithm 1 ppt 2024.pptx
Design Analysis of Alogorithm 1 ppt 2024.pptx
 
DA lecture 3.pptx
DA lecture 3.pptxDA lecture 3.pptx
DA lecture 3.pptx
 
Data Structures and Algorithms Unit 01
Data Structures and Algorithms Unit 01Data Structures and Algorithms Unit 01
Data Structures and Algorithms Unit 01
 
Aad introduction
Aad introductionAad introduction
Aad introduction
 
Algorithm Analysis.pdf
Algorithm Analysis.pdfAlgorithm Analysis.pdf
Algorithm Analysis.pdf
 
Daa chapter 1
Daa chapter 1Daa chapter 1
Daa chapter 1
 
Chapter two
Chapter twoChapter two
Chapter two
 
CP4151 Advanced data structures and algorithms
CP4151 Advanced data structures and algorithmsCP4151 Advanced data structures and algorithms
CP4151 Advanced data structures and algorithms
 
Algorithm Design and Analysis
Algorithm Design and AnalysisAlgorithm Design and Analysis
Algorithm Design and Analysis
 
ALGO.ppt
ALGO.pptALGO.ppt
ALGO.ppt
 
CP4151 ADSA unit1 Advanced Data Structures and Algorithms
CP4151 ADSA unit1 Advanced Data Structures and AlgorithmsCP4151 ADSA unit1 Advanced Data Structures and Algorithms
CP4151 ADSA unit1 Advanced Data Structures and Algorithms
 
Algorithm Class at KPHB (C, C++ Course Training Institute in KPHB, Kukatpally...
Algorithm Class at KPHB (C, C++ Course Training Institute in KPHB, Kukatpally...Algorithm Class at KPHB (C, C++ Course Training Institute in KPHB, Kukatpally...
Algorithm Class at KPHB (C, C++ Course Training Institute in KPHB, Kukatpally...
 
Algorithm Class at KPHB (C, C++ Course Training Institute in KPHB, Kukatpally...
Algorithm Class at KPHB (C, C++ Course Training Institute in KPHB, Kukatpally...Algorithm Class at KPHB (C, C++ Course Training Institute in KPHB, Kukatpally...
Algorithm Class at KPHB (C, C++ Course Training Institute in KPHB, Kukatpally...
 
Algorithm Class at KPHB (C, C++ Course Training Institute in KPHB, Kukatpall...
Algorithm Class at KPHB  (C, C++ Course Training Institute in KPHB, Kukatpall...Algorithm Class at KPHB  (C, C++ Course Training Institute in KPHB, Kukatpall...
Algorithm Class at KPHB (C, C++ Course Training Institute in KPHB, Kukatpall...
 
Algorithm Class at KPHB (C, C++ Course Training Institute in KPHB, Kukatpally...
Algorithm Class at KPHB (C, C++ Course Training Institute in KPHB, Kukatpally...Algorithm Class at KPHB (C, C++ Course Training Institute in KPHB, Kukatpally...
Algorithm Class at KPHB (C, C++ Course Training Institute in KPHB, Kukatpally...
 
2-Algorithms and Complexit data structurey.pdf
2-Algorithms and Complexit data structurey.pdf2-Algorithms and Complexit data structurey.pdf
2-Algorithms and Complexit data structurey.pdf
 

Kürzlich hochgeladen

Vishram Singh - Textbook of Anatomy Upper Limb and Thorax.. Volume 1 (1).pdf
Vishram Singh - Textbook of Anatomy  Upper Limb and Thorax.. Volume 1 (1).pdfVishram Singh - Textbook of Anatomy  Upper Limb and Thorax.. Volume 1 (1).pdf
Vishram Singh - Textbook of Anatomy Upper Limb and Thorax.. Volume 1 (1).pdf
ssuserdda66b
 
The basics of sentences session 3pptx.pptx
The basics of sentences session 3pptx.pptxThe basics of sentences session 3pptx.pptx
The basics of sentences session 3pptx.pptx
heathfieldcps1
 
Activity 01 - Artificial Culture (1).pdf
Activity 01 - Artificial Culture (1).pdfActivity 01 - Artificial Culture (1).pdf
Activity 01 - Artificial Culture (1).pdf
ciinovamais
 
Salient Features of India constitution especially power and functions
Salient Features of India constitution especially power and functionsSalient Features of India constitution especially power and functions
Salient Features of India constitution especially power and functions
KarakKing
 

Kürzlich hochgeladen (20)

How to Create and Manage Wizard in Odoo 17
How to Create and Manage Wizard in Odoo 17How to Create and Manage Wizard in Odoo 17
How to Create and Manage Wizard in Odoo 17
 
SOC 101 Demonstration of Learning Presentation
SOC 101 Demonstration of Learning PresentationSOC 101 Demonstration of Learning Presentation
SOC 101 Demonstration of Learning Presentation
 
Vishram Singh - Textbook of Anatomy Upper Limb and Thorax.. Volume 1 (1).pdf
Vishram Singh - Textbook of Anatomy  Upper Limb and Thorax.. Volume 1 (1).pdfVishram Singh - Textbook of Anatomy  Upper Limb and Thorax.. Volume 1 (1).pdf
Vishram Singh - Textbook of Anatomy Upper Limb and Thorax.. Volume 1 (1).pdf
 
Application orientated numerical on hev.ppt
Application orientated numerical on hev.pptApplication orientated numerical on hev.ppt
Application orientated numerical on hev.ppt
 
Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...
Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...
Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...
 
Unit-IV- Pharma. Marketing Channels.pptx
Unit-IV- Pharma. Marketing Channels.pptxUnit-IV- Pharma. Marketing Channels.pptx
Unit-IV- Pharma. Marketing Channels.pptx
 
Kodo Millet PPT made by Ghanshyam bairwa college of Agriculture kumher bhara...
Kodo Millet  PPT made by Ghanshyam bairwa college of Agriculture kumher bhara...Kodo Millet  PPT made by Ghanshyam bairwa college of Agriculture kumher bhara...
Kodo Millet PPT made by Ghanshyam bairwa college of Agriculture kumher bhara...
 
Spatium Project Simulation student brief
Spatium Project Simulation student briefSpatium Project Simulation student brief
Spatium Project Simulation student brief
 
Food safety_Challenges food safety laboratories_.pdf
Food safety_Challenges food safety laboratories_.pdfFood safety_Challenges food safety laboratories_.pdf
Food safety_Challenges food safety laboratories_.pdf
 
Google Gemini An AI Revolution in Education.pptx
Google Gemini An AI Revolution in Education.pptxGoogle Gemini An AI Revolution in Education.pptx
Google Gemini An AI Revolution in Education.pptx
 
2024-NATIONAL-LEARNING-CAMP-AND-OTHER.pptx
2024-NATIONAL-LEARNING-CAMP-AND-OTHER.pptx2024-NATIONAL-LEARNING-CAMP-AND-OTHER.pptx
2024-NATIONAL-LEARNING-CAMP-AND-OTHER.pptx
 
The basics of sentences session 3pptx.pptx
The basics of sentences session 3pptx.pptxThe basics of sentences session 3pptx.pptx
The basics of sentences session 3pptx.pptx
 
This PowerPoint helps students to consider the concept of infinity.
This PowerPoint helps students to consider the concept of infinity.This PowerPoint helps students to consider the concept of infinity.
This PowerPoint helps students to consider the concept of infinity.
 
Python Notes for mca i year students osmania university.docx
Python Notes for mca i year students osmania university.docxPython Notes for mca i year students osmania university.docx
Python Notes for mca i year students osmania university.docx
 
Graduate Outcomes Presentation Slides - English
Graduate Outcomes Presentation Slides - EnglishGraduate Outcomes Presentation Slides - English
Graduate Outcomes Presentation Slides - English
 
On National Teacher Day, meet the 2024-25 Kenan Fellows
On National Teacher Day, meet the 2024-25 Kenan FellowsOn National Teacher Day, meet the 2024-25 Kenan Fellows
On National Teacher Day, meet the 2024-25 Kenan Fellows
 
Activity 01 - Artificial Culture (1).pdf
Activity 01 - Artificial Culture (1).pdfActivity 01 - Artificial Culture (1).pdf
Activity 01 - Artificial Culture (1).pdf
 
Salient Features of India constitution especially power and functions
Salient Features of India constitution especially power and functionsSalient Features of India constitution especially power and functions
Salient Features of India constitution especially power and functions
 
General Principles of Intellectual Property: Concepts of Intellectual Proper...
General Principles of Intellectual Property: Concepts of Intellectual  Proper...General Principles of Intellectual Property: Concepts of Intellectual  Proper...
General Principles of Intellectual Property: Concepts of Intellectual Proper...
 
Unit-V; Pricing (Pharma Marketing Management).pptx
Unit-V; Pricing (Pharma Marketing Management).pptxUnit-V; Pricing (Pharma Marketing Management).pptx
Unit-V; Pricing (Pharma Marketing Management).pptx
 

chapter 1

  • 1. Design and Analysis of Computer Algorithm Lecture 1 Ms P.Yatheesha.,Lecturer. . Department of Computer Science and Engineering PPG Institute of Technology
  • 2.
  • 3.
  • 4.
  • 5.
  • 6.
  • 7.
  • 8.
  • 9.
  • 10.
  • 11.
  • 12.
  • 13.
  • 14.
  • 15.
  • 16.
  • 17.
  • 18. What’s more important than performance? Design and Analysis of Computer Algorithm
  • 19.
  • 21.
  • 22.
  • 23.
  • 24. Example: What is an Algorithm? Design and Analysis of Computer Algorithm 25, 90, 53, 23, 11, 34 INPUT OUTPUT instance 11 Algorithm m:= a[1]; for I:=2 to size of input if m > a[I] then m:=a[I]; return s Data-Structure m Problem: Input is a sequence of integers stored in an array. Output the minimum.
  • 25.
  • 26. Example Algorithm A Design and Analysis of Computer Algorithm Problem: The input is a sequence of integers stored in array. Output the minimum. Algorithm A
  • 27.
  • 28. Visualize Algorithm B 8 9 5 6 11 34 7 20 6 5 8 7 5 7 5 Loop 1 Loop 2 Loop 3 Design and Analysis of Computer Algorithm
  • 29. Example Algorithm C Sort the input in increasing order. Return the first element of the sorted data. Sorting black box Design and Analysis of Computer Algorithm 8 9 5 6 11 34 7 20 5 6 7 8 9 11 20 34
  • 30. Example Algorithm D For each element, test whether it is the minimum. Design and Analysis of Computer Algorithm
  • 31.
  • 32. What do we need? Correctness: Whether the algorithm computes the correct solution for all instances Efficiency: Resources needed by the algorithm 1. Time: Number of steps. 2. Space: amount of memory used. Measurement “model”: Worst case, Average case and Best case. Design and Analysis of Computer Algorithm
  • 33. Time vs. Size of Input Measurement parameterized by the size of the input. The algorihtms A,B,C are implemented and run in a PC. Algorithms D is implemented and run in a supercomputer. Let T k ( n ) be the amount of time taken by the Algorithm 1000 500 Input Size T b ( n ) T a ( n ) Design and Analysis of Computer Algorithm 4 0 2 T c ( n ) Running time (second) T d ( n )
  • 34.
  • 35.
  • 36.
  • 37.
  • 38.
  • 39.
  • 40.
  • 41.
  • 42.
  • 43.
  • 44.
  • 45.
  • 46. Running time for small inputs Design and Analysis of Computer Algorithm pp
  • 47. Running time for moderate inputs Design and Analysis of Computer Algorithm
  • 48.
  • 49.
  • 50.
  • 51.
  • 52.
  • 53.
  • 54.
  • 55.
  • 56.
  • 57.
  • 58.
  • 59.
  • 60. Function of Growth rate Design and Analysis of Computer Algorithm