代码搜索:递归回溯
找到约 2,805 项符合「递归回溯」的源代码
代码结果 2,805
www.eeworm.com/read/448997/7520487
cpp algo0705.cpp
//--- 算法7.4和7.5使用的全局变量 ---
bool visited[MAX_VERTEX_NUM]; // 访问标志数组
Status (* VisitFunc)(int v); // 函数变量
void DFS(Graph G, int v) { // 算法7.5
// 从第v个顶点出发递归地深度优先遍历图G。
int w;
visite
www.eeworm.com/read/448194/7538418
c 习题-36.c
//本程序只给出了算法思想
//读者可以自己完善本程序
typedef struct {
int data;
PBTNode *lchild;
PBTNode *rchild;
PBTNode *parent;
} PBTNode,PBitree; //有双亲指针域的二叉树结点类型
void Inorder_Nonrecursive(PBitree T)//不设栈非递归遍
www.eeworm.com/read/444277/7614803
c algo3-9.c
/* algo3-9.c 用递归函数求解迷宫问题(求出所有解) */
#include /* 根据《PASCAL程序设计》(郑启华编著)中的程序改编 */
struct PosType /* 迷宫坐标位置类型 */
{
int x; /* 行值 */
int y; /* 列值 */
};
#define MAXLENGTH 25 /* 设
www.eeworm.com/read/442220/7656985
c algo3-9.c
/* algo3-9.c 用递归函数求解迷宫问题(求出所有解) */
#include /* 根据《PASCAL程序设计》(郑启华编著)中的程序改编 */
struct PosType /* 迷宫坐标位置类型 */
{
int x; /* 行值 */
int y; /* 列值 */
};
#define MAXLENGTH 25 /* 设
www.eeworm.com/read/438922/7719371
c algo3-9.c
/* algo3-9.c 用递归函数求解迷宫问题(求出所有解) */
#include /* 根据《PASCAL程序设计》(郑启华编著)中的程序改编 */
struct PosType /* 迷宫坐标位置类型 */
{
int x; /* 行值 */
int y; /* 列值 */
};
#define MAXLENGTH 25 /* 设
www.eeworm.com/read/333514/12678137
c algo3-9.c
/* algo3-9.c 用递归函数求解迷宫问题(求出所有解) */
#include /* 根据《PASCAL程序设计》(郑启华编著)中的程序改编 */
struct PosType /* 迷宫坐标位置类型 */
{
int x; /* 行值 */
int y; /* 列值 */
};
#define MAXLENGTH 25 /* 设
www.eeworm.com/read/333491/12678441
txt 5.txt
6.43③ 编写递归算法,将二叉树中所有结点的
左、右子树相互交换。
要求实现下列函数:
void Exchange(BiTree &bt);
/* Exchange the left and right leaves of */
/* bitree whose root node is bt */
二叉链表类型定义:
typedef struct BiT
www.eeworm.com/read/332926/12716961
c 6.43.c
6.43③ 编写递归算法,将二叉树中所有结点的
左、右子树相互交换。
要求实现下列函数:
void Exchange(BiTree &bt);
/* Exchange the left and right leaves of */
/* bitree whose root node is bt */
二叉链表类型定义:
typedef struct BiT
www.eeworm.com/read/332926/12716992
c 6.41.c
6.41③ 编写递归算法,在二叉树中求位于先序序列中
第k个位置的结点的值。
要求实现下列函数:
TElemType PreOrder(BiTree bt, int k);
/* bt is the root node of a binary linked list, */
/* Preorder travel it and find the node whose */
/*
www.eeworm.com/read/246401/12730360
c algo3-9.c
/* algo3-9.c 用递归函数求解迷宫问题(求出所有解) */
#include /* 根据《PASCAL程序设计》(郑启华编著)中的程序改编 */
struct PosType /* 迷宫坐标位置类型 */
{
int x; /* 行值 */
int y; /* 列值 */
};
#define MAXLENGTH 25 /* 设