월간 보관물: 2017 9월

heap sort

/* 힙소트에 관한 설명은 생략합니다. http://priv.tistory.com/61 위의 블로그에 설명이 굉장히 잘 되어 있습니다. 작성자 분 감사드립니다. */ #include <iostream> using namespace std; #define IS_LESS(v1, v2) (v1 < v2) void siftDown( int *a, int start, int count); #define SWAP(r,s) {int t=r; … 계속 읽기

카테고리: 기초 개발실력 다지기 | 태그: , | 댓글 남기기