S
Stefan Ram
An algorithm can be either hidden or exposed.
A hidden algorithm is part of every function, for example,
»::std::fopen« internally uses some kind of algorithm to
open a file.
So, one might think that the difference of the entries in
<algorithm> was that these were exposed algorithms. But no,
AFAIK the specific algorithm used is not exposed, for
example, we do not know AFAIK the specific sort algorithm
(is it quicksort, mergesort, heapsort, bubble sort, or
what?) used in »::std::sort« (we only know something about
its complexity).
So, then, why is »::std::sort« called an »algorithm« and
»::std::fopen« is not?
A hidden algorithm is part of every function, for example,
»::std::fopen« internally uses some kind of algorithm to
open a file.
So, one might think that the difference of the entries in
<algorithm> was that these were exposed algorithms. But no,
AFAIK the specific algorithm used is not exposed, for
example, we do not know AFAIK the specific sort algorithm
(is it quicksort, mergesort, heapsort, bubble sort, or
what?) used in »::std::sort« (we only know something about
its complexity).
So, then, why is »::std::sort« called an »algorithm« and
»::std::fopen« is not?