15. Algorithm Designs
15. Algorithm Designs
Tushar B. Kute,
http://tusharkute.com
What is algorithm?
• Quicksort
• Mergesort
• Binary Search
• Strassen's algorithm
Greedy Algorithm
• Advantages:
– Often very efficient
– Can be used to find good solutions to problems
even when the optimal solution is difficult to find
• Disadvantages:
– May not always find the optimal solution
– Can be sensitive to the order in which the choices
are made
Greedy Algorithm: Examples
• Advantages:
– Simple to design and implement
– Guaranteed to find a solution if one exists
• Disadvantages:
– Very inefficient for large problems
– May require a lot of memory
Backtracking Algorithms
• Advantages:
– Guaranteed to find a solution if one exists
– Can be used to solve a wide variety of problems
• Disadvantages:
– Can be inefficient for large problems
– May require a lot of memory
Branch-and-bound algorithms
• Advantages:
– Can find optimal solutions to problems
– Can be used to solve a wide variety of problems,
including combinatorial and continuous
optimization problems
• Disadvantages:
– Can be computationally expensive for problems
with a large number of possible solutions
– Can be difficult to implement
Stochastic Algorithms
• Priori Analysis:
– Here, priori analysis is the theoretical analysis of an
algorithm which is done before implementing the
algorithm. Various factors can be considered before
implementing the algorithm like processor speed, which
has no effect on the implementation part.
• Posterior Analysis:
– Here, posterior analysis is a practical analysis of an
algorithm. The practical analysis is achieved by
implementing the algorithm using any programming
language. This analysis basically evaluate that how much
running time and space taken by the algorithm.
Time Complexity
• Operating systems
– Linked List, Stack, Queue
• Databases
– Trees
• Compilers
– Symbol Tables
• Graphics
– Linked List
Applications of Data Structures
• Networking
– Trees and Graphs
• Web Browsers
– Stack
• Search Engines
– Trees and many
• Social Network
– Trees and Graphs
Thank you
This presentation is created using LibreOffice Impress 7.4.1.2, can be used freely as per GNU General Public License
Web Resources
https://mitu.co.in
@mituskillologies http://tusharkute.com @mituskillologies