|gtHm

This is a discussion on |gtHm 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 ...

  1. #1
    Registered User
    Join Date
    Oct 2001
    Posts
    6

    Question |gtHm

    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

  2. #2
    l'Anziano DavidP's Avatar
    Join Date
    Aug 2001
    Location
    Plano, Texas, United States
    Posts
    2,738
    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.
    My Website

    "Circular logic is good because it is."

  3. #3
    Registered User
    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

  4. #4
    Blank
    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.

  5. #5
    Super Moderator
    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.

Popular pages Recent additions subscribe to a feed

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21