• 博客园logo
  • 会员
  • 众包
  • 新闻
  • 博问
  • 闪存
  • 赞助商
  • HarmonyOS
  • Chat2DB
    • 搜索
      所有博客
    • 搜索
      当前博客
  • 写随笔 我的博客 短消息 简洁模式
    用户头像
    我的博客 我的园子 账号设置 会员中心 简洁模式 ... 退出登录
    注册 登录
\0\0\0
博客园    首页    新随笔    联系   管理    订阅  订阅
2015年3月25日
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 ... 阅读全文
posted @ 2015-03-25 23:17 \0\0\0 阅读(372) 评论(0) 推荐(0)
回溯问题总结
摘要: 就简单背包问题(背包一)和四染色问题简单的回溯问题可以有以下这个模型 int trying = 0; do { while( 满足条件,可以进栈 ) { 进栈 设置尝试的新值:简单的分有两种 1、如简单背包的:物品互斥,则trying=trying + 1; ... 阅读全文
posted @ 2015-03-25 22:16 \0\0\0 阅读(271) 评论(0) 推荐(0)
地图四染色
摘要: 数据结构书上的。。。依旧回溯#include #include using namespace std;/* run this program using the console pauser or add your own getch, system("pause") or input loop ... 阅读全文
posted @ 2015-03-25 22:10 \0\0\0 阅读(269) 评论(0) 推荐(0)
背包一
摘要: 数据结构书上的背包问题,最基本的背包问题。简单回溯,数字模拟栈。#include using namespace std;/* run this program using the console pauser or add your own getch, system("pause") or in... 阅读全文
posted @ 2015-03-25 20:47 \0\0\0 阅读(152) 评论(0) 推荐(0)
博客园  ©  2004-2025
浙公网安备 33010602011771号 浙ICP备2021040463号-3