cplusplus
.com
TUTORIALS
REFERENCE
ARTICLES
FORUM
C++
Tutorials
Reference
Articles
Forum
Forum
Beginners
Windows Programming
UNIX/Linux Programming
General C++ Programming
Lounge
Jobs
Forum
General C++ Programming
How to write Algorithm/Design
How to write Algorithm/Design
Nov 16, 2013 at 8:09am UTC
chuahyucheng
(25)
Please guide me :)
Nov 16, 2013 at 12:11pm UTC
LB
(13399)
This is like asking "How do I cook a meal?"
What meal do you want to cook? What algorithm do you want to write or what design to you want to make? You need to be specific.
Nov 17, 2013 at 1:33pm UTC
chuahyucheng
(25)
What I meant is what do I have to include inside the algorithm/design.
Nov 17, 2013 at 2:30pm UTC
AbstractionAnon
(6954)
To extend L B's analogy, an algorithim is simply a receipe.
Put simply, what are the steps you need to follow to produce the desired result.
What are the inputs (ingredients)?
What are the steps?
What is the output?
Nov 17, 2013 at 4:00pm UTC
chuahyucheng
(25)
Do you have any examples?
Is it pseudocode?
Nov 17, 2013 at 4:05pm UTC
closed account (
N36fSL3A
)
No. It's just a way to do something. Kinda like a formula in math.
Nov 17, 2013 at 4:36pm UTC
closed account (
9wqjE3v7
)
Is it pseudocode?
It is common for algorithms to be expressed in pseudo-code, since most algorithms are language-independent.
Nov 17, 2013 at 4:41pm UTC
chuahyucheng
(25)
Oh. Okay. Thanks a lot :)
Topic archived. No new replies allowed.