You are on page 1of 5

D1).

Evaluate the implementation of an algorithm in a


suitable language. Evaluate the relationship between
the written algorithm and the code variant.

Relationship between the written algorithm and the code variant:


· The easiest way to tell the machine what to actually do is called algorithm. In
my opinion, it is the set of rules to solve a problem in various ways. For
example, the algorithm to add two integers is.

1. START

2. Define variable A, B

3. Give inputs A=2, B=3

4. Make the formula: SUM= A+B

5. Print the output: print (SUM)

This was just a detailed way to solve a simple problem. And this was also an
algorithm. It is no different than coding. We also apply algorithms for real world
problems but we don't notice it as our brain does it for us without letting us even
notice. For example, when you want to make coffee

6. Start

7. Boil water

8. Prepare a mug

9. Put a teaspoon of coffee and sugar

10.Pour hot water

11.Stir

12.End
Therefore, when coding you need to create a lot of algorithms it's the easiest way to
solve a problem.

Algorithm

CODE IN JAVA
IMPLEMENTATION

Difference between algorithm and code


· An algorithm is a systemic logical approach used to solve problems in a
computer while Pseudocode is a statement in plain English that may be
translated later into a programming language. Pseudocode as I understand is an
intermediary between an algorithm and implemented the program.
· An algorithm could be a series of steps for determining a tangle, fishing a task
for activity a calculation. Algorithms are units typically dead by pc programs
however the term can even apply to steps in domains admire arithmetic for
human drawback determination.

· Code could be a series of steps that might machines will execute. In several
cases, code consists in an exceedingly high level language that's then
mechanically translated into directions that machines perceive.

· Algorithm is a well-designed series of steps for solving a big problem.

· Code is instructions for machines to execute.

ALGORITHM VERSUS PSEUDOCODE

ALGORITHM PSEUDOCODE
An unambiguous specification of how An informal high-level

to solve a problem description of the operating

principle of a computer

program other Algorithm

There are four ways of implementing an algorithm in a suitable


language as follows:
13.Inaugurate the rules of the problem, get to know what the problem is and how
to solve the problem with the help of your team.

14.Write down the steps for the problem and know how they will be solved and
what tools and software will be used in solving the problem.

15.Write a test plan with your team and get to know the specific areas which has
problems and how and who will solve them

You might also like