QuickSort(퀵 정렬) 소스(C언어)
본 자료는 미리보기를 지원하지 않습니다.
닫기
  • 1
  • 2
  • 3
해당 자료는 1페이지 까지만 미리보기를 제공합니다.
1페이지 이후부터 다운로드 후 확인할 수 있습니다.

소개글

QuickSort(퀵 정렬) 소스(C언어)에 대한 보고서 자료입니다.

목차

[Debug]
Quicksort.cpp
Quicksort.dsp
Quicksort.dsw
Quicksort.ncb
Quicksort.opt
Quicksort.plg


파일 11
413KB

본문내용

/*Quicksort ! Pointer version with macros.*/
#define swap(x,y) {int t; t = x ; x = y ; y = t;}
#define order(x,y) if(x>y) swap(x,y)
#define o2(x,y) order(x,y)
#define o3(x,y,z) o2(x,y); o2(x,z); o2(y,z)

typedef enum {yes, no} yes_no;

static yes_no find_pivot(int *left, int *right, int *pivot_ptr);
static int *partition(int *left, int *right, int pivot);

void quicksort(int *left, int *right)
{
int *p, pivot;

if(find_pivot(left, right, &pivot) ==yes){
p = partition(left, right, pivot);
quicksort(left, p-1);
quicksort(p, right);

키워드

QuickSort,   퀵정렬,   정렬,   sort
  • 가격2,000
  • 페이지수3페이지
  • 등록일2011.02.16
  • 저작시기2010.6
  • 파일형식압축파일(zip)
  • 자료번호#651461
본 자료는 최근 2주간 다운받은 회원이 없습니다.
청소해
다운로드 장바구니