SlideShare a Scribd company logo
1 of 10
INTRODUCTION TO
ALGORITHM
Presented By :
Swasti Swagat Palauri
Regd.No. :- 220301120018
Sec :- A
CONTENT :
1. Algorithm
2. Characteristics of Algorithms
3. Phases of algorithms
WHAT IS ALGORITHM ?
• An algorithm is a sequence of
unambiguous instructions for solving a problem,
i.e., for obtaining a required output for any
legitimate input in a finite amount of time.
• An algorithm is a step-by-step procedure to solve a
given problem.
CHARACTERISTICS OF
ALGORITHMS
• Finiteness: Algorithms terminate after a finite number of steps.
• Definiteness: Each steps of an algorithm must be precisely defined.
• Inputs: An algorithm has zero or more but only finite, number of
inputs
• Outputs: An algorithm should have 1 or more well-defined outputs,
and should match the desired output.
• Effectiveness : An algorithm should be effective.
PHASES OF ALGORITHMS
 There are four phases of algorithm:
• Design of Algorithms
• Algorithm Validation
• Analysis of Algorithms
• Algorithm Testing
DESIGN OF ALGORITHMS
• It is used to find the a correct solution for a problem.
• Designing techniques are:
 Divide and Conquer algorithm
Binary Search, Merge Sort, Heap sort, Strassen’s Algorithm, FFT
algorithms etc.
 Incremental approach
Insertion sort
 Dynamic programming
MCM, LCS, 0-1 Knapsack Problem, Shortest path (Floyd Warshall
Algorithm, Bellman Ford Algorithm) etc.
 Greedy algorithm
Minimum Spanning Tree, Dijkstra's Shortest Path Algorithm,
Activity Selection Problem, Huffman Coding, Fractional
Knapsack problem etc.
ALGORITHM VALIDATION
 It involves checking the logic, the inputs, the outputs, and
the behavior of the algorithm under different scenarios and
conditions.
 Validating an algorithm confirms that it is actually
providing a mathematical solution to the problem we are
trying to solve.
 This phase is also known as program proving or program
verification.
ANALYSIS OF ALGORITHM
It is used to determine the amount of computing time and
storage space of an algorithm.
It focuses on
 Time complexity
 Space complexity
 Time complexity: Amount of time required an
algorithm or program to run to completion.
 Space complexity : Amount of memory required
program to run to completion.
ALGORITHM TESTING
• It tests the program.
• It consists of two phases:
 Debugging
 Performance measurement
Debugging:
Debugging is the process of finding and
correcting the cause.
Performance measurement:
The performance measurement or profiling
precisely describe the correct program execution for all
possible data sets.
THANK
YOU

More Related Content

Similar to INTRODUCTION TO ALGORITHM in MATHEMATICAL PROBLEM SOLVING

01 Introduction to analysis of Algorithms.pptx
01 Introduction to analysis of Algorithms.pptx01 Introduction to analysis of Algorithms.pptx
01 Introduction to analysis of Algorithms.pptx
ssuser586772
 
Introduction to algorithn class 1
Introduction to algorithn class 1Introduction to algorithn class 1
Introduction to algorithn class 1
Kumar
 
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
 

Similar to INTRODUCTION TO ALGORITHM in MATHEMATICAL PROBLEM SOLVING (20)

Chapter1.1 Introduction to design and analysis of algorithm.ppt
Chapter1.1 Introduction to design and analysis of algorithm.pptChapter1.1 Introduction to design and analysis of algorithm.ppt
Chapter1.1 Introduction to design and analysis of algorithm.ppt
 
Analysis and Design of Algorithms
Analysis and Design of AlgorithmsAnalysis and Design of Algorithms
Analysis and Design of Algorithms
 
Python algorithm
Python algorithmPython algorithm
Python algorithm
 
Introduction to data structure
Introduction to data structureIntroduction to data structure
Introduction to data structure
 
01 Introduction to analysis of Algorithms.pptx
01 Introduction to analysis of Algorithms.pptx01 Introduction to analysis of Algorithms.pptx
01 Introduction to analysis of Algorithms.pptx
 
Design and Analysis of Algorithms.pptx
Design and Analysis of Algorithms.pptxDesign and Analysis of Algorithms.pptx
Design and Analysis of Algorithms.pptx
 
DAA 1 ppt.pptx
DAA 1 ppt.pptxDAA 1 ppt.pptx
DAA 1 ppt.pptx
 
DAA ppt.pptx
DAA ppt.pptxDAA ppt.pptx
DAA ppt.pptx
 
Introduction to algorithn class 1
Introduction to algorithn class 1Introduction to algorithn class 1
Introduction to algorithn class 1
 
algorithm_lec_1eregdsgdfgdgdfgdfgdfg.ppt
algorithm_lec_1eregdsgdfgdgdfgdfgdfg.pptalgorithm_lec_1eregdsgdfgdgdfgdfgdfg.ppt
algorithm_lec_1eregdsgdfgdgdfgdfgdfg.ppt
 
Algorithm.pptx
Algorithm.pptxAlgorithm.pptx
Algorithm.pptx
 
Algorithm.pptx
Algorithm.pptxAlgorithm.pptx
Algorithm.pptx
 
Introduction To Algorithms
Introduction To AlgorithmsIntroduction To Algorithms
Introduction To Algorithms
 
Introduction to Algorithms Introduction to Algorithms.pptx
Introduction to Algorithms Introduction to Algorithms.pptxIntroduction to Algorithms Introduction to Algorithms.pptx
Introduction to Algorithms Introduction to Algorithms.pptx
 
Algorithm and C code related to data structure
Algorithm and C code related to data structureAlgorithm and C code related to data structure
Algorithm and C code related to data structure
 
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
 
Algorithm.pptx
Algorithm.pptxAlgorithm.pptx
Algorithm.pptx
 
Data Structures and Algorithms
Data Structures and AlgorithmsData Structures and Algorithms
Data Structures and Algorithms
 
Algorithm.pdf
Algorithm.pdfAlgorithm.pdf
Algorithm.pdf
 

Recently uploaded

Transparency, Recognition and the role of eSealing - Ildiko Mazar and Koen No...
Transparency, Recognition and the role of eSealing - Ildiko Mazar and Koen No...Transparency, Recognition and the role of eSealing - Ildiko Mazar and Koen No...
Transparency, Recognition and the role of eSealing - Ildiko Mazar and Koen No...
EADTU
 
會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽
會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽
會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽
中 央社
 
Spellings Wk 4 and Wk 5 for Grade 4 at CAPS
Spellings Wk 4 and Wk 5 for Grade 4 at CAPSSpellings Wk 4 and Wk 5 for Grade 4 at CAPS
Spellings Wk 4 and Wk 5 for Grade 4 at CAPS
AnaAcapella
 

Recently uploaded (20)

Đề tieng anh thpt 2024 danh cho cac ban hoc sinh
Đề tieng anh thpt 2024 danh cho cac ban hoc sinhĐề tieng anh thpt 2024 danh cho cac ban hoc sinh
Đề tieng anh thpt 2024 danh cho cac ban hoc sinh
 
Trauma-Informed Leadership - Five Practical Principles
Trauma-Informed Leadership - Five Practical PrinciplesTrauma-Informed Leadership - Five Practical Principles
Trauma-Informed Leadership - Five Practical Principles
 
Stl Algorithms in C++ jjjjjjjjjjjjjjjjjj
Stl Algorithms in C++ jjjjjjjjjjjjjjjjjjStl Algorithms in C++ jjjjjjjjjjjjjjjjjj
Stl Algorithms in C++ jjjjjjjjjjjjjjjjjj
 
Book Review of Run For Your Life Powerpoint
Book Review of Run For Your Life PowerpointBook Review of Run For Your Life Powerpoint
Book Review of Run For Your Life Powerpoint
 
Transparency, Recognition and the role of eSealing - Ildiko Mazar and Koen No...
Transparency, Recognition and the role of eSealing - Ildiko Mazar and Koen No...Transparency, Recognition and the role of eSealing - Ildiko Mazar and Koen No...
Transparency, Recognition and the role of eSealing - Ildiko Mazar and Koen No...
 
diagnosting testing bsc 2nd sem.pptx....
diagnosting testing bsc 2nd sem.pptx....diagnosting testing bsc 2nd sem.pptx....
diagnosting testing bsc 2nd sem.pptx....
 
ANTI PARKISON DRUGS.pptx
ANTI         PARKISON          DRUGS.pptxANTI         PARKISON          DRUGS.pptx
ANTI PARKISON DRUGS.pptx
 
Mattingly "AI and Prompt Design: LLMs with NER"
Mattingly "AI and Prompt Design: LLMs with NER"Mattingly "AI and Prompt Design: LLMs with NER"
Mattingly "AI and Prompt Design: LLMs with NER"
 
How to Send Pro Forma Invoice to Your Customers in Odoo 17
How to Send Pro Forma Invoice to Your Customers in Odoo 17How to Send Pro Forma Invoice to Your Customers in Odoo 17
How to Send Pro Forma Invoice to Your Customers in Odoo 17
 
DEMONSTRATION LESSON IN ENGLISH 4 MATATAG CURRICULUM
DEMONSTRATION LESSON IN ENGLISH 4 MATATAG CURRICULUMDEMONSTRATION LESSON IN ENGLISH 4 MATATAG CURRICULUM
DEMONSTRATION LESSON IN ENGLISH 4 MATATAG CURRICULUM
 
OSCM Unit 2_Operations Processes & Systems
OSCM Unit 2_Operations Processes & SystemsOSCM Unit 2_Operations Processes & Systems
OSCM Unit 2_Operations Processes & Systems
 
male presentation...pdf.................
male presentation...pdf.................male presentation...pdf.................
male presentation...pdf.................
 
會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽
會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽
會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽
 
Mattingly "AI & Prompt Design: Named Entity Recognition"
Mattingly "AI & Prompt Design: Named Entity Recognition"Mattingly "AI & Prompt Design: Named Entity Recognition"
Mattingly "AI & Prompt Design: Named Entity Recognition"
 
8 Tips for Effective Working Capital Management
8 Tips for Effective Working Capital Management8 Tips for Effective Working Capital Management
8 Tips for Effective Working Capital Management
 
Including Mental Health Support in Project Delivery, 14 May.pdf
Including Mental Health Support in Project Delivery, 14 May.pdfIncluding Mental Health Support in Project Delivery, 14 May.pdf
Including Mental Health Support in Project Delivery, 14 May.pdf
 
24 ĐỀ THAM KHẢO KÌ THI TUYỂN SINH VÀO LỚP 10 MÔN TIẾNG ANH SỞ GIÁO DỤC HẢI DƯ...
24 ĐỀ THAM KHẢO KÌ THI TUYỂN SINH VÀO LỚP 10 MÔN TIẾNG ANH SỞ GIÁO DỤC HẢI DƯ...24 ĐỀ THAM KHẢO KÌ THI TUYỂN SINH VÀO LỚP 10 MÔN TIẾNG ANH SỞ GIÁO DỤC HẢI DƯ...
24 ĐỀ THAM KHẢO KÌ THI TUYỂN SINH VÀO LỚP 10 MÔN TIẾNG ANH SỞ GIÁO DỤC HẢI DƯ...
 
An overview of the various scriptures in Hinduism
An overview of the various scriptures in HinduismAn overview of the various scriptures in Hinduism
An overview of the various scriptures in Hinduism
 
Basic Civil Engineering notes on Transportation Engineering & Modes of Transport
Basic Civil Engineering notes on Transportation Engineering & Modes of TransportBasic Civil Engineering notes on Transportation Engineering & Modes of Transport
Basic Civil Engineering notes on Transportation Engineering & Modes of Transport
 
Spellings Wk 4 and Wk 5 for Grade 4 at CAPS
Spellings Wk 4 and Wk 5 for Grade 4 at CAPSSpellings Wk 4 and Wk 5 for Grade 4 at CAPS
Spellings Wk 4 and Wk 5 for Grade 4 at CAPS
 

INTRODUCTION TO ALGORITHM in MATHEMATICAL PROBLEM SOLVING

  • 1. INTRODUCTION TO ALGORITHM Presented By : Swasti Swagat Palauri Regd.No. :- 220301120018 Sec :- A
  • 2. CONTENT : 1. Algorithm 2. Characteristics of Algorithms 3. Phases of algorithms
  • 3. WHAT IS ALGORITHM ? • An algorithm is a sequence of unambiguous instructions for solving a problem, i.e., for obtaining a required output for any legitimate input in a finite amount of time. • An algorithm is a step-by-step procedure to solve a given problem.
  • 4. CHARACTERISTICS OF ALGORITHMS • Finiteness: Algorithms terminate after a finite number of steps. • Definiteness: Each steps of an algorithm must be precisely defined. • Inputs: An algorithm has zero or more but only finite, number of inputs • Outputs: An algorithm should have 1 or more well-defined outputs, and should match the desired output. • Effectiveness : An algorithm should be effective.
  • 5. PHASES OF ALGORITHMS  There are four phases of algorithm: • Design of Algorithms • Algorithm Validation • Analysis of Algorithms • Algorithm Testing
  • 6. DESIGN OF ALGORITHMS • It is used to find the a correct solution for a problem. • Designing techniques are:  Divide and Conquer algorithm Binary Search, Merge Sort, Heap sort, Strassen’s Algorithm, FFT algorithms etc.  Incremental approach Insertion sort  Dynamic programming MCM, LCS, 0-1 Knapsack Problem, Shortest path (Floyd Warshall Algorithm, Bellman Ford Algorithm) etc.  Greedy algorithm Minimum Spanning Tree, Dijkstra's Shortest Path Algorithm, Activity Selection Problem, Huffman Coding, Fractional Knapsack problem etc.
  • 7. ALGORITHM VALIDATION  It involves checking the logic, the inputs, the outputs, and the behavior of the algorithm under different scenarios and conditions.  Validating an algorithm confirms that it is actually providing a mathematical solution to the problem we are trying to solve.  This phase is also known as program proving or program verification.
  • 8. ANALYSIS OF ALGORITHM It is used to determine the amount of computing time and storage space of an algorithm. It focuses on  Time complexity  Space complexity  Time complexity: Amount of time required an algorithm or program to run to completion.  Space complexity : Amount of memory required program to run to completion.
  • 9. ALGORITHM TESTING • It tests the program. • It consists of two phases:  Debugging  Performance measurement Debugging: Debugging is the process of finding and correcting the cause. Performance measurement: The performance measurement or profiling precisely describe the correct program execution for all possible data sets.