<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="zh">
	<id>https://arolstar52-zhtest.hf.space/index.php?action=history&amp;feed=atom&amp;title=Timsort</id>
	<title>Timsort - 版本历史</title>
	<link rel="self" type="application/atom+xml" href="https://arolstar52-zhtest.hf.space/index.php?action=history&amp;feed=atom&amp;title=Timsort"/>
	<link rel="alternate" type="text/html" href="https://arolstar52-zhtest.hf.space/index.php?title=Timsort&amp;action=history"/>
	<updated>2026-07-17T01:04:46Z</updated>
	<subtitle>在这个wiki上该页的修订历史</subtitle>
	<generator>MediaWiki 1.43.9</generator>
	<entry>
		<id>https://arolstar52-zhtest.hf.space/index.php?title=Timsort&amp;diff=3289676&amp;oldid=prev</id>
		<title>imported&gt;InternetArchiveBot：​补救7个来源，并将0个来源标记为失效。) #IABot (v2.0.7</title>
		<link rel="alternate" type="text/html" href="https://arolstar52-zhtest.hf.space/index.php?title=Timsort&amp;diff=3289676&amp;oldid=prev"/>
		<updated>2020-12-10T09:56:38Z</updated>

		<summary type="html">&lt;p&gt;补救7个来源，并将0个来源标记为失效。) #IABot (v2.0.7&lt;/p&gt;
&lt;p&gt;&lt;b&gt;新页面&lt;/b&gt;&lt;/p&gt;&lt;div&gt;{{算法信息框|class=[[排序算法]]|image=|caption=A visual representation of Timsort|data=[[数组]]|time=&amp;lt;math&amp;gt;O(n\log n)&amp;lt;/math&amp;gt;&amp;lt;ref&amp;gt;{{cite web |title=[Python-Dev] Sorting |url=http://mail.python.org/pipermail/python-dev/2002-July/026837.html |last=Peters |first=Tim |work=Python Developers Mailinglist |accessdate=24 February 2011 |quote=[Timsort] also has good aspects: It&amp;#039;s stable (items that compare equal retain their relative order, so, e.g., if you sort first on zip code, and a second time on name, people with the same name still appear in order of increasing zip code; this is important in apps that, e.g., refine the results of queries based on user input). ... It has no bad cases (O(N log N) is worst case; N−1 compares is best). |archive-date=2018-07-17 |archive-url=https://web.archive.org/web/20180717055327/https://mail.python.org/pipermail/python-dev/2002-July/026837.html |dead-url=no }}&amp;lt;/ref&amp;gt;&amp;lt;ref&amp;gt;{{cite web|title=[DROPS]|url=http://drops.dagstuhl.de/opus/volltexte/2018/9467/|accessdate=1 September 2018|quote=TimSort is an intriguing sorting algorithm designed in 2002 for Python, whose worst-case complexity was announced, but not proved until our recent preprint.|archive-date=2019-09-19|archive-url=https://web.archive.org/web/20190919191540/http://drops.dagstuhl.de/opus/volltexte/2018/9467/|dead-url=no}}&amp;lt;/ref&amp;gt;|best-time=&amp;lt;math&amp;gt;O(n)&amp;lt;/math&amp;gt;&amp;lt;ref name=&amp;quot;Chandramouli&amp;quot;&amp;gt;{{Cite conference |last1=Chandramouli |first1=Badrish |last2=Goldstein |first2=Jonathan |title=Patience is a Virtue: Revisiting Merge and Sort on Modern Processors |conference=SIGMOD/PODS |year=2014}}&amp;lt;/ref&amp;gt;|average-time=&amp;lt;math&amp;gt;O(n\log n)&amp;lt;/math&amp;gt;|space=&amp;lt;math&amp;gt;O(n)&amp;lt;/math&amp;gt;}}&amp;#039;&amp;#039;&amp;#039;Timsort&amp;#039;&amp;#039;&amp;#039; 是一种混合稳定的[[排序算法]]，源自[[归并排序|合并排序]]和[[插入排序]]，旨在较好地处理真实世界中各种各样的数据。它使用了 [[彼得*麦克罗伊|Peter Mcllroy]] 的&amp;quot;乐观排序和信息理论上复杂性&amp;quot;中的技术，参见 &amp;#039;&amp;#039;第四届年度ACM-SIAM离散算法研讨会论文集&amp;#039;&amp;#039;，第467-474页，1993年。 它由 Tim Peters 在2002年实现，并应用于 [[Python|Python编程语言]]。该算法通过查找已经排好序的数据子序列，在此基础上对剩余部分更有效地排序。 该算法通过不断地将特定子序列（称为一个 run ）与现有的 run 合并，直到满足某些条件为止来达成的更有效的排序。 从 2.3 版本起，Timsort 一直是 Python 的标准排序算法。 它还被 [[Java版本歷史|Java SE7]]&amp;lt;ref&amp;gt;{{Cite web|title=[#JDK-6804124] (coll) Replace &amp;amp;quot;modified mergesort&amp;amp;quot; in java.util.Arrays.sort with timsort|url=https://bugs.openjdk.java.net/browse/JDK-6804124|accessdate=11 June 2014|work=JDK Bug System|archive-date=2020-01-11|archive-url=https://web.archive.org/web/20200111192314/https://bugs.openjdk.java.net/browse/JDK-6804124|dead-url=no}}&amp;lt;/ref&amp;gt;, [[Android|Android platform]]&amp;lt;ref&amp;gt;{{cite web|title=Class: java.util.TimSort&amp;lt;T&amp;gt;|url=https://android.googlesource.com/platform/libcore/+/gingerbread/luni/src/main/java/java/util/TimSort.java|accessdate=24 February 2011|work=Android Gingerbread Documentation|dead-url=yes|archive-url=https://web.archive.org/web/20150716000631/https://android.googlesource.com/platform/libcore/+/gingerbread/luni/src/main/java/java/util/TimSort.java|archive-date=2015-07-16}}&amp;lt;/ref&amp;gt;, [[GNU Octave]],&amp;lt;ref&amp;gt;{{Cite web|title=liboctave/util/oct-sort.cc|url=http://hg.savannah.gnu.org/hgweb/octave/file/0486a29d780f/liboctave/util/oct-sort.cc|accessdate=18 February 2013|work=Mercurial repository of Octave source code|quote=Code stolen in large part from Python&amp;#039;s, listobject.c, which itself had no license header. However, thanks to Tim Peters for the parts of the code I ripped-off.|archive-date=2019-02-06|archive-url=https://web.archive.org/web/20190206060506/http://hg.savannah.gnu.org/hgweb/octave/file/0486a29d780f/liboctave/util/oct-sort.cc|dead-url=no}}&amp;lt;/ref&amp;gt; [[Google Chrome|谷歌浏览器]],&amp;lt;ref&amp;gt;{{Cite web|title=Getting things sorted in V8 · V8|url=https://v8.dev/blog/array-sort|accessdate=2018-12-21|work=v8.dev|archive-date=2018-12-21|archive-url=https://web.archive.org/web/20181221090529/https://v8.dev/blog/array-sort|dead-url=no}}&amp;lt;/ref&amp;gt; 和 [[Swift (程式語言)|Swift]]&amp;lt;ref&amp;gt;{{Cite web|title=Is sort() stable in Swift 5?|url=https://forums.swift.org/t/is-sort-stable-in-swift-5/21297/9|accessdate=2019-07-04|date=2019-07-04|work=Swift Forums|language=en-US|archive-date=2019-07-04|archive-url=https://web.archive.org/web/20190704174800/https://forums.swift.org/t/is-sort-stable-in-swift-5/21297/9|dead-url=no}}&amp;lt;/ref&amp;gt; 用于对非原始类型的数组排序。&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==参考文献==&lt;br /&gt;
{{reflist}}&lt;br /&gt;
&lt;br /&gt;
==外部链接==&lt;br /&gt;
{{排序算法表}}&lt;br /&gt;
&lt;br /&gt;
[[Category:排序算法]]&lt;br /&gt;
[[Category:稳定排序]]&lt;br /&gt;
[[Category:比较排序]]&lt;/div&gt;</summary>
		<author><name>imported&gt;InternetArchiveBot</name></author>
	</entry>
</feed>