
Algorithm
文章平均质量分 81
CrazyWind
Concentrate on(dedicated to) Qt OpenGL C Algorithm Linux Programming
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
稀疏矩阵的行逻辑链接顺序表存储表示
// Header.h#ifndef HEADER_H#define HEADER_H 1// 预定义常量和类型// 函数结果状态代码#define TRUE 1#define FALSE 0#define OK 1#define ERROR 0#define INFEASIBLE -1#define OVERFLOW -2type原创 2010-04-05 20:47:00 · 844 阅读 · 0 评论 -
Boost Breadth First Search Example
<br />//======================================================================= // Copyright 2001 Jeremy G. Siek, Andrew Lumsdaine, Lie-Quan Lee, // // Distributed under the Boost Software License, Version 1.0. (See // accompanying file LICENSE_1_0.tx转载 2011-04-18 19:48:00 · 476 阅读 · 0 评论 -
最大公约数与最小公倍数
#include using namespace std;/* Greatest common divisor */unsigned long gcd(unsigned long a, unsigned long b){ unsigned long r; if (a swap(a, b); while ((r = a % b)原创 2010-04-08 11:59:00 · 266 阅读 · 0 评论 -
插入排序
/* 插入排序 InsertionSort */#include #include #include #include #include #include using namespace std;typedef vector VI;#define N 10void InsertionSort(int a[], int n);void原创 2010-04-21 17:46:00 · 308 阅读 · 0 评论 -
二叉树的二叉链表存储表示
// Header.h#ifndef HEADER_H#define HEADER_H 1// 预定义常量和类型// 函数结果状态代码#define TRUE 1#define FALSE 0#define OK 1#define ERROR 0#define INFEASIBLE -1#define OVERFLOW -2type原创 2010-04-09 18:45:00 · 728 阅读 · 0 评论 -
单链表
#include #include #include using namespace std;#define OK 1#define ERROR 0typedef int Status;typedef int ElemType;/* 线性表的单链表存储结构 */typedef struct LNode { ElemType data;原创 2010-04-20 13:39:00 · 334 阅读 · 0 评论 -
广义表相关算法
//Header.h#ifndef HEADER_H#define HEADER_H// 预定义常量和类型// 函数结果状态代码#define TRUE 1#define FALSE 0#define OK 1#define ERROR 0#defi原创 2010-04-03 21:59:00 · 484 阅读 · 0 评论 -
稀疏矩阵的十字链表存储表示
// Header.h#ifndef HEADER_H#define HEADER_H 1// 预定义常量和类型// 函数结果状态代码#define TRUE 1#define FALSE 0#define OK 1#define ERROR 0#define INFEASIBLE -1#define OVERFLOW -2type原创 2010-04-06 16:14:00 · 493 阅读 · 0 评论 -
稀疏矩阵的三元组顺序表存储表示
// Header.h#ifndef HEADER_H#define HEADER_H 1// 预定义常量和类型// 函数结果状态代码#define TRUE 1#define FALSE 0#define OK 1#define ERROR 0#define INFEASIBLE -1#define OVERFLOW -2typede原创 2010-04-05 14:26:00 · 1218 阅读 · 0 评论