Welcome, Guest: Register On Nairaland / LOGIN! / Trending / Recent / New
Stats: 3,148,883 members, 7,802,853 topics. Date: Friday, 19 April 2024 at 11:17 PM

Pls Programmers Help With Similarities Of Pseudocode & Algorithm - Programming - Nairaland

Nairaland Forum / Science/Technology / Programming / Pls Programmers Help With Similarities Of Pseudocode & Algorithm (2754 Views)

Please Web Programmers Help Me On This / Programmers Help! CERBER3 Virus! / Network Programmers Help Is Highly Needed (2) (3) (4)

(1) (Reply) (Go Down)

Pls Programmers Help With Similarities Of Pseudocode & Algorithm by nairaminds(m): 10:36am On Mar 07, 2016
pls guys n girls wat are the similarities we have on algorithm and pseudocode. Pls n pls i need y'alls help thanks.....
Re: Pls Programmers Help With Similarities Of Pseudocode & Algorithm by eDoc: 11:31am On Mar 07, 2016
bros,how are you today?

Hope fine!

the question you ask can be gotten from a simple google or wikipedia search.

the thing about programming and programmers is that,they try to be detailed in their dealings,coding and art of code,hence they usually are deligent in knowing the why,how,when,where's of programming.

Turning to your shampoo for the hair you would hear,Lather, rinse, repeat (sometimes wash, rinse, repeat),that is like an algorithm,short for algo,it's a step by step process of arriving at the solution to your problem.

find the average of these numbers? 5,5,5,15
step 1. sum or add the numbers to get your sum
5+5+5+15 =30

step 2. Divide the total by the amount of given numbers.

Total = Sum/4
Total = 30/4
Total = 7.5

for Pseudocode the name pseudo means (like).Wikipedia states pseudo as behave like or appear like the real thing,therefore pseudocode would be a code that behaves like or appears like the real code.

from the above average example the pseudocode could be:
exactly what was stated before arriving at your calculation and answer.


the real code,let's say like in python
sum = 5+5+5+15
average = sum / 4
print('The average is ',average)
The average is 30.

i had to quickly put you through,any mistake is mine,have a nice day.
Re: Pls Programmers Help With Similarities Of Pseudocode & Algorithm by foldl: 2:55pm On Mar 09, 2016
The question is not a very clear one. Your question is akin to asking for the similarities between a dog and an Alsatian. A dog is a category of animals while an Alsatian is a kind of dog, but we also have Rottweilers, spaniels etc.

An algorithm is a finite set of instructions that, if followed, accomplishes a particular task (Ellis Horowitz et al, 2014). Algorithms being a set of instructions must necessarily be conveyed (or represented) in a way that is clearly understandable. One of the ways in which algorithms are expressed is by use of pseudocode. Algorithms can also be expressed using flowcharts, Gantt charts etc. So there is no similarity per se in algorithms and pseudocode. The relationship between the two is that one is a representation of the other.
Re: Pls Programmers Help With Similarities Of Pseudocode & Algorithm by Yinkash100(m): 10:24am On Mar 10, 2016
Algorithm is the step by step process for acomplishing the task pseudo code is gotten from d algorithm but there are slight difference.
Algorithm is written in any understandable language and it can be as detailed as you want it to be but pseudo code is written to resemble programming languages and must carry all d details you should write in ur program.
.
Example,
you want to build a garden.
D Algorithm:
clear the land, buy flowers, transplant d flowers and look after it.
D pseudo code:
if land is clear, continue, else, clear d land first. Then buy flowers, when flower is mature for transplanting, transplant. Or wait for it to mature. Look after transplanted flowers, if it has disease, uproot it. If it lack water, wet.

.
.
Notice the difference btw those two examples. D algorithm can also be as detailed as u want it to be. When programming the better your algorithm, the easier it will be to convert it to pseudo (false) code. Or to any programming language

(1) (Reply)

Help:finger Print Implementation Issues / Can A Non-IT Student Become A Programmer Or Webmaster? / Running A Sports Betting Website

(Go Up)

Sections: politics (1) business autos (1) jobs (1) career education (1) romance computers phones travel sports fashion health
religion celebs tv-movies music-radio literature webmasters programming techmarket

Links: (1) (2) (3) (4) (5) (6) (7) (8) (9) (10)

Nairaland - Copyright © 2005 - 2024 Oluwaseun Osewa. All rights reserved. See How To Advertise. 14
Disclaimer: Every Nairaland member is solely responsible for anything that he/she posts or uploads on Nairaland.