Math and Arithmetic

# How can we write algorithms?

Top Answer

###### Wiki User

###### June 10, 2015 6:03PM

There is no systematic way to create algorithms; you basically have to think about the problem, and consider how you would go about to solve it.

## Related Questions

###### Asked in Internet, Computer Programming, C Programming

### How do you write an algorithm for a C program?

An algorithm is simply a description of the logical step-by-step
procedure required to solve a particular problem. You do not write
algorithms in C (or indeed in any programming language) you write
them in your native language (such as English). Algorithms that
employ loops or conditional expressions are typically presented
using a flowchart to better visualise the implementation of complex
algorithms, however all complex problems can be broken down into a
sequence of much simpler problems each of which has its own
algorithm. When presenting algorithms to programmers from various
backgrounds, pseudo-code is used to provide a language-agnostic
version of the implementation that can easily be translated into
any language but, ultimately, it is the programmer's responsibility
to translate algorithms into functional code. But first you have to
write the algorithm. Ignore the language and concentrate on the
problem itself. Describe how the problem should be solved, then
write the code to implement your solution.