resize Algorithm

These measures can, in the aggregate, let the generation of commercially useful distributions of merchandise that adapt expected body sizes, as with the creation of clothing sizes and shoe sizes, and with the standardization of door frame dimensions, ceiling heights, and bed sizes. The human experience of size can lead to a psychological tendency towards size bias, wherein the relative importance or perceived complexity of organisms and other objects is judged based on their size relative to humans, and particularly whether this size makes them easy to observe without aid.

resize source code, pseudocode and analysis