![](https://img-blog.csdnimg.cn/20201014180756780.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
算法
BreaZhang
这个作者很懒,什么都没留下…
展开
-
类孔明棋 c语言实验,深度优先搜索中的重叠子结果的优化问题
前几天帮朋友写一个类孔明棋的算法,上题 5*5的棋盘 .表示没棋子 o表示有棋子如: ooooo ooooo oo.oo ooooo ooooo走法和孔明的走法一样开始直接就是一个深搜 没有用数据结构 用的数组#include<stdio.h> #include <iostream> ...原创 2018-05-06 13:26:01 · 833 阅读 · 1 评论 -
希尔排序
public static void main(String[] args) { int[] number = {5, 8, 1, 45, 61, 8, 1, 9, 1, 2, 0}; int gap=number.length/2; while (1 < gap) { //每次循环 从该组的第一个数据到...原创 2018-12-16 21:35:46 · 97 阅读 · 0 评论