ビデオを開始 (RealVideo)
クイックソート
include
#include
#include"sort.h"
main(argc,argv)
int argc;
char *argv[];
{
FILE *fp;
int i,randints[MEMBER];
if((fp = fopen(argv[1],"r")) == NULL){
perror("can't open file");
exit(1);
}
for(i=0;i= end)
return;
center = partition(randints,start,end);
quick_sort(randints,start,center-1);
quick_sort(randints,center+1,end);
}
int partition(int randints[],int start,int end){
int i,j,pivot,t;
for(;;){
while(a[start] < center)
start++;
}
}
授業ページ
授業シラバス
ビデオを見るにはあらかじめいずれかのプレーヤをインストールしてください。
DownLoad RealPlayer