Geschreven door studenten die geslaagd zijn Direct beschikbaar na je betaling Online lezen of als PDF Verkeerd document? Gratis ruilen 4,6 TrustPilot
logo-home
College aantekeningen

Analysis and Design of Algorithms - Lecture Notes

Beoordeling
-
Verkocht
-
Pagina's
78
Geüpload op
01-04-2023
Geschreven in
2022/2023

The Algorithms lecture notes PDF provides a comprehensive overview of the principles and techniques used in designing efficient algorithms for solving various computational problems. The notes cover a wide range of topics, including sorting and searching algorithms, graph algorithms, dynamic programming, and greedy algorithms, among others. The notes also provide a detailed analysis of time and space complexity, and how to measure and optimize the performance of algorithms. Overall, these lecture notes are an excellent resource for students and professionals who are interested in learning and mastering the art of algorithm design.

Meer zien Lees minder
Instelling
Vak

Voorbeeld van de inhoud

CONTENTS

MODULE – I

Lecture 1 - Introduction to Design and analysis of algorithms
Lecture 2 - Growth of Functions ( Asymptotic notations)
Lecture 3 - Recurrences, Solution of Recurrences by substitution
Lecture 4 - Recursion tree method
Lecture 5 - Master Method
Lecture 6 - Worst case analysis of merge sort, quick sort and binary search
Lecture 7 - Design and analysis of Divide and Conquer Algorithms
Lecture 8 - Heaps and Heap sort
Lecture 9 - Priority Queue
Lecture 10 - Lower Bounds for Sorting

MODULE -II

Lecture 11 - Dynamic Programming algorithms
Lecture 12 - Matrix Chain Multiplication
Lecture 13 - Elements of Dynamic Programming
Lecture 14 - Longest Common Subsequence
Lecture 15 - Greedy Algorithms
Lecture 16 - Activity Selection Problem
Lecture 17 - Elements of Greedy Strategy
Lecture 18 - Knapsack Problem
Lecture 19 - Fractional Knapsack Problem
Lecture 20 - Huffman Codes

MODULE - III

Lecture 21 - Data Structure for Disjoint Sets
Lecture 22 - Disjoint Set Operations, Linked list Representation
Lecture 23 - Disjoint Forests
Lecture 24 - Graph Algorithm - BFS and DFS
Lecture 25 - Minimum Spanning Trees
Lecture 26 - Kruskal algorithm
Lecture 27 - Prim's Algorithm
Lecture 28 - Single Source Shortest paths
Lecture 29 - Bellmen Ford Algorithm
Lecture 30 - Dijkstra's Algorithm

MODULE -IV

Lecture 31 - Fast Fourier Transform
Lecture 32 - String matching
Lecture 33 - Rabin-Karp Algorithm
Lecture 34 - NP-Completeness
Lecture 35 - Polynomial time verification
Lecture 36 - Reducibility
Lecture 37 - NP-Complete Problems (without proofs)
Lecture 38 - Approximation Algorithms
Lecture 39 - Traveling Salesman Problem

, MODULE - I

• Lecture 1 - Introduction to Design and analysis of algorithms

• Lecture 2 - Growth of Functions ( Asymptotic notations)

• Lecture 3 - Recurrences, Solution of Recurrences by substitution

• Lecture 4 - Recursion tree method

• Lecture 5 - Master Method

• Lecture 6 - Design and analysis of Divide and Conquer Algorithms

• Lecture 7 - Worst case analysis of merge sort, quick sort and binary search

• Lecture 8 - Heaps and Heap sort

• Lecture 9 - Priority Queue

• Lecture 10 - Lower Bounds for Sorting

, Lecture 1 - Introduction to Design and analysis of algorithms


What is an algorithm?
Algorithm is a set of steps to complete a task.
For example,
Task: to make a cup of tea.
Algorithm:

• add water and milk to the kettle,
• boilit, add tea leaves,
• Add sugar, and then serve it in cup.

What is Computer algorithm?

‘’a set of steps to accomplish or complete a task that is described precisely enough that a
computer can run it’’.

Described precisely: very difficult for a machine to know how much water, milk to be added
etc. in the above tea making algorithm.

These algorithmsrun on computers or computational devices.Forexample, GPS in our
smartphones, Google hangouts.

GPS uses shortest path algorithm. Online shopping uses cryptography which uses RSA
algorithm.

Characteristics of an algorithm:-

• Must take an input.
• Must give some output(yes/no,valueetc.)
• Definiteness –each instruction is clear and unambiguous.
• Finiteness –algorithm terminates after a finite number of steps.
• Effectiveness –every instruction must be basic i.e. simple instruction.

, Expectation from an algorithm

• Correctness:-
 Correct: Algorithms must produce correct result.
 Produce an incorrect answer:Even if it fails to give correct results all the time still
there is a control on how often it gives wrong result. Eg.Rabin-Miller PrimalityTest
(Used in RSA algorithm): It doesn’t give correct answer all the time.1 out of 250 times
it gives incorrect result.
 Approximation algorithm: Exact solution is not found, but near optimal solution can
be found out. (Applied to optimization problem.)
• Less resource usage:
Algorithms should use less resources (time and space).


Resource usage:
Here, the time is considered to be the primary measure of efficiency .We are also
concerned with how much the respective algorithm involves the computer memory.But
mostly time is the resource that is dealt with. And the actual running time depends on a
variety of backgrounds: like the speed of the Computer, the language in which the
algorithm is implemented, the compiler/interpreter, skill of the programmers etc.
So, mainly the resource usage can be divided into: 1.Memory (space) 2.Time


Time taken by an algorithm?
 performance measurement or Apostoriori Analysis: Implementing the algorithm
in a machine and then calculating the time taken by the system to execute the program
successfully.
 Performance Evaluation or Apriori Analysis. Before implementing the algorithm in a
system. This is done as follows

Geschreven voor

Instelling
Vak

Documentinformatie

Geüpload op
1 april 2023
Aantal pagina's
78
Geschreven in
2022/2023
Type
College aantekeningen
Docent(en)
K singh
Bevat
Alle colleges

Onderwerpen

$6.48
Krijg toegang tot het volledige document:

Verkeerd document? Gratis ruilen Binnen 14 dagen na aankoop en voor het downloaden kun je een ander document kiezen. Je kunt het bedrag gewoon opnieuw besteden.
Geschreven door studenten die geslaagd zijn
Direct beschikbaar na je betaling
Online lezen of als PDF

Maak kennis met de verkoper
Seller avatar
abhisek05

Maak kennis met de verkoper

Seller avatar
abhisek05 Panjab University
Volgen Je moet ingelogd zijn om studenten of vakken te kunnen volgen
Verkocht
-
Lid sinds
3 jaar
Aantal volgers
0
Documenten
4
Laatst verkocht
-

0.0

0 beoordelingen

5
0
4
0
3
0
2
0
1
0

Recent door jou bekeken

Waarom studenten kiezen voor Stuvia

Gemaakt door medestudenten, geverifieerd door reviews

Kwaliteit die je kunt vertrouwen: geschreven door studenten die slaagden en beoordeeld door anderen die dit document gebruikten.

Niet tevreden? Kies een ander document

Geen zorgen! Je kunt voor hetzelfde geld direct een ander document kiezen dat beter past bij wat je zoekt.

Betaal zoals je wilt, start meteen met leren

Geen abonnement, geen verplichtingen. Betaal zoals je gewend bent via iDeal of creditcard en download je PDF-document meteen.

Student with book image

“Gekocht, gedownload en geslaagd. Zo makkelijk kan het dus zijn.”

Alisha Student

Bezig met je bronvermelding?

Maak nauwkeurige citaten in APA, MLA en Harvard met onze gratis bronnengenerator.

Bezig met je bronvermelding?

Veelgestelde vragen