0% found this document useful (0 votes)
20 views

Algorithms

An algorithm is a step-by-step procedure for solving a computational problem that is hardware and software independent, based on domain knowledge. A program is the implementation of an algorithm using a programming language, making it dependent on specific hardware and software. The key differences are that an algorithm focuses on design while a program focuses on implementation, an algorithm relies on domain knowledge while a program relies on a programmer, and an algorithm can be expressed in any language while a program uses a specific programming language.

Uploaded by

Rajben
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
20 views

Algorithms

An algorithm is a step-by-step procedure for solving a computational problem that is hardware and software independent, based on domain knowledge. A program is the implementation of an algorithm using a programming language, making it dependent on specific hardware and software. The key differences are that an algorithm focuses on design while a program focuses on implementation, an algorithm relies on domain knowledge while a program relies on a programmer, and an algorithm can be expressed in any language while a program uses a specific programming language.

Uploaded by

Rajben
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 1

DEFINITION

Step by step procedure for solving a computational problem

Recipe for some computional problem

WHAT IS A PROGRAM?
Also step by step procedure for solving the problem

What’s the difference between algorithm and program?


ALGORITHM PROGRAM
Design Implementation
Domain knowlege Programmer
Any language(Human language) Programming language
Hardware and software independend system Dependend of hardware and software
Analyze Testing

Characteristic of algorithm

1. 1.Input (nekoi alhoritmi moze nema da imaat input – zero od more input
2. Output – algorithm muste generate at least one output
3. Definitness – every statement should have a single meaning, must be human readable – must be
understood by the human
4. Finitness – algorithm may have 1 statement or 1000 statements but must have finite set of
statements
5. Effectivness – don’t write unnecessary statements

How to analyze an algorithm?


1. Time (execute much faster as he can)
2. Space (memory)
3. Network
4. Power
5. CPU registers

You might also like