• @Mamertine
      link
      English
      211 months ago

      Is an algorithm not a formula?

      • @[email protected]
        link
        fedilink
        English
        4
        edit-2
        11 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.