亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關于我們
? 蟲蟲下載站

?? compression12.cpp

?? 對流數據的壓縮
?? CPP
?? 第 1 頁 / 共 2 頁
字號:
   if(tgg==NULL)      cout<<"allocate error2"<<endl;

   fprintf(f,"%s\n","the positions of the shanchu lines:");

   flag=0;//count the number of the groups(cliques)   
   while(total!=0)
   {
	   for ( i=0;i<(n*n);i++ )
	       gg[i]=graphg[i];
           pgg2=n;
	   for ( i=0;i<n;i++ )
	       scl[i]=i;
	   flag++;
	   do
	   {
            for ( i=0;i<pgg2;i++ )
				ncomp[i]=0;
			for ( i=0;i<pgg2;i++ )
				for ( j=0;j<pgg2;j++ )
				{
					if( gg[i*pgg2+j]==1)
						ncomp[i]++;
				}
		    t2=ncomp[0];
            tmax=0;
            for( t1=1;t1<pgg2;t1++ )
			{
	            if( t2<ncomp[t1] )
				{
		            t2=ncomp[t1];
		            tmax=t1;
				}
			}
			t=scl[tmax];            //the position of the vector in graphg
			fprintf(f,"%d ",t);     //output the position of the shanchu line
			rcomp[t]=flag;          //the compatible vectors have the same value in the corresponding positions in the array rcomp.this can be used later.
			for ( i=0;i<n;i++ )
			{
				if(graphg[i*n+t]==1)
				{
					graphg[i*n+t]=0;
					total--;
				}
				if(graphg[t*n+i]==1)
				{
					graphg[t*n+i]=0;
					total--;
				}
			}
			pgg1=pgg2;
			pgg2=0;
			for ( i=0;i<pgg1;i++ )
			{
				if( gg[tmax*pgg1+i]==1 )
				{
					tscl[pgg2]=i;
					pgg2++;
				}
			}
			for ( i=0;i<pgg2;i++ )
			{
				t1=tscl[i];
				scl[i]=scl[t1];      //t1 increases progressively
				for ( j=0;j<pgg2;j++ )
				{
					t2=tscl[j];
					tgg[i*pgg2+j]=gg[t1*pgg1+t2];
				}
					
			}
			for ( i=0;i<(pgg2*pgg2);i++ )
					gg[i]=tgg[i];			

	   }while(pgg2!=0);
	   
	   fprintf(f,"%s\n","");
   }
   fprintf(f,"%s\n","");

   delete[]gg;
   delete[]tgg;
   delete[]ncomp;
   delete[]scl;
   delete[]tscl;

   return flag;
}




//********************function comppatdelete*******************


//this fuction will delete the compatible vectors in the test patterns according to the rcomp

//first the compatible vectors belong to same clique will be resave to the heap(array) tfmat in order to process easily
//then we will specify the bits that can be specified in a clique
//and rewrite the specified vector to the first appeared position in the original array 
//and char 2 is rewited to the first cells of the other patterns
//at last,scan the array.if the first cell of the vector in array is char 2,delete this vector

//the meaning of the function's parameters as follows:
//      patterns--the test patterns will be processed
//      rcomp--compatible mark array(as above)
//      width,number--the width and the number of the patterns
//      n--the number of the cliques
//this function will return the number of the patterns in which the compatible ones have been deleted.

//在圖中去掉在一個相容類中出現過的一個接點
int comppatdelete(char *patterns,int *rcomp,int width,int number,int n)
{

	int i,j,k,t,t1;
	char *temp1=new char[width*number];   
	int *temp2=new int[number];

	for ( i=1;i<=n;i++ )
    {
	    t=0;
	    t1=0;
	    for ( j=0;j<number;j++ )
		{
		    if ( rcomp[j]==i )
			{
			    for ( k=0;k<width;k++ )
				{
				    temp1[t]=patterns[j*width+k];
				    t++;
				}
			    temp2[t1]=j;
			    t1++;   //the size of the clique
		   }
	   }

	   for ( j=0;j<width;j++ )
	   {
		   k=0;
		   while ( k<t1 )
		   {
			   if( temp1[k*width+j]=='-') k++;
			   else
			   {
				   temp1[j]=temp1[k*width+j];
				   break;
			   }
		   }
	   }

	   t=temp2[0];
	   for ( j=0;j<width;j++ )
	   {
		   patterns[t*width+j]=temp1[j];
	   }
	   for ( j=1;j<t1;j++ )
	   {
		   t=temp2[j];
		   patterns[t*width]='2';
	   }
   }
 
   i=1;
   for ( j=1;j<number;j++ )
   {
	   if( patterns[j*width]!='2' ) 
	   {
		   for ( k=0;k<width;k++ )
			   patterns[i*width+k]=patterns[j*width+k];
		   i++;
	   }
   }

   delete[]temp1;
   delete[]temp2;

   return i;
}




//*******************function rowcompalg***********************


//this function transfer allocate three functions above to complete the first compression.
//the meaning of the function's parameters as follows:
//      f--the point of the file to output the information
//      patterns--the test patterns will be compressed
//      width,number--the width and the number of the patterns
//this function will return the number of patterns after compatible processing


int rowcompalg(FILE *f,char *patterns,int width,int number)
{
    int *graphg=new int[number*number];    //the graph G for the compatible matrix 
    int *rcomp=new int[number];            //show the compatible relationship 
    int tm;                                //the number of the vectors in the array in which the compatible vectors have been deleted
    int temp=0;

	if(graphg==NULL)   cout<<"allocate error0"<<endl;

	temp=compgraphset(patterns,graphg,width,number);
    temp=maxcliquegreedy(f,graphg,rcomp,number,temp);//greedy algorithm.
    tm=comppatdelete(patterns,rcomp,width,number,temp);
	fprintf(f,"%s\n","the fmatpat after compatible processing: ");
	matrixoutput(f,patterns,width,tm);

	delete[]graphg;
    delete[]rcomp;

	return tm;
}





//*******************function matrixoutput***********************


//this function will output a heap(array) in form of matrix
//the meaning of the function's parameters as follows:
//      f--the file for output
//      patterns--the test patterns will be output
//      width,number--the width and the number of the patterns(matrix)


void matrixoutput(FILE *f,char *patterns,int width,int number)
{
	
	int i,j;
    for ( i=0;i<number;i++ )
    {
	    for ( j=0;j<width;j++ )
		    fprintf(f,"%c",patterns[i*width+j]);
	    fprintf(f,"%s\n","");
		fprintf(f,"%s\n","");
		fprintf(f,"%s\n","");
    }
    fprintf(f,"%s\n","");
   
}




/*//*******************function shiftedfdr***********************


//shifted FDR

int shiftedfdr(FILE *f,int l)
{
	l--;  //shift

	int i,j,k=0;
	int total=0;
	if ((log10(l+3)/log10(2)-1)==int((log10(l+3)/log10(2)-1)))
		j=int((log10(l+3)/log10(2)-1));
    else
		j=int((log10(l+3)/log10(2)-1))+1;
	for(i=1;i<j;i++)
	{
		fprintf(f,"%c",'1');
		total++;
		k=k+pow(2,i);
	}
	fprintf(f,"%c",'0');
	total++;
	l=l-k;
	for(i=(j-1);i>=0;i--)
	{
		k=int(l/pow(2,i));
		fprintf(f,"%d",k);
		total++;
		l=l-k*int(pow(2,i));
	}
	fprintf(f,"%s\n","");
	return total;

	
}

//*******************function alterrunlen***********************


//alternating run-length

int alterrunlen(FILE *f,char *patterns,int n)
{
	int pp,nsame,total=0;
	char pt;
	pp=0;
	nsame=1;
	pt=patterns[pp];
	pp++;
	while(pp<n)
	{
		if((patterns[pp]=='-')||(pt==patterns[pp]))
		{
			pp++;
			nsame++;
		}
		else
		{
			total=total+shiftedfdr(f,nsame);
			nsame=1;
			pt=patterns[pp];
			pp++;
		}
	}
	return total;

}

*/

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
亚洲成人7777| 欧美精品一区二区三区高清aⅴ| 激情文学综合丁香| 视频精品一区二区| 丝袜a∨在线一区二区三区不卡| 亚洲午夜激情av| 图片区小说区国产精品视频| 性久久久久久久久| 蜜臀久久99精品久久久久久9 | 色一区在线观看| 91丝袜国产在线播放| 色婷婷久久久久swag精品| 欧美这里有精品| 欧美成人女星排名| 国产清纯在线一区二区www| 国产色爱av资源综合区| 综合网在线视频| 三级亚洲高清视频| 精品一区二区三区不卡| 国产成人午夜精品影院观看视频| 丁香激情综合国产| 欧美日本韩国一区二区三区视频 | 成人免费视频网站在线观看| 日本韩国欧美在线| 91精品国产免费| 久久精品视频免费| 亚洲一区免费视频| 久久成人综合网| 91无套直看片红桃| 91精品国产欧美一区二区| 国产日韩欧美不卡在线| 亚洲永久精品大片| 国产寡妇亲子伦一区二区| 在线看国产一区二区| 2014亚洲片线观看视频免费| 亚洲精品视频在线| 狠狠色综合日日| 欧美在线一区二区三区| 2023国产精华国产精品| 亚洲一区二区三区影院| 顶级嫩模精品视频在线看| 欧美日韩一级片在线观看| 国产欧美日韩不卡免费| 日韩二区三区在线观看| 成人免费视频网站在线观看| 日韩欧美色综合| 亚洲午夜激情av| 不卡免费追剧大全电视剧网站| 欧美日韩高清一区二区| 亚洲男帅同性gay1069| 国产精品1区2区| 欧美一区二区三区免费在线看| 国产精品视频线看| 国内精品伊人久久久久av一坑| 欧美日韩五月天| 中文字幕一区三区| 国产精品一区二区在线看| 欧美一区二区网站| 亚洲高清久久久| 欧美亚洲综合在线| 1区2区3区精品视频| 国产a视频精品免费观看| 日韩欧美国产精品| 另类专区欧美蜜桃臀第一页| 欧美三级电影精品| 午夜久久久久久| 欧美日韩视频在线观看一区二区三区 | 免费观看一级特黄欧美大片| 色久综合一二码| 一区二区三区国产| 色哟哟一区二区三区| 国产精品成人免费| 97se狠狠狠综合亚洲狠狠| 国产精品免费视频网站| 国产成人综合在线| 国产精品美女久久久久aⅴ| 国产69精品久久99不卡| 欧美经典一区二区| www.欧美精品一二区| 国产精品污www在线观看| zzijzzij亚洲日本少妇熟睡| 国产精品激情偷乱一区二区∴| 成人性生交大片免费| 亚洲视频在线观看三级| 91免费版pro下载短视频| 亚洲欧美日韩国产综合| 欧美在线免费播放| 日本少妇一区二区| 日韩视频一区二区| 高清国产一区二区| 伊人夜夜躁av伊人久久| 欧美日韩精品欧美日韩精品一 | 91麻豆精品91久久久久同性| 丝袜国产日韩另类美女| 精品国产乱码久久久久久闺蜜 | 亚洲午夜国产一区99re久久| 欧美放荡的少妇| 国产综合久久久久久鬼色| 国产精品理伦片| 欧美高清视频一二三区 | 欧美日韩国产综合视频在线观看 | 国产一区中文字幕| 久久久99精品久久| 日本韩国一区二区三区视频| 蜜臀av一区二区在线免费观看| 国产蜜臀97一区二区三区| 色网综合在线观看| 久久精品国产网站| 亚洲欧美中日韩| 日韩午夜电影在线观看| 国产精品一线二线三线| 亚洲国产美国国产综合一区二区| 久久久久高清精品| 在线观看区一区二| 成人中文字幕电影| 国产一区二区伦理片| 一色桃子久久精品亚洲| 91精品国产aⅴ一区二区| 成人黄动漫网站免费app| 秋霞成人午夜伦在线观看| 一区在线观看免费| 久久综合久久综合亚洲| 欧美三级资源在线| 91玉足脚交白嫩脚丫在线播放| 日本va欧美va精品| 亚洲综合一二区| 国产精品视频免费看| 久久影院午夜论| 91精品在线麻豆| 91国偷自产一区二区开放时间| 国产夫妻精品视频| 久久成人综合网| 男男视频亚洲欧美| 婷婷综合另类小说色区| 一区二区日韩av| 国产精品免费视频观看| 久久久久久影视| 精品国产sm最大网站免费看| 538在线一区二区精品国产| www.日韩在线| av福利精品导航| 成人激情校园春色| 久热成人在线视频| 视频一区视频二区中文字幕| 亚洲免费资源在线播放| 中文字幕五月欧美| 国产精品久久久久毛片软件| www欧美成人18+| 精品国产乱码久久久久久免费| 日韩欧美电影一区| 亚洲精品一线二线三线| 欧美va亚洲va| 成人免费在线播放视频| 中文字幕在线观看不卡| 中文字幕一区二区三区不卡在线| 中文字幕不卡在线播放| 亚洲欧美综合网| 亚洲综合色视频| 午夜婷婷国产麻豆精品| 日本va欧美va精品发布| 精品亚洲成a人| 国产一区不卡在线| 成人少妇影院yyyy| 一本大道久久精品懂色aⅴ| 欧美性受极品xxxx喷水| 欧美日韩国产一级片| 精品日产卡一卡二卡麻豆| 久久蜜桃一区二区| 成人免费在线视频| 亚洲成av人片一区二区梦乃| 日韩av一二三| 国产二区国产一区在线观看| 色综合一个色综合| 69成人精品免费视频| 国产人成亚洲第一网站在线播放| 中文一区在线播放| 亚洲成人动漫精品| 国产乱子轮精品视频| 91国内精品野花午夜精品 | 久久久久久久av麻豆果冻| 国产精品久久久久影院亚瑟| 一区二区成人在线| 国产在线不卡视频| 91国偷自产一区二区三区成为亚洲经典 | 亚洲人成精品久久久久| 亚洲小说欧美激情另类| 国产激情一区二区三区四区| 色菇凉天天综合网| 2021中文字幕一区亚洲| 亚洲成人免费视| 成人性生交大片免费看中文网站| 在线观看免费视频综合| 久久精品一区二区三区不卡| 狠狠色综合日日| 在线亚洲人成电影网站色www| 欧美一区二区三区视频在线| 亚洲人亚洲人成电影网站色| 韩国欧美国产1区| 91视频在线观看| 国产女人aaa级久久久级|