Rick C
2022-11-02 03:04:09 UTC
I recall in one of the early computer science classes I took, a professor defined an algorithm in a mathematical definition. She gave a list of properties an algorithm had to have to qualify as an algorithm. She also listed some features that were not required, such as being a computer program.
I recall these features:
1) Output - without output a procedure is pointless.
2) Input - ??? I want to say input is optional. So a set of steps to calculate some number of digits of pi would qualify as an algorithm, in spite of not having inputs.
3) Steps - she used qualifiers that indicated the steps had to be clear and unambiguous.
4) Finite - the steps must come to an end, i.e. at some point the algorithm has to produce the result, it can't be infinite.
I don't recall other qualifications, but I think there is at least one I'm missing. It was not a long list, and, like I've said, I don't think Input was on the list.
The web searches seem to produce some pretty vague, garbage definitions, some even saying it is a computer program, which I'm certain it does not have to be.
Anyone familiar with this?
I recall these features:
1) Output - without output a procedure is pointless.
2) Input - ??? I want to say input is optional. So a set of steps to calculate some number of digits of pi would qualify as an algorithm, in spite of not having inputs.
3) Steps - she used qualifiers that indicated the steps had to be clear and unambiguous.
4) Finite - the steps must come to an end, i.e. at some point the algorithm has to produce the result, it can't be infinite.
I don't recall other qualifications, but I think there is at least one I'm missing. It was not a long list, and, like I've said, I don't think Input was on the list.
The web searches seem to produce some pretty vague, garbage definitions, some even saying it is a computer program, which I'm certain it does not have to be.
Anyone familiar with this?
--
Rick C.
- Get 1,000 miles of free Supercharging
- Tesla referral code - https://ts.la/richard11209
Rick C.
- Get 1,000 miles of free Supercharging
- Tesla referral code - https://ts.la/richard11209