I don't know what the hell Algorithm is..

I always here people talking about it... It sound like some REALLY complicated mathematical term.. but I dunno.

If you could be bothered give me your best definition

This is a discussion on *å|gö®îtHm* within the **C++ Programming** forums, part of the General Programming Boards category; I don't know what the hell Algorithm is..
I always here people talking about it... It sound like some REALLY ...

- 11-03-2001 #1

- Join Date
- Oct 2001
- Posts
- 6

## å|gö®îtHm

I don't know what the hell Algorithm is..

I always here people talking about it... It sound like some REALLY complicated mathematical term.. but I dunno.

If you could be bothered give me your best definition

- 11-03-2001 #2
An algorithm is any mathematical equation.

E = mc^2 is an algorithm which uses m and c to find E.

5+5 is even an algorithm, even though that is not what is usually referred to by the word algorithm.

An algorithm is just a mathematical process to find an answer.

The bubble sort is an algorithm.

Fibbonaci is an algorithm.

y = x + 2 is an algorithm.

Algorithms are all over the place.

- 11-03-2001 #3

- Join Date
- Oct 2001
- Posts
- 6

ahh thanks.. I've been doing them all along.. just didn't know the terminology i s'pose...

I feel REALLY stupid right now... :P

- 11-03-2001 #4

- Join Date
- Aug 2001
- Posts
- 1,034

An algorithm is a well defined sequence of steps in order to achieve a goal.

Giving a mathematical function

f(x) = sqrt(x)

This is not a algorithm as it suggest no way to calculate

the square root.

- 11-03-2001 #5

- Join Date
- Sep 2001
- Posts
- 4,913

## From a programming perspective

From a programming perspective, and algorithm is simply the way you deal with data to solve your problem.

- Exactly how to get started with C++ (or C) today
- C Tutorial
- C++ Tutorial
- 5 ways you can learn to program faster
- The 5 Most Common Problems New Programmers Face
- How to set up a compiler
- 8 Common programming Mistakes
- What is C++11?
- Creating a game, from start to finish

- How to create a shared library on Linux with GCC - December 30, 2011
- Enum classes and nullptr in C++11 - November 27, 2011
- Learn about The Hash Table - November 20, 2011
- Rvalue References and Move Semantics in C++11 - November 13, 2011
- C and C++ for Java Programmers - November 5, 2011
- A Gentle Introduction to C++ IO Streams - October 10, 2011