<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://mediawiki.zeropage.org/index.php?action=history&amp;feed=atom&amp;title=%EF%BC%BBLovely%EF%BC%BDboy%EF%BC%BE_%EF%BC%BE%2FExtremeAlgorithmStudy%2FSortingAndOrderStatistics</id>
	<title>［Lovely］boy＾ ＾/ExtremeAlgorithmStudy/SortingAndOrderStatistics - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://mediawiki.zeropage.org/index.php?action=history&amp;feed=atom&amp;title=%EF%BC%BBLovely%EF%BC%BDboy%EF%BC%BE_%EF%BC%BE%2FExtremeAlgorithmStudy%2FSortingAndOrderStatistics"/>
	<link rel="alternate" type="text/html" href="https://mediawiki.zeropage.org/index.php?title=%EF%BC%BBLovely%EF%BC%BDboy%EF%BC%BE_%EF%BC%BE/ExtremeAlgorithmStudy/SortingAndOrderStatistics&amp;action=history"/>
	<updated>2026-05-14T20:41:53Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.39.8</generator>
	<entry>
		<id>https://mediawiki.zeropage.org/index.php?title=%EF%BC%BBLovely%EF%BC%BDboy%EF%BC%BE_%EF%BC%BE/ExtremeAlgorithmStudy/SortingAndOrderStatistics&amp;diff=85213&amp;oldid=prev</id>
		<title>Maintenance script: Repair batch-0004 pages from live compare</title>
		<link rel="alternate" type="text/html" href="https://mediawiki.zeropage.org/index.php?title=%EF%BC%BBLovely%EF%BC%BDboy%EF%BC%BE_%EF%BC%BE/ExtremeAlgorithmStudy/SortingAndOrderStatistics&amp;diff=85213&amp;oldid=prev"/>
		<updated>2026-03-27T00:37:13Z</updated>

		<summary type="html">&lt;p&gt;Repair batch-0004 pages from live compare&lt;/p&gt;
&lt;table style=&quot;background-color: #fff; color: #202122;&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;en&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;Revision as of 00:37, 27 March 2026&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l8&quot;&gt;Line 8:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 8:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;* 수행 시간 : O(nlgn)  &lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;* 수행 시간 : O(nlgn)  &lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;* 사용하는 자료구조 : Heap - 자료구조 시간엔 Complete Binary Tree로 구현방법을 배웠었다.&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;* 사용하는 자료구조 : Heap - 자료구조 시간엔 Complete Binary Tree로 구현방법을 배웠었다.&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;* heap이 무엇인가 하면? A[&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;Parent[[i&lt;/del&gt;)&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;]] &lt;/del&gt;&amp;gt;= A&amp;amp;#91;i&amp;amp;#93; (결국 부모는 무조건 자식보다 커야한단 말입니다.)&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;* heap이 무엇인가 하면? A[&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;Parenti&lt;/ins&gt;) &amp;gt;= A&amp;amp;#91;i&amp;amp;#93; (결국 부모는 무조건 자식보다 커야한단 말입니다.)&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;** Parent(i) : floors( (i-1) / 2 ) (책에는 맨 처음 index가 1이지만.. 우린 0에 익숙하므로..)&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;** Parent(i) : floors( (i-1) / 2 ) (책에는 맨 처음 index가 1이지만.. 우린 0에 익숙하므로..)&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;** Left(i) : 2i + 1&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;** Left(i) : 2i + 1&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l60&quot;&gt;Line 60:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 60:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br/&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br/&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;----&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;----&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;[&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;&amp;quot;&lt;/del&gt;[&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;[Lovely]]boy^_^&lt;/del&gt;/ExtremeAlgorithmStudy&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;&amp;quot;&lt;/del&gt;]&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;[[&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;［Lovely］boy＾_＾&lt;/ins&gt;/ExtremeAlgorithmStudy]&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;]&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt; &lt;/div&gt;&lt;/td&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-added&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>Maintenance script</name></author>
	</entry>
	<entry>
		<id>https://mediawiki.zeropage.org/index.php?title=%EF%BC%BBLovely%EF%BC%BDboy%EF%BC%BE_%EF%BC%BE/ExtremeAlgorithmStudy/SortingAndOrderStatistics&amp;diff=41472&amp;oldid=prev</id>
		<title>imported&gt;Unknown at 05:28, 7 February 2021</title>
		<link rel="alternate" type="text/html" href="https://mediawiki.zeropage.org/index.php?title=%EF%BC%BBLovely%EF%BC%BDboy%EF%BC%BE_%EF%BC%BE/ExtremeAlgorithmStudy/SortingAndOrderStatistics&amp;diff=41472&amp;oldid=prev"/>
		<updated>2021-02-07T05:28:37Z</updated>

		<summary type="html">&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;__TOC__&lt;br /&gt;
&lt;br /&gt;
= Sorting Algorithms =&lt;br /&gt;
* Bubble Sort나 Shell Sort(? 맞나--; 이름이 생각이 안나네) 같이 좀 수행성능이 떨어지는건 아예 안다루나 봅니다.&lt;br /&gt;
&lt;br /&gt;
== Heapsort ==&lt;br /&gt;
=== Foundation of Heapsort ===&lt;br /&gt;
* 수행 시간 : O(nlgn) &lt;br /&gt;
* 사용하는 자료구조 : Heap - 자료구조 시간엔 Complete Binary Tree로 구현방법을 배웠었다.&lt;br /&gt;
* heap이 무엇인가 하면? A[Parent[[i)]] &amp;gt;= A&amp;amp;#91;i&amp;amp;#93; (결국 부모는 무조건 자식보다 커야한단 말입니다.)&lt;br /&gt;
** Parent(i) : floors( (i-1) / 2 ) (책에는 맨 처음 index가 1이지만.. 우린 0에 익숙하므로..)&lt;br /&gt;
** Left(i) : 2i + 1&lt;br /&gt;
** Right(i) : 2i + 2 - 뭐 이것들은 Binary Tree의 기초니..--;&lt;br /&gt;
** height : 세타(lgn)&lt;br /&gt;
&lt;br /&gt;
=== Maintaining the heap property ===&lt;br /&gt;
* 제기랄. 모든 소스가 재귀다..--; 이해가 안간다 ㅠ.ㅠ&lt;br /&gt;
&lt;br /&gt;
=== Building a Heap ===&lt;br /&gt;
&lt;br /&gt;
=== The heapsort algorithm ===&lt;br /&gt;
&lt;br /&gt;
=== Priority Queue ===&lt;br /&gt;
* QuickSort에 자주 까이면서도(책에는 beat라는 표현을..) 존재하는 이유 중의 하나가 우선순위큐를 구현할때라는데..--a라고 써있네요..--;&lt;br /&gt;
* 주요 기능&lt;br /&gt;
** Insert&lt;br /&gt;
** Maximum&lt;br /&gt;
** Extract_Maximum&lt;br /&gt;
 &lt;br /&gt;
== Quicksort ==&lt;br /&gt;
* 평균 수행 시간 : 세타(nlgn)&lt;br /&gt;
* 최악의 시간 : 세타(n*n)&lt;br /&gt;
* 근데 Heapsort보다 좋다고 한다. 왜인지는 아직 안 나왔군.&lt;br /&gt;
* STL의 소트 알고리즘이 이걸 약간 변형시킨 거라고 하네요.&lt;br /&gt;
* 여기서 잠깐, Comparison Sort(이건 또 뭐지?--;)는 아무리 빠르게 해봤자 세타(nlgn)보다는 빠르게 못한답니다.&lt;br /&gt;
&lt;br /&gt;
=== Description ===&lt;br /&gt;
* Divide and Conquer paradigm 을 쓴답니다.(보나마나 재귀군..--;)&lt;br /&gt;
* 주요 프로시저&lt;br /&gt;
** Divide (현재 배열을 둘로 나눈 다음 샤바샤바.--; 앞 배열의 원소들은 뒤 배열의 원소보다 작게..)&lt;br /&gt;
** Conquer : 각각 소트 한다음&lt;br /&gt;
** Combine : 합친다.&lt;br /&gt;
&lt;br /&gt;
* 모든 재귀 함수는 반복 함수로 만들수 있다는데..(증명도 됐다) .. 왜 이렇게 어려운 거샤 ㅠ.ㅠ&lt;br /&gt;
&lt;br /&gt;
=== Performance of Quicksort ===&lt;br /&gt;
* ...&lt;br /&gt;
* 생전 듣도 보도 못한 풀이로 증명을 하고 있다. --;&lt;br /&gt;
&lt;br /&gt;
== Sorting in linear time ==&lt;br /&gt;
* 그래서 여기서 선형 시간 내에 정렬하는 방법이 나올...거 같네요.(이상하네)&lt;br /&gt;
* 뭔가 다른 방법을 쓰나 봅니다. 정리해 나가면서 고쳐야겠죠.&lt;br /&gt;
&lt;br /&gt;
=== Radix Sort (요건가 봅니다) ===&lt;br /&gt;
&lt;br /&gt;
=== Bucket Sort (요것도?) ===&lt;br /&gt;
&lt;br /&gt;
== Medians and Order Statistics ==&lt;br /&gt;
* 뭐 몇번째로 작은 뭐, 몇번&amp;amp;#51760;로 큰 뭐 이런걸 선형시간(평균, 최악의 경우에는 세타(n*N))내에 찾을수 있는 방법이 있다네요.&lt;br /&gt;
&lt;br /&gt;
----&lt;br /&gt;
[&amp;quot;[[Lovely]]boy^_^/ExtremeAlgorithmStudy&amp;quot;]&lt;br /&gt;
&lt;/div&gt;</summary>
		<author><name>imported&gt;Unknown</name></author>
	</entry>
</feed>