
算法导论
文章平均质量分 77
mysunnnyday
这个作者很懒,什么都没留下…
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
二项堆
// binomial heap.cpp : Defines the entry point for the console application. // #include "stdafx.h" template struct bh_node { struct bh_node *child; struct bh_node *parent; struct bh_node *siblin原创 2013-07-16 17:52:36 · 542 阅读 · 0 评论 -
图
#ifndef __BASE_H__ #define __BASE_H__ #include #include "binomial heap.h" using namespace std; /*********************************stack**********************************/ template class stack { public原创 2013-07-19 18:29:53 · 557 阅读 · 0 评论 -
斐波那契堆
#ifndef __FINBONACCI_HEAP_H__ #define __FINBONACCI_HEAP_H__ #define ERROR0 printf("error at file %s line %d\n",__FILE__,__LINE__) // 定义一个求有符号的无穷大的宏 #define SIGN_INFINITELY_GREAT(T) ((0x1<<8*sizeof原创 2013-07-21 22:56:15 · 559 阅读 · 0 评论 -
图的prim 斐波那契堆实现
#ifndef __BASE_H__ #define __BASE_H__ #include #include "binomial heap.h" #include "fibonacci_heap.h" using namespace std; /*********************************stack**********************************/ t原创 2013-07-22 17:37:52 · 1902 阅读 · 0 评论