<?xml version="1.0" encoding="UTF-8"?>
<?xml-stylesheet href="http://valley.egloos.com/rss/style/style.xsl" type="text/xsl" media="screen"?>
<rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/">
	<channel>
		<title>이글루스 'sort' 태그 최근글</title>
		<link>http://valley.egloos.com/tag/sort</link>
		<description>sort</description>
		<language>ko</language>
		<pubDate>Fri, 27 Apr 2012 00:01:40 +0900</pubDate>
		<generator>Egloos</generator>
		<item>
	<title><![CDATA[Python Links]]></title>
	<link>http://mnlg.egloos.com/3834037</link>
	<guid>http://mnlg.egloos.com/3834037</guid>
	<description>
	<![CDATA[ 
Google Python Style Guide:http://google-styleguide.googlecode.com/svn/trunk/pyguide.html  Python Sorting Mini-HOW TO:http://wiki.python.org/moin/HowTo/Sorting  Python Unit Testing Framework(한글번역):http://coreapython.hosting.paran.com/etc/Python%20Unit%20Testing%20Framework.htm  Python Test Spy Framework:http://code.google.com/p/mockito-python/  The Little Book of Semaphores:http://www.greenteapress	]]>
	</description>
	<pubDate>Fri, 27 Apr 2012 00:01:40 +0900</pubDate>
	<dc:creator><![CDATA[Monologue]]></dc:creator>
</item>
<item>
	<title><![CDATA[[Shell] 탭으로 구분된 파일 정렬(sort)]]></title>
	<link>http://entireboy.egloos.com/4672943</link>
	<guid>http://entireboy.egloos.com/4672943</guid>
	<description>
	<![CDATA[ 
Linux에서 sort 명령을 사용하면 -t 옵션으로 구분자를 지정해 줄 수 있다. 헌데 이 -t 옵션으로 여러 문자를 넣으면 아래와 같은 오류를 내보이며 동작하지 않는다.    $ sort -r -k2 -n -t'\t'  sort: multi-character tab `\\t'      내 파일은 탭으로 구분되어 있어서 \t를 사용해야 하는데.. 왜 이걸 2개의 문자로 인식하는건지 TㅅT    정맛 멋진 해답은 아주 간단했다. 포스트 내용 보다 아래에 있는 댓글이 훨씬 간단하다. 멋져부러잉~!!    $ sort -r -k2 -n -t$'\t'        위에 쓴 예제는 -k 옵션으로 탭으로 구분된(-t) 내용 중 2번째 field로 정렬을 한다는 내용이고, -r은 역순, -n은 정렬할 내용이 숫자라고 	]]>
	</description>
	<pubDate>Mon, 06 Feb 2012 18:24:09 +0900</pubDate>
	<dc:creator><![CDATA[Sigel's house made of ice 。。。]]></dc:creator>
</item>
<item>
	<title><![CDATA[배열을 이용한 삽입, 삭제, 추가 Sort 프로그램 (Made by C)]]></title>
	<link>http://VisualC.egloos.com/4015941</link>
	<guid>http://VisualC.egloos.com/4015941</guid>
	<description>
	<![CDATA[ 
  #include &amp;lt;stdio.h&amp;gt; #define MAX 10 #define T  1 #define F  0 #define NULLs 0   //0으로 초기화를 하기 위해 전처리함int count_list; void clear(int *list ); int in_empty(int *list ); int is_full(int *list); void display(int *list); int get_length(int *list); int is_in_list(int *list, int item); int add(int *list, int item); int delete_item(int *list, int item);void main() {  int list[MAX];  int item, menu, 	]]>
	</description>
	<pubDate>Fri, 08 Apr 2011 12:00:27 +0900</pubDate>
	<dc:creator><![CDATA[Visual C++ Programing 안녕하세요 민군입니다!]]></dc:creator>
</item>
<item>
	<title><![CDATA[objective-c 한글 영문 숫자 순으로 정렬]]></title>
	<link>http://spectrum.egloos.com/5454749</link>
	<guid>http://spectrum.egloos.com/5454749</guid>
	<description>
	<![CDATA[ 
할할할~망할 놈들 -_-) 아무리 찾아도 없네iOS 기본 주소록 처럼 한글&amp;gt;영문&amp;gt;숫자 순으로 정렬하려고 했더니 기본 정렬은 숫자&amp;gt;영문&amp;gt;한글 순 정렬임.지들만 알고 안알려주는지 해본 놈들이 없는 건지 결국 못찾아서 테스트케이스 두들기면서 경계값 검증해서 만들었긔결국 NSString의 Category를 뒤져서 커스텀 소트를 하는 것으로 결론.제발 홀랑 배껴가지들만 마시고 손으로 쳐보고 행여라도 틀린 결과가 나오면 고쳐서 댓글 답시다.  @implementation NSString (Support) - (NSComparisonResult) sortForIndex:(NSString*)comp {	// 기본 localizedCaseInsensitiveCompare는 숫자, 영문(대소무시), 한글	]]>
	</description>
	<pubDate>Sun, 13 Mar 2011 16:01:49 +0900</pubDate>
	<dc:creator><![CDATA[아는 길도 돌아가자]]></dc:creator>
</item>
<item>
	<title><![CDATA[sort of courting by eerie]]></title>
	<link>http://snugart.egloos.com/2672003</link>
	<guid>http://snugart.egloos.com/2672003</guid>
	<description>
	<![CDATA[ 
  sort of courting by eerie   이 작품이 속한 카테고리 : 사진&amp;gt;인물/캐릭터  이 작품의 태그 : sort   of   courting   	]]>
	</description>
	<pubDate>Mon, 20 Dec 2010 12:00:26 +0900</pubDate>
	<dc:creator><![CDATA[자유로운 창작공간 - 스너그아트]]></dc:creator>
</item>
<item>
	<title><![CDATA[sort] heap...의 원점기준에 대해...]]></title>
	<link>http://killofki.egloos.com/5375477</link>
	<guid>http://killofki.egloos.com/5375477</guid>
	<description>
	<![CDATA[ 
heap...  sort 를 위해 태어났다...라기보다는 우선순위를 먼저 뽑아내기 위한... 그런 method 형 tree 이다...라고 적어는 보는데,  top point 의 여부와 크기만 지정되면 node 가 자동구성이 되는 트리형태...라는 설명이라면 맞을지...  ...  개인적인 생각이지만, cache 를 운영하기 위해 heap 을 많이 쓸 것으로 보인다. (sort 는 그 다음 문제...)  ...  뭐... 그딴(?) 문제는 일단 접어두고,  지금 적어둘 부분은 0 부터 시작하느냐, 1 부터 시작하느냐...의 문제가 있다.  0 ( 1 ( 3 4 ) 2 ( 5 6 ) )  1 ( 2 ( 4 5 ) 3 ( 6 7 ) )  실제 array 는  0 1 2 3 4 5 6  1 2 3 4 5 6 7  	]]>
	</description>
	<pubDate>Mon, 09 Aug 2010 20:50:31 +0900</pubDate>
	<dc:creator><![CDATA[killofki's PageDown....]]></dc:creator>
</item>
<item>
	<title><![CDATA[[ Java ] 순서 정렬에 사용하는 Comparator 인터페이스]]></title>
	<link>http://byulbada.egloos.com/2606449</link>
	<guid>http://byulbada.egloos.com/2606449</guid>
	<description>
	<![CDATA[ 
   많은 데이터 중 특정 값을 기준으로 정렬해야 할 때가 있습니다.     이 때 자바에서 특정 인터페이스 하나를 구현해주면, 간단하게 정렬이 가능합니다만...분명 학교에서 배웠는데 홀라당 잊고 있었습니다. 뭐, 보통은 DB에서 데이터를 가져올 때 먼저 order by 등을 이용해서 정렬을 하면 되고, 그게 어렵거나 한 상황이라도 그냥 직접 구현하면 되니까 그렇게 문제될 건 없었습니다만...이것저것 검색하다보니 그 잊고 있던 내용이 나오더군요.    그 사용법 →     정렬기준을 지정해 주는 것이 Comparator를 이용해 Collections 클래스나 Arrays 클래스의 sort 메서드를 이용해서 간단하게 정렬이 가능합니다.(Arrays는 배열, Collections는 List를 인수로 받는 차이) 	]]>
	</description>
	<pubDate>Mon, 14 Jun 2010 13:13:15 +0900</pubDate>
	<dc:creator><![CDATA[별소리의 엄마쟤흙먹어]]></dc:creator>
</item>
<item>
	<title><![CDATA[[병합정렬] merge sort all type]]></title>
	<link>http://hothead.egloos.com/2472721</link>
	<guid>http://hothead.egloos.com/2472721</guid>
	<description>
	<![CDATA[ 
#include &amp;lt;stdio.h&amp;gt;  #include &amp;lt;stdlib.h&amp;gt;  #include &amp;lt;string.h&amp;gt;int rv_univ(int from, int to);  int comperator(int* a, int*b);  void mergeSort(          void* array,          int typeSize,          int length,          int (*)(void*,void*)          );  void _mergeSort(          void* array,          int typeSize,          int left,          int right,          void* buf,          int	]]>
	</description>
	<pubDate>Sat, 15 May 2010 19:09:14 +0900</pubDate>
	<dc:creator><![CDATA[뜨거운머리 차가운 가슴]]></dc:creator>
</item>
<item>
	<title><![CDATA[[명령어] 리눅스 sort 명령어 - 정렬]]></title>
	<link>http://slog2.egloos.com/3534809</link>
	<guid>http://slog2.egloos.com/3534809</guid>
	<description>
	<![CDATA[ 
# cat /etc/passwd | sort                                                                -&amp;gt; /etc/passwd 파일을 정렬한다    # cat /etc/passwd | sort -r                                                           -&amp;gt; /etc/passwd 파일을 역순 정렬한다    # cat /etc/passwd | sort -c                                                           -&amp;gt; /etc/passwd 파일이 정렬되어있는지 검사한다     # cat /etc/passwd | sort -f           	]]>
	</description>
	<pubDate>Tue, 12 Jan 2010 17:45:42 +0900</pubDate>
	<dc:creator><![CDATA[이재원]]></dc:creator>
</item>
<item>
	<title><![CDATA[Insertion sort]]></title>
	<link>http://hothead.egloos.com/2109613</link>
	<guid>http://hothead.egloos.com/2109613</guid>
	<description>
	<![CDATA[ 
  def isort(a:Array[Int]): Unit = {      for(i &amp;lt;- 1 until a.length) {        var value = a(i);        var j = i-1;        while(j &amp;gt;= 0 &amp;amp;&amp;amp; a(j) &amp;gt; value) {          a(j+1) = a(j)          j -= 1        }        a(j + 1) = value      }    }    //머리가 바보가 되어가나...    	]]>
	</description>
	<pubDate>Sat, 28 Nov 2009 11:07:52 +0900</pubDate>
	<dc:creator><![CDATA[뜨거운머리 차가운 가슴]]></dc:creator>
</item>
<item>
	<title><![CDATA[Bubble sort]]></title>
	<link>http://hothead.egloos.com/2109529</link>
	<guid>http://hothead.egloos.com/2109529</guid>
	<description>
	<![CDATA[ 
  object Main {    def bsort(a: Array[Int]): Unit = {      var flag = false;      do {        flag = false;        for(i &amp;lt;- 0 until a.length - 1) {          if(a(i) &amp;gt; a(i+1)) {            val tmp = a(i);            a(i) = a(i+1);            a(i+1) = tmp;            flag = true;          }        }      } while(flag);    }    def main(args: Array[String]): Unit = {      val a = new Array[Int]	]]>
	</description>
	<pubDate>Sat, 28 Nov 2009 10:10:39 +0900</pubDate>
	<dc:creator><![CDATA[뜨거운머리 차가운 가슴]]></dc:creator>
</item>
<item>
	<title><![CDATA[C++의 class의 연산자오버로딩 함수를 사용해서 STL, Vector에 넣고 Sort해보자]]></title>
	<link>http://redcap.egloos.com/1530951</link>
	<guid>http://redcap.egloos.com/1530951</guid>
	<description>
	<![CDATA[ 
C++의 class의 연산자오버로딩 함수를 사용해서 STL, Vector에 넣고 Sort해보자    엄청제목이 길죠..  사실 간단합니다.  임의의 class를 선언하고. 이들을 비교할수 있는 연산자(operator)를 선언하면됩니다.  예제에서는 &amp;lt;,&amp;gt;를 선언했습니다.    이렇게 선언하면   ---------------------------------  Tmp a, b;  if( a&amp;gt; b) cout &amp;lt;&amp;lt; &quot;a가 더커&quot;;  ---------------------------------  이런 것이 오류가 없이 돌아갑니다.    그런데 이렇게 선언된 class를 vector나 list에 넣고 stl의 sort함수를 사용해서..  정렬을 하려고 할 때는 좀더 신경써야합니다.  일반적으	]]>
	</description>
	<pubDate>Thu, 24 Sep 2009 12:14:17 +0900</pubDate>
	<dc:creator><![CDATA[멋진상수님의 이글루]]></dc:creator>
</item>
<item>
	<title><![CDATA[[C#] 간단한 버블 소트 작성하기]]></title>
	<link>http://hazelstyle.egloos.com/5073777</link>
	<guid>http://hazelstyle.egloos.com/5073777</guid>
	<description>
	<![CDATA[ 
<img 
				src="http://thumb.egloos.net/100x76/http://pds17.egloos.com/pds/200909/18/94/c0032494_4ab35b3ed2a24.jpg"  
				alt="[C#] 간단한 버블 소트 작성하기" 
				width="100px"  
				height="76pxpx"
				align="left"
				style="border:1px solid #DDDDDD;margin:0 10px 10px 0px;"
				/> 정수 데이터를 사용한 간단한 Bubble sorting 프로그램 예제를 작성해 본다. 버블 소트는 n 개의 데이터에 대하여 이중 for loop를 한 번 실행해 주면 된다. 최고 효율의 소팅 알고리즘은 아니지만, 코드가 간단하기 때문에 많이 사용한다.  &amp;lt;Sort.cs&amp;gt; - C# express 2008의 콘솔응용프로그램 ============================================================ using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.IO; // 사용자 추가 using System.Collections; // 사용자 추가names	]]>
	</description>
	<pubDate>Fri, 18 Sep 2009 19:05:18 +0900</pubDate>
	<dc:creator><![CDATA[hazelstyle.egloos.com]]></dc:creator>
</item>
<item>
	<title><![CDATA[ActionScript와 PHP의 배열 정렬 함수의 차이.]]></title>
	<link>http://neojjang.egloos.com/1929040</link>
	<guid>http://neojjang.egloos.com/1929040</guid>
	<description>
	<![CDATA[ 
현재 프로젝트는 클라이언트를 전부 플래시화하여 진행 하고 있다.   단순히 데이터를 웹서버에서 읽어서 처리하는 것이라면 크게 문제가 없는데, 플래시에서 웹서버로 데이터를 전송할 때 위변조의 여부를 판단하기 위해 해쉬코드를 도입했다.    해쉬코드는 파라미터를 정렬한 결과에 대해서 처리하고 있는데,    문제는 정렬 함수가 ActionScript와 PHP가 내부적으로 조금 차이가 있어 해쉬코드가 일치하지 않는 것이었다.    예를 들어 다음과 같은 파라미터가 있다고 하자. PHP는 변수 앞에 &quot;$&quot;가 있다고 생각하자.  a[0] = &quot;3&quot;;  a[1] = &quot;10&quot;;  a[2] = &quot;neojjang.egloos.com&quot;;  a[3] = &quot;hello!&quot;;    ActionScript에서 정렬한 결과를 확인 해 보	]]>
	</description>
	<pubDate>Thu, 16 Jul 2009 14:13:12 +0900</pubDate>
	<dc:creator><![CDATA[IT 프로를 향한 조건?]]></dc:creator>
</item>
<item>
	<title><![CDATA[[p28-4]정수 3개 오름차순으로 출력]]></title>
	<link>http://penguinsw.egloos.com/2472111</link>
	<guid>http://penguinsw.egloos.com/2472111</guid>
	<description>
	<![CDATA[ 
정수 값 x, y, z를 감소하지 않는 순서로 출력하는 C++ 프로그램을 작성하라.  #include&amp;lt;iostream&amp;gt; using namespace std;void prtSort(int x, int y, int z) {      if(x &amp;gt; y)           swap(x, y);      if(x &amp;gt; z)           swap(x, z);      if(y &amp;gt; z)           swap(y, z);     cout&amp;lt;&amp;lt;x&amp;lt;&amp;lt;&quot; &quot;&amp;lt;&amp;lt;y&amp;lt;&amp;lt;&quot; &quot;&amp;lt;&amp;lt;z&amp;lt;&amp;lt;endl; }  void main(void) {      int x=3, y=2, z=1;     prtSort(x, y, z); }  아악 문제 왤케 많	]]>
	</description>
	<pubDate>Sun, 28 Jun 2009 11:12:33 +0900</pubDate>
	<dc:creator><![CDATA[펭귄sw]]></dc:creator>
</item>
	</channel>
</rss>

