Comb Sort - Shrink Factor

Shrink Factor

The shrink factor has a great effect on the efficiency of comb sort. In the original article, the author suggested . A value too small slows the algorithm down because more comparisons must be made, whereas a value too large means that no comparisons will be made. Text describes an improvement to comb sort using the base value as the shrink factor (where is the golden ratio). It also contains a pseudocode implementation with a pre-defined gap table.

Read more about this topic:  Comb Sort

Famous quotes containing the words shrink and/or factor:

    “... But if you shrink from being scared,
    What would you say to war if it should come?
    That’s what for reasons I should like to know
    If you can comfort me by any answer.”
    “Oh, but war’s not for children it’s for men.”
    Robert Frost (1874–1963)

    It is change, continuing change, inevitable change, that is the dominant factor in society today. No sensible decision can be made any longer without taking into account not only the world as it is, but the world as it will be.... This, in turn, means that our statesmen, our businessmen, our everyman must take on a science fictional way of thinking.
    Isaac Asimov (1920–1992)