M.Kalpana Devi, Assistant Professor,Computer Science and Engineering , Sri Ramakrishna Institute of Technology

KALPANADEVIM2 6 views 23 slides Jun 14, 2024
Slide 1
Slide 1 of 23
Slide 1
1
Slide 2
2
Slide 3
3
Slide 4
4
Slide 5
5
Slide 6
6
Slide 7
7
Slide 8
8
Slide 9
9
Slide 10
10
Slide 11
11
Slide 12
12
Slide 13
13
Slide 14
14
Slide 15
15
Slide 16
16
Slide 17
17
Slide 18
18
Slide 19
19
Slide 20
20
Slide 21
21
Slide 22
22
Slide 23
23

About This Presentation

This is useful for CSE students


Slide Content

https:// www.youtube.com/watch?v=vrILCsteFcI https:// www.youtube.com/watch?v=4keo-upf1zk https :// www.youtube.com/watch?v=EjKVorA2EyU

Introduction

Properties of Algorithm

Algorithm and Program Step by step procedure for solving a computational problem. Independent dependent

Characteristics of Algorithm Input: zero or more quantities are externally supplied. Output: At least one quantity is produced Definiteness (confidence): Each instruction is clear and unambiguous (clear cut). Finiteness: The algorithm must terminate after a finite number of steps. Effectiveness: Each instruction is very basic, so that can be carried out in a finite amount of time and it must be feasible (sufficient)

Time Complexity Example

C1=n+1 ( eg : n=10 means, it executes 11 times ) C2=n (it enters the loop when condition is true. So 10 times)

Dominant factor is n

https://www.youtube.com/watch?v=fMZ3aOR_Fnc
Tags