Written by students who passed Immediately available after payment Read online or as PDF Wrong document? Swap it for free 4.6 TrustPilot
logo-home
Class notes

Algorithm and Flowcharts

Rating
-
Sold
-
Pages
4
Uploaded on
31-12-2024
Written in
2024/2025

C LANGUAGE NOTES OF PUNJAB TECHNICAL UNIVERSITY ON BOOK OF LEARN PROGRAMMING WITH C WRITTEN BY ANSHUMAN SHARMA

Institution
Course

Content preview

Algorithm
An algorithm is a sequence of instructions that are carried out in a predetermined sequence in
order to solve a problem or complete a work. They form the foundation of writing a program.

For writing any programs, the following has to be known:

• Input
• Tasks to be preformed
• Output expected

Features of the algorithm
It defines several important features of the algorithm, including:

1. Inputs: Algorithms must receive inputs that can be represented as values
or data.
2. Output: The algorithm should produce some output. It can be a
consequence of a problem or a solution designed to solve it.
3. Clarity: Algorithms must be precisely defined, using unambiguous
instructions that a computer or other system can follow unambiguously.
4. Finiteness: The algorithm requires limited steps. It means that it should be
exited after executing a certain number of commands.
5. Validity: The algorithm must be valid. In other words, it should be able to
produce a solution to the problem that the algorithm is designed to solve in a
reasonable amount of time.
6. Effectiveness: An algorithm must be effective, meaning that it must be able
to produce a solution to the problem it is designed to solve in a reasonable
amount of time.

Advantages of Algorithms:
1. It is a step-wise representation of a solution to a given problem,which
makes it easy to understand.
2. An algorithm uses a definite procedure.

3. It is not dependent on any programming language, so it is easy to
understand for anyone even without programming knowledge.

4. Every step in an algorithm has its own logical sequence so it is easy to
debug.

Written for

Institution
Course

Document information

Uploaded on
December 31, 2024
Number of pages
4
Written in
2024/2025
Type
Class notes
Professor(s)
Kanika jindal
Contains
College 1st semester

Subjects

$16.79
Get access to the full document:

Wrong document? Swap it for free Within 14 days of purchase and before downloading, you can choose a different document. You can simply spend the amount again.
Written by students who passed
Immediately available after payment
Read online or as PDF

Get to know the seller
Seller avatar
Himanshugupta01

Get to know the seller

Seller avatar
Himanshugupta01 GUJRANWALA GURU NANAK INSTITUTE OF MANAGEMENT AND TECHNOLOGY
Follow You need to be logged in order to follow users or courses
Sold
-
Member since
1 year
Number of followers
0
Documents
10
Last sold
-
PTU EDUCATOR

0.0

0 reviews

5
0
4
0
3
0
2
0
1
0

Recently viewed by you

Why students choose Stuvia

Created by fellow students, verified by reviews

Quality you can trust: written by students who passed their tests and reviewed by others who've used these notes.

Didn't get what you expected? Choose another document

No worries! You can instantly pick a different document that better fits what you're looking for.

Pay as you like, start learning right away

No subscription, no commitments. Pay the way you're used to via credit card and download your PDF document instantly.

Student with book image

“Bought, downloaded, and aced it. It really can be that simple.”

Alisha Student

Working on your references?

Create accurate citations in APA, MLA and Harvard with our free citation generator.

Working on your references?

Frequently asked questions