Algorithm_Unit1 of Information Technology and Computer
DaveAndrew10
30 views
10 slides
Aug 27, 2025
Slide 1 of 10
1
2
3
4
5
6
7
8
9
10
About This Presentation
DAA
Size: 35.95 KB
Language: en
Added: Aug 27, 2025
Slides: 10 pages
Slide Content
Unit 1: Introduction to Algorithms Course: Design and Analysis of Algorithms (Anna University) Unit 1: Introduction
Notion of an Algorithm - A well-defined computational procedure. - Input → Output via finite steps. Characteristics: • Input • Output • Definiteness • Finiteness • Effectiveness
Fundamentals of Algorithmic Problem Solving Steps: 1. Understand the problem 2. Identify input and output 3. Design a strategy 4. Formulate algorithm 5. Verify correctness 6. Analyze efficiency
Analysis of Algorithm Efficiency - Time Complexity: Measures running time - Space Complexity: Measures memory usage - Types: Best, Average, Worst Case - Performance depends on input size (n)
Analysis Framework - Define the input size (n) - Identify the basic operation - Count how many times it executes - Determine growth function T(n)
Asymptotic Notations Used to describe the running time: - Big O (O): Upper bound (Worst Case) - Omega (Ω): Lower bound (Best Case) - Theta (Θ): Tight bound (Average Case) Properties: Transitive, Symmetric, Reflexive
Empirical Analysis - Measure actual running time - Tools: Stopwatch, Timer, Profilers - Run on different inputs and compare