• gramathy@lemmy.ml
    link
    fedilink
    English
    arrow-up
    4
    ·
    edit-2
    10 months ago

    Some algorithms might be able to be written as formulas but generally no. An algorithm is a repetition of steps to achieve a desired result and does not have a fixed way of representing itself because it could make different decisions along the way in different situations.

    A sorting algorithm is not a formula, for example. Formulas are mathematical or logical expressions that can be evaluated.