Shellsort

Shell是人名,不是bash这种shell。

事先确定一个单调递减且以1为终点的步长序列,以每个步长做一次插入排序。

计算量小于n^2,大概为n^{4/3}n^{6/5},与步长序列有关。

至今仍不知道最优步长选择是什么样的。

Advertisements

发表评论

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / 更改 )

Twitter picture

You are commenting using your Twitter account. Log Out / 更改 )

Facebook photo

You are commenting using your Facebook account. Log Out / 更改 )

Google+ photo

You are commenting using your Google+ account. Log Out / 更改 )

Connecting to %s


%d 博主赞过: