迷宫问题实验报告.docVIP

  • 23
  • 0
  • 约3.01千字
  • 约 4页
  • 2017-06-05 发布于天津
  • 举报
迷宫问题实验报告.doc

迷宫 问题实验报告 1.? 【题目】 ? ?迷宫问题求解 2. 【】PSeqStack createEmptyStack_seq void isEmptyStack_seq PSeqStack pastack push_seq PSeqStack pastack, DataType x pop_seq PSeqStack pastack pushtostack PSeqStack st, int x, int y, int d printpath PSeqStack st void mazePath int maze[][N], int direction[][2], int x1, int y1, int x2, int y2 int main 3? 【】 程序中的函数调用关系图(用流程图描述算法的实现思想 4.? 【】 1:建立空栈 2:判断栈是否位空 3:栈中压入元素X 4: 栈元素的插入 5:删除栈顶元素 6:打印路径函数 7:寻找迷宫路径的核心算法 8:主掉函数 5.? 【】 6.? 【】 ? #include #include typedef struct int x;/* 行下标 */ int y;/* 列下标 */ int d;/* 运动方向 */ DataType; struct SeqStack /

文档评论(0)

1亿VIP精品文档

相关文档