0% found this document useful (0 votes)
27 views2 pages

CSE3

Pseudocode is a simplified representation of an algorithm that can be understood by individuals regardless of their programming background. It aids in program logic planning by allowing clear and structured steps to be outlined for problem-solving, while flowcharts provide a graphical representation suitable for communication with non-technical stakeholders. Both tools serve distinct purposes in pre-code planning, with pseudocode being more effective for individual programmers and simpler problems.

Uploaded by

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

CSE3

Pseudocode is a simplified representation of an algorithm that can be understood by individuals regardless of their programming background. It aids in program logic planning by allowing clear and structured steps to be outlined for problem-solving, while flowcharts provide a graphical representation suitable for communication with non-technical stakeholders. Both tools serve distinct purposes in pre-code planning, with pseudocode being more effective for individual programmers and simpler problems.

Uploaded by

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

CSE-113 Pseudocode-L3

Introduction of Pseudocode
Pseudo-code is a term that is often used in programming and algorithm-based fields. It is a
methodology that allows the programmer to represent the implementation of an algorithm.
Simply, we can say that it’s an algorithm’s cooked-up representation. Often at times,
algorithms are represented with the help of pseudo codes as they can be interpreted by
programmers no matter what their programming background or knowledge is Pseudo code,
as the name suggests, is a false code or a representation of code that can be understood by
even a layman with some school level programming knowledge.

What is Pseudocode?
❖ A computer program is the representation of an algorithm (an unambiguous set of steps,
in a particular order, which when followed will solve the problem)
❖ Pseudocode is the representation of these steps in structured English
❖ Steps must be clear (i.e. unambiguous)
❖ Order must be specified
❖ When the steps (i.e., instructions) are followed, they must solve the specified problem

Why Develop Logic Using Pseudocode?


➢ The alternative just enters a C code.
➢ logic is not clear
➢ computer language (e.g.,C,C++ Java) is too detailed and lengthy
➢ focus moves to the language syntax
➢ It is not conducive to successive refinement
➢ Flowcharts and other design tools are suitable alternatives to pseudocode.

Program (Logic) Planning


✓ Look at the output (desired product)
✓ Determine what inputs are necessary to allow the creation of desired output
✓ Design the logic (steps) to collect the input and build the desired output
✓ Often this leads to a general program logic flow of input processing output

Advantages Derived from using Pseudocode


➢ A good tool for program logic planning
➢ Can use to review system logic with the user
➢ Can document logic for system maintenance
When should you use a flowchart and when should
you use pseudocode?

Flowcharts and pseudo code are both used before writing code, but pseudocode is linear while
a flow chart isn’t. Also, a flowchart is graphical, while a pseudocode is technical.

With that in mind, a flow diagram is suitable for communicating between non-technical people
and programmers. Also, due to its abstraction level, a flowchart is useful for complicated
problems as it helps you lay out the entire process. It should be created before the pseudocode.

At the same time, pseudocode is more suitable when a programmer works on a project alone
and the problem is simple enough. Pseudocode is also convenient because the way it’s written
is quite close to the actual code, making coding faster and easier.

Conclusion

In summary, a flowchart visualizes an algorithm for a non-technical view while pseudocode


outlines the algorithm’s key principles in a linear presentation. Depending on each case, one
can either use one of these tools or both of them in pre-code planning.

Pseudocode flowchart helps people involved in a project understand, explain, and


communicate what they have in mind for the algorithm. Proper use of these tools will ensure
ideas are translated into cipher correctly and reduce potential flaws.

You might also like