自定义博客皮肤VIP专享

*博客头图:

格式为PNG、JPG,宽度*高度大于1920*100像素,不超过2MB,主视觉建议放在右侧,请参照线上博客头图

请上传大于1920*100像素的图片!

博客底图:

图片格式为PNG、JPG,不超过1MB,可上下左右平铺至整个背景

栏目图:

图片格式为PNG、JPG,图片宽度*高度为300*38像素,不超过0.5MB

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(3)
  • 收藏
  • 关注

原创 八数码问题实现(裸BFS版+A*版)C++实现

算法核心是bfs hash用的是康拓展开 输入是第一行是初始状态,第二行是终止状态,空格用0表示。 012 345 ———> 012345678 678 一些测试数据: 012345678 102345678103425678 123405678123045678 123405678123475608 123405678123450678 12340567823415076

2017-03-22 11:51:58 2537 2

原创 递归生成格雷码 gray code generation using recursion(c++)

按序生成n位的全部格雷码 generate n digits grey code in order#include "iostream" #include "cstring" #include "cstdio" #include "string.h" #include "stack" #include "cmath" using namespace std; int n; char s[10500

2017-03-15 19:56:16 458

原创 HDU1029 Ignatius and the Princess IV 腾讯面试题抢红包(?)(模拟)

Problem Description “OK, you are not too bad, em… But you can never pass the next test.” feng5166 says.“I will tell you an odd number N, and then N integers. There will be a special integer among them

2017-03-09 16:56:39 644

空空如也

空空如也

TA创建的收藏夹 TA关注的收藏夹

TA关注的人

提示
确定要删除当前文章?
取消 删除