⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 recordout.cpp

📁 排序算法的内部复杂度分析,有八个算法,有时间和空间的分析,比较完整
💻 CPP
字号:
void recordout()
{
	if(bubblerecord)
	
	{   printf("\n");
		printf("comparable counter is:%d\t\n",record[0][0]);
		printf("\n");
		printf("the swaping counter is:%d\t\n",record[0][1]);
	bubblerecord=0;
	}
	if(selectrecord)
	
	{   printf("\n");
		printf("comparable counter is:\t%d\t\n",record[1][0]);
		printf("\n");
		printf("the swaping counter is:\t%d\t\n",record[1][1]);
	selectrecord=0;
	}
	if(insertrecord)
	
	{   printf("\n");
		printf("comparable counter is:\t%d\t\n",record[2][0]);
		printf("\n");
		printf("the swaping counter is:\t%d\t\n",record[2][1]);
	insertrecord=0;
	}
	if(shellrecord)	
	{   printf("\n");
		printf("comparable counter is:\t%d\t\n",record[3][0]);
		printf("\n");
		printf("the swaping counter is:\t%d\t\n",record[3][1]);
	shellrecord=0;
	}
	
     if(quicksortrecord)
	{   printf("\n");
		printf("comparable counter is:\t%d\t\n",record[4][0]);
		printf("\n");
		printf("the swaping counter is:\t%d\t\n",record[4][1]);
	quicksortrecord=0;
	}
    if(heapsortrecord)
	{   printf("\n");
		printf("comparable counter is:\t%d\t\n",record[5][0]);
		printf("\n");
		printf("the swaping counter is:\t%d\t\n",record[5][1]);
    heapsortrecord=0;
	}
}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -