UrbanPro
true

Take BTech Tuition from the Best Tutors

  • Affordable fees
  • 1-1 or Group class
  • Flexible Timings
  • Verified Tutors

Search in

Description of an Algorithm

P
Parul R.
04/08/2020 0 0

What is an Algorithm?

An Algorithm is a step-by-step procedure, which defines a set of rules to be executed in a specific order to get the desired output.

Characteristics of Algorithm:

  • Language independent
  • Feasible
  • Unambiguous
  • Finiteness
  • Well-define input
  • Output (should match the desired output)

Analysis of Algorithm

Analysis of the algorithm is the process of analyzing the problem-solving capability of the algorithm in terms of the time and size required. There are two different stages to perform efficiency of an algorithm, before and after implementation.

Complexity of Algorithm

The complexity of an algorithm is a measure of the amount of time and/or space required by an algorithm 

 Time Complexity:   An amount of time that needs to execute an algorithm.

 Space Complexity: A storage of memory that requires to execute an algorithm

 How to design an Algorithm.

Design an algorithm to add two numbers.

Step 1 − START

Step 2 − declare three integers a, b & add

Step 3 − define values of a & b

Step 4 − add values of a & b

Step 5 − store output of step 4 to add

Step 6 − print add

Step 7 – STOP

0 Dislike
Follow 2

Please Enter a comment

Submit

Other Lessons for You



DATA FILE STRUCTURE
Binary Search Tree A tree is a connected, acyclic, unidirectional graph. It emulates a tree structure with a set of linked nodes. The topmost node in a tree is called the root node, node of a tree...

Why Data Structures and Algorithms are important in Curriculum
Data Structures:- Data organized in a particular way that can be utilized effectively. Algorithms:- A finite sequence of well-defined, instructions typically to solve a class of problems or to perform...

C program for Beginners
A Program to print 2 integer value. #include<stdio.h> #include<conio.h> main() int a,b,add; a=5; b=3; add=a+b; printf(“ Addition=%d”,&add); getch(); Brief description...
P
X

Looking for BTech Tuition Classes?

The best tutors for BTech Tuition Classes are on UrbanPro

  • Select the best Tutor
  • Book & Attend a Free Demo
  • Pay and start Learning

Take BTech Tuition with the Best Tutors

The best Tutors for BTech Tuition Classes are on UrbanPro

This website uses cookies

We use cookies to improve user experience. Choose what cookies you allow us to use. You can read more about our Cookie Policy in our Privacy Policy

Accept All
Decline All

UrbanPro.com is India's largest network of most trusted tutors and institutes. Over 55 lakh students rely on UrbanPro.com, to fulfill their learning requirements across 1,000+ categories. Using UrbanPro.com, parents, and students can compare multiple Tutors and Institutes and choose the one that best suits their requirements. More than 7.5 lakh verified Tutors and Institutes are helping millions of students every day and growing their tutoring business on UrbanPro.com. Whether you are looking for a tutor to learn mathematics, a German language trainer to brush up your German language skills or an institute to upgrade your IT skills, we have got the best selection of Tutors and Training Institutes for you. Read more