473,395 Members | 1,977 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,395 software developers and data experts.

how to write algorithm?

10
Can someone tell me how to write an algorithm?
How algorithm look like?
Sep 11 '07 #1
7 29521
sicarie
4,677 Expert Mod 4TB
Can someone tell me how to write an algorithm?
How algorithm look like?
The process of writing an algorithm is just taking your problem, and breaking it down, abstracting it to be able to be solved without a computer. Then you can translate those steps into code.

Do you have a specific issue in mind? We'd be more than happy to help you break it down.
Sep 11 '07 #2
isaac86
10
can u post me some example???
so i can try to do on myself.
Sep 11 '07 #3
sicarie
4,677 Expert Mod 4TB
can u post me some example???
so i can try to do on myself.
Quickly, the best reference I can point you to would be Banfa's Tutorial over in the C/C++ Articles Section.

Other than that, I'd recommend looking at the threads with the high reply count - they usually have some sort of "inner-workings" problem that requires an examination of the algorithm.
Sep 11 '07 #4
JosAH
11,448 Expert 8TB
can u post me some example???
so i can try to do on myself.
Have a look at a recipe for baking a cake; it's a set of instructions that you should
follow/perform in order to obtain a cake without buying one. Algorithms are
similar sets of instructions for computers (they can't bake cakes though).

kind regards,

Jos
Sep 11 '07 #5
isaac86
10
tq guy for urs information.
Sep 11 '07 #6
JosAH
11,448 Expert 8TB
tq guy for urs information.
You're extremely new to programming aren't you? How do you want to go on from here?
Are you going to study the C/C++ programming language or what? Maybe Java
would be a better language to start with (it's much simpler and a bit cleaner than
C or C++).

kind regards,

Jos
Sep 11 '07 #7
weaknessforcats
9,208 Expert Mod 8TB
Writing an algorithm is documenting the steps to follow without concern for the kind of data or the programming language.

Example: Find the length of a string
Algorithm: Beginning with the first element of the string, increment a total count until you have counted the last element of the string.
Sep 11 '07 #8

Sign in to post your reply or Sign up for a free account.

Similar topics

17
by: savesdeday | last post by:
In my beginnning computer science class we were asked to translate a simple interest problem. We are expected to write an algorithm that gets values for the starting account balance B, annual...
113
by: Bonj | last post by:
I was in need of an encryption algorithm to the following requirements: 1) Must be capable of encrypting strings to a byte array, and decyrpting back again to the same string 2) Must have the same...
4
by: FBM | last post by:
Hi, I am working on a program that simulates one of the elements of ATM. The simulation stores events which occurs every some milliseconds for a certain amount of time. Every time that an event...
74
by: lovecreatesbeauty | last post by:
My small function works, but I have some questions. And I want to listen to you on How it is implemented? 1. The function does not check if parameter x is larger or smaller than parameter y. ...
6
by: StephQ | last post by:
I need to implement an algorithm that takes as input a container and write some output in another container. The containers involved are usually vectors, but I would like not to rule out the...
1
by: sivaprasadreddy | last post by:
hi, how to write algorithm in python program?
6
by: kamsmartx | last post by:
I'm new to programming and need some help figuring out an algorithm. I need to design some kind of algorithm which will help us define capacity for one of our portfolios....here's the problem...
6
by: Dinesh Kumar bca | last post by:
Hai...I am a very basic student for C...So many apologies for asking this basic question. My question is, How to write algorithm for the program to given n number is prime number? Please help.......
9
Rabbit
by: Rabbit | last post by:
Introduction The Advanced Encryption Standard is the algorithm that won the National Insitute of Standards and Technology's (NIST) search for a standardized encryption algorithm in 2001. In 2002, it...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.