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:
“The tender skin does not shrink from bayonets, the timid woman is not scared by fagots; the rack is not frightful, nor the rope ignominious. The poor Puritan, Antony Parsons, at the stake, tied straw on his head when the fire approached him, and said, This is Gods hat.”
—Ralph Waldo Emerson (18031882)
“Weapons are an important factor in war, but not the decisive factor; it is people, not things, that are decisive. The contest of strength is not only a contest of military and economic power, but also a contest of human power and morale. Military and economic power is necessarily wielded by people.”
—Mao Zedong (18931976)