there algorithm sort 5 items in 7 comparisons: design efficient algorithm sort 5 distinct keys in fewer 8 comparisons std::sort() use algorithm if called 5 items? can algorithm extended 7 items? fastest algorithm sorting 7 integers in c/c++?
it not part of standard if std::sort should try perform few possible comparisons small sizes. different implementations may depend on library using.
Comments
Post a Comment