TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

On the Worst-Case Complexity of TimSort

204 pointsby pelarioover 6 years ago

6 comments

kieckerjanover 6 years ago
I am surprised to see the author of TimSort (Tim Peters) does not have a Wikipedia entry. Seems to me he has enough claim to (wiki)fame.
评论 #17887625 未加载
0x0over 6 years ago
The linked java test file, <a href="http:&#x2F;&#x2F;igm.univ-mlv.fr&#x2F;~pivoteau&#x2F;Timsort&#x2F;Test.java" rel="nofollow">http:&#x2F;&#x2F;igm.univ-mlv.fr&#x2F;~pivoteau&#x2F;Timsort&#x2F;Test.java</a> - still crashes the latest Java 10.0.2 with an &#x27;Exception in thread &quot;main&quot; java.lang.ArrayIndexOutOfBoundsException: 49&#x27;. Amazing! I wonder if this makes some web services vulnerable.. if the user can submit a just-so array of ints to be sorted? But it does seem like it would require uploading a really huge array (&gt;4GB?)
评论 #17883998 未加载
评论 #17883786 未加载
评论 #17888611 未加载
评论 #17883860 未加载
评论 #17884809 未加载
julienfr112over 6 years ago
Amazing there is still something to find in a sort algorithm.
评论 #17884612 未加载
评论 #17885247 未加载
评论 #17887046 未加载
评论 #17888668 未加载
TeMPOraLover 6 years ago
How is it that the abstract is talking about &quot;Java version&quot; and &quot;Python version&quot; when discussing computational complexity? Aren&#x27;t algorithms algorithms, independent of the language you&#x27;re implementing them in?
评论 #17884007 未加载
评论 #17883556 未加载
评论 #17883637 未加载
评论 #17883564 未加载
评论 #17883563 未加载
grillorafaelover 6 years ago
Given that rho can vary with the input and is completely arbitrary value, shouldn’t be also called n?<p>Memories on the subject are not great so might be saying bullshit in here
评论 #17883558 未加载
评论 #17883555 未加载
评论 #17883562 未加载
willtimover 6 years ago
Not good that Java&#x27;s sort still has bugs.
评论 #17883897 未加载