SlideShare ist ein Scribd-Unternehmen logo
1 von 3
ALGORITHM VS. PSEUDO CODE
Algorithm is a set of instructions or steps applied to a problem with a view to solve it.
In simple words we can say that algorithm is method of solving a problem. Pseudo
code describes algorithm itself. Pseudo code makes no use of syntax of a specified
programming language. So, it cannot be executed in a computer. But it contains
almost the same detail as a programming language does and has the same structure.
ALGORITHM
Algorithm is group of instructions or a set of steps applied to solve a problem. An
easy example of algorithm is a recipe in a cook book. When a problem is solved with
the help of a computer, some specific instructions have to be given to it. That is why
the study of algorithm constitutes an integral part of the computer science. When
algorithm is applied in a computer, a number of elementary operations are combined
together. For example, to solve a complex mathematical problem, some simple
operations like subtractions and additions are applied.
But applying algorithm to computer code is not so simple a matter. It is very tedious
task to convert an algorithm in assembly language. However, use of high level
languages like Java or C is much easier. The analysis of resources is required before
designing an algorithm. Generally, big O notation is used for performing time and
storage analysis. An algorithm is expressed with the help of natural languages,
flowcharts, and pseudo code.
PSEUDO CODE
Pseudo code is a method of representing algorithm. It has not a specific syntax to
write a language which is used in programming language. Therefore it cannot be
executed on a computer. A number of formats are available to write pseudo codes.
They are mostly borrowed from the structures of popular languages like C, Lisp and
FORTRAN etc. When details are not important, they are expressed in natural
language. Algorithms are expressed in pseudo code as they are not understood by the
programmers who are familiar with other languages of programming. Pascal is
another language which is similar to pseudo code which makes the transformation of
pseudo code to the target program code easier. Control structures such as WHILE, IF-
THEN-ELSE, REPEAT-UTIL, FOR and CASE present in many high level languages
are allowed to include by Pseudo code
DIFFERENCE BETWEEN ALGORITHM AND PSEUDO CODE
As we have described, an algorithm is a set of instructions which provide solution to a
specific problem. A Pseudo code, on the other hand is a method used to define an
algorithm. An algorithm is written in a natural language while pseudo code can be
written in high level programming languages. But not a specified language syntax is
used in pseudo code. It, therefore, can be understood by the programmers acquainted
with different programming languages. Besides, transformation of an algorithm
written in pseudo code to programming code is easier than an algorithm written in
natural language.
PARADIGMS OF PROGRAMMING LANGUAGES
The term paradigm describes a set of techniques, methods, theories and standards that
together represent a way of thinking for problem solving. According to [Wegner,
1988], paradigms are “patterns of thought for problem solving”. Language paradigms
were associated with classes of languages. First the paradigms are defined. Thereafter,
programming languages according to the different paradigms are classified. The
language paradigms are divided into two parts: imperative and declarative paradigms
as shown in the Figure 1. Imperative languages can be further as classified into
procedural and object-oriented approach. Declarative languages can classified into
functional languages and logical languages. In Figure 1, the examples of languages in
each category are also given.

Weitere ähnliche Inhalte

Was ist angesagt?

La 5 Programming1
La 5   Programming1La 5   Programming1
La 5 Programming1
Cma Mohd
 
8 Google Translate
8 Google Translate8 Google Translate
8 Google Translate
aptwano
 

Was ist angesagt? (20)

Programming paradigms
Programming paradigmsProgramming paradigms
Programming paradigms
 
Innoveo coding dojo
Innoveo coding dojoInnoveo coding dojo
Innoveo coding dojo
 
Chapter 3 what is programming
Chapter 3   what is programmingChapter 3   what is programming
Chapter 3 what is programming
 
Est 102 ppt1
Est 102 ppt1Est 102 ppt1
Est 102 ppt1
 
Programming Paradigms
Programming ParadigmsProgramming Paradigms
Programming Paradigms
 
La 5 Programming1
La 5   Programming1La 5   Programming1
La 5 Programming1
 
Programming
ProgrammingProgramming
Programming
 
Overview of programming paradigms
Overview of programming paradigmsOverview of programming paradigms
Overview of programming paradigms
 
An Efficient Approach to Produce Source Code by Interpreting Algorithm
An Efficient Approach to Produce Source Code by Interpreting AlgorithmAn Efficient Approach to Produce Source Code by Interpreting Algorithm
An Efficient Approach to Produce Source Code by Interpreting Algorithm
 
8 Google Translate
8 Google Translate8 Google Translate
8 Google Translate
 
INTRODUCTIONS OF HTML
INTRODUCTIONS OF HTMLINTRODUCTIONS OF HTML
INTRODUCTIONS OF HTML
 
Introduction to programing languages part 1
Introduction to programing languages   part 1Introduction to programing languages   part 1
Introduction to programing languages part 1
 
Programming Paradigms
Programming ParadigmsProgramming Paradigms
Programming Paradigms
 
Introduction to programming languages part 1
Introduction to programming languages   part 1Introduction to programming languages   part 1
Introduction to programming languages part 1
 
Programming paradigm
Programming paradigmProgramming paradigm
Programming paradigm
 
Prgramming paradigms
Prgramming paradigmsPrgramming paradigms
Prgramming paradigms
 
Ppl home assignment_unit1
Ppl home assignment_unit1Ppl home assignment_unit1
Ppl home assignment_unit1
 
Dart PPT.pptx
Dart PPT.pptxDart PPT.pptx
Dart PPT.pptx
 
Programming Fundamentals lecture 2
Programming Fundamentals lecture 2Programming Fundamentals lecture 2
Programming Fundamentals lecture 2
 
Programing paradigm & implementation
Programing paradigm & implementationPrograming paradigm & implementation
Programing paradigm & implementation
 

Ähnlich wie Algorithm vs

Algorithm and pseudo codes
Algorithm and pseudo codesAlgorithm and pseudo codes
Algorithm and pseudo codes
hermiraguilar
 
La5 ict-topic-5-programming
La5 ict-topic-5-programmingLa5 ict-topic-5-programming
La5 ict-topic-5-programming
Azmiah Mahmud
 
Computer programming
Computer programmingComputer programming
Computer programming
Suneel Dogra
 
Procedural Programming Of Programming Languages
Procedural Programming Of Programming LanguagesProcedural Programming Of Programming Languages
Procedural Programming Of Programming Languages
Tammy Moncrief
 

Ähnlich wie Algorithm vs (20)

Unit 1
Unit 1Unit 1
Unit 1
 
JAVA
JAVAJAVA
JAVA
 
Chapter 5
Chapter 5Chapter 5
Chapter 5
 
Ppt about programming in methodology
Ppt about programming in methodology Ppt about programming in methodology
Ppt about programming in methodology
 
What is programming what are its benefits
What is programming  what are its benefits What is programming  what are its benefits
What is programming what are its benefits
 
Translating Flowchart algorithm to Pseudocode Format and vice versa.pptx
Translating Flowchart algorithm to Pseudocode Format and vice versa.pptxTranslating Flowchart algorithm to Pseudocode Format and vice versa.pptx
Translating Flowchart algorithm to Pseudocode Format and vice versa.pptx
 
introduction to programming
introduction to programmingintroduction to programming
introduction to programming
 
SYSTEM DEVELOPMENT
SYSTEM DEVELOPMENTSYSTEM DEVELOPMENT
SYSTEM DEVELOPMENT
 
Algorithm and pseudo codes
Algorithm and pseudo codesAlgorithm and pseudo codes
Algorithm and pseudo codes
 
Introduction to Computers Lecture # 12
Introduction to Computers Lecture # 12Introduction to Computers Lecture # 12
Introduction to Computers Lecture # 12
 
La5 ict-topic-5-programming
La5 ict-topic-5-programmingLa5 ict-topic-5-programming
La5 ict-topic-5-programming
 
Ict topic 5
Ict topic 5Ict topic 5
Ict topic 5
 
Chapter 1
Chapter 1Chapter 1
Chapter 1
 
computer languages
computer languagescomputer languages
computer languages
 
Notacd071
Notacd071Notacd071
Notacd071
 
Computer programming
Computer programmingComputer programming
Computer programming
 
Algorithm-Introduction ,Characterestics & Control Structures.pdf
Algorithm-Introduction ,Characterestics & Control Structures.pdfAlgorithm-Introduction ,Characterestics & Control Structures.pdf
Algorithm-Introduction ,Characterestics & Control Structures.pdf
 
Procedural Programming Of Programming Languages
Procedural Programming Of Programming LanguagesProcedural Programming Of Programming Languages
Procedural Programming Of Programming Languages
 
La5 programming
La5  programmingLa5  programming
La5 programming
 
Notacd07
Notacd07Notacd07
Notacd07
 

Mehr von Suneel Dogra (20)

Business model
Business modelBusiness model
Business model
 
Internet
InternetInternet
Internet
 
Html
HtmlHtml
Html
 
Dreamweaver
DreamweaverDreamweaver
Dreamweaver
 
Advanced html
Advanced htmlAdvanced html
Advanced html
 
Sql
SqlSql
Sql
 
File organisation
File organisationFile organisation
File organisation
 
Distributed databases
Distributed databasesDistributed databases
Distributed databases
 
Database models
Database models Database models
Database models
 
Data base management system
Data base management systemData base management system
Data base management system
 
Web sitedesignpart1
Web sitedesignpart1Web sitedesignpart1
Web sitedesignpart1
 
Web sitedesignpart1
Web sitedesignpart1Web sitedesignpart1
Web sitedesignpart1
 
Internet security
Internet securityInternet security
Internet security
 
What is the linux
What is the linuxWhat is the linux
What is the linux
 
He 12 different types of servers that every techie should know about
He 12 different types of servers that every techie should know aboutHe 12 different types of servers that every techie should know about
He 12 different types of servers that every techie should know about
 
Bachelor of computer application b.c.a.-2014
Bachelor of computer application b.c.a.-2014Bachelor of computer application b.c.a.-2014
Bachelor of computer application b.c.a.-2014
 
Cloud computing application
Cloud computing applicationCloud computing application
Cloud computing application
 
Fast track to linux
Fast track to linuxFast track to linux
Fast track to linux
 
A sorted linear array
A sorted linear array A sorted linear array
A sorted linear array
 
String in c
String in cString in c
String in c
 

Algorithm vs

  • 1. ALGORITHM VS. PSEUDO CODE Algorithm is a set of instructions or steps applied to a problem with a view to solve it. In simple words we can say that algorithm is method of solving a problem. Pseudo code describes algorithm itself. Pseudo code makes no use of syntax of a specified programming language. So, it cannot be executed in a computer. But it contains almost the same detail as a programming language does and has the same structure. ALGORITHM Algorithm is group of instructions or a set of steps applied to solve a problem. An easy example of algorithm is a recipe in a cook book. When a problem is solved with the help of a computer, some specific instructions have to be given to it. That is why the study of algorithm constitutes an integral part of the computer science. When algorithm is applied in a computer, a number of elementary operations are combined together. For example, to solve a complex mathematical problem, some simple operations like subtractions and additions are applied. But applying algorithm to computer code is not so simple a matter. It is very tedious task to convert an algorithm in assembly language. However, use of high level languages like Java or C is much easier. The analysis of resources is required before designing an algorithm. Generally, big O notation is used for performing time and storage analysis. An algorithm is expressed with the help of natural languages, flowcharts, and pseudo code. PSEUDO CODE Pseudo code is a method of representing algorithm. It has not a specific syntax to write a language which is used in programming language. Therefore it cannot be executed on a computer. A number of formats are available to write pseudo codes.
  • 2. They are mostly borrowed from the structures of popular languages like C, Lisp and FORTRAN etc. When details are not important, they are expressed in natural language. Algorithms are expressed in pseudo code as they are not understood by the programmers who are familiar with other languages of programming. Pascal is another language which is similar to pseudo code which makes the transformation of pseudo code to the target program code easier. Control structures such as WHILE, IF- THEN-ELSE, REPEAT-UTIL, FOR and CASE present in many high level languages are allowed to include by Pseudo code DIFFERENCE BETWEEN ALGORITHM AND PSEUDO CODE As we have described, an algorithm is a set of instructions which provide solution to a specific problem. A Pseudo code, on the other hand is a method used to define an algorithm. An algorithm is written in a natural language while pseudo code can be written in high level programming languages. But not a specified language syntax is used in pseudo code. It, therefore, can be understood by the programmers acquainted with different programming languages. Besides, transformation of an algorithm written in pseudo code to programming code is easier than an algorithm written in natural language. PARADIGMS OF PROGRAMMING LANGUAGES The term paradigm describes a set of techniques, methods, theories and standards that together represent a way of thinking for problem solving. According to [Wegner, 1988], paradigms are “patterns of thought for problem solving”. Language paradigms were associated with classes of languages. First the paradigms are defined. Thereafter, programming languages according to the different paradigms are classified. The language paradigms are divided into two parts: imperative and declarative paradigms
  • 3. as shown in the Figure 1. Imperative languages can be further as classified into procedural and object-oriented approach. Declarative languages can classified into functional languages and logical languages. In Figure 1, the examples of languages in each category are also given.