
数据结构
zLanaDelRey
开心的逗比:)
展开
-
数据结构-图
马踏棋盘算法(骑士周游问题)C语言实现代码未修改#include <stdio.h>#include <time.h>#define X 8#define Y 8int chess[X][Y];//找到基于(x,y)位置的下一个可走的位置int nextxy(int *x, int *y, int count){ switch (count) { case 0:原创 2018-01-19 19:17:08 · 201 阅读 · 0 评论 -
数据结构-绪论
基本概念和术语4类基本数据结构(1)集合 (2)线性结构 (3)树形结构 (树) (4)图状结构或网状结构 (图)存储结构顺序存储结构和链式存储结构算法和算法分析算法:是对特定问题求解步骤的一种描述,它是指令的有限序列,其中一条指令表示一个或多个操作。算法的五个重要特性 (1)有穷性 (2)确定性 (3)可行性 (4)输入 (5)输出算法设计的要求 (1)正确性原创 2018-01-19 21:05:30 · 219 阅读 · 0 评论 -
数据结构-栈与队列
利用栈将二进制转换为十进制代码未运行#include <stdio.h>#include <stdlib.h>#include <math.h>#define STACK_INIT_SIZE 20#define STACKINCREMENT 10typedef char ElemType;typedef struct{ ElemType *base; ElemType原创 2018-01-17 16:22:52 · 208 阅读 · 0 评论 -
数据结构-循环链表
数据结构Josephus问题问题:41个人围成一个圈,一次报数,报数为3的出列。//josephus.c #include <stdio.h>#include <stdlib.h>typedef struct node{ int data; struct node *next;}node;node *creat(int n){ int i = 1;原创 2018-01-17 11:15:23 · 256 阅读 · 0 评论 -
JavaScript-二叉树的建立
建立二叉树<!DOCTYPE html><html lang="en"><head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0"&g原创 2018-08-26 11:25:12 · 298 阅读 · 0 评论 -
JavaScript-二叉树的前中后排序以及删除
<!DOCTYPE html><html lang="en"><head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0">原创 2018-08-26 17:12:29 · 279 阅读 · 0 评论