Professional Documents
Culture Documents
Algorithm
ALGORITHM DEIGN AND ANALYSIS
1. Design 1. Implementation
2. Domain Knowledge 2. Programmer
3. Any Language 3. Programing language
4. Independent of hardware & OS 4. Dependent of hardware & OS
5. Analyze 5. Testing
1. Algorithm 1. Program
2. Independent of language 2. Language Dependent
3. Hardware Independent 3. Hardware Dependent
4. Time and Space function 4. Watch time & Bytes
1. Input: Each and every algorithm must have an input. It may be zero or some thing
else, i.e. input is necessary.
2. Output: The algorithm will generate result after processing the input.
3. Definitiveness: Each and every Instruction must be cleared and simple that can be
understand by every one.
4. Finiteness: Each algorithm must have proper starting and ending.
5. Effectiveness: Before preparing any algorithm, firstly it should be sketch on the papers.
Algorithm swap( a, b)
{
temp = a
a=b
b = temp
}