03 2015 档案
列车重排
摘要:数据结构书上的。。#include #include using namespace std;/* run this program using the console pauser or add your own getch, system("pause") or input loop */// ...
阅读全文
C指针,a,*a,&a....
摘要:(1) a,&a,和*aint main(int argc, char *argv[]) { int a = 10; int *c = &a; cout#include using namespace std;/* run this program using the console pauser ...
阅读全文
回溯问题总结
摘要:就简单背包问题(背包一)和四染色问题简单的回溯问题可以有以下这个模型 int trying = 0; do { while( 满足条件,可以进栈 ) { 进栈 设置尝试的新值:简单的分有两种 1、如简单背包的:物品互斥,则trying=trying + 1; ...
阅读全文
地图四染色
摘要:数据结构书上的。。。依旧回溯#include #include using namespace std;/* run this program using the console pauser or add your own getch, system("pause") or input loop ...
阅读全文
背包一
摘要:数据结构书上的背包问题,最基本的背包问题。简单回溯,数字模拟栈。#include using namespace std;/* run this program using the console pauser or add your own getch, system("pause") or in...
阅读全文
浙公网安备 33010602011771号