Math and Arithmetic
How can we write algorithms?
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.
Asked in Math and Arithmetic, C Programming, Numbers
Write algorithms and draw a corresponding flow chart to convert a decimal number to binary equiavalent?
Asked in Business & Finance, Software Engineering
What algorithms are there for adding and subtracting integers?
Asked in Math and Arithmetic, Algebra, Geometry
How do you write algorithms for area of right angled triangle in c?
Asked in C Programming
Why do programmers write algorithms before writing programs?
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.