算法导论
文章平均质量分 77
mysunnnyday
这个作者很懒,什么都没留下…
展开
-
二项堆
// binomial heap.cpp : Defines the entry point for the console application.//#include "stdafx.h"templatestruct bh_node { struct bh_node *child; struct bh_node *parent; struct bh_node *siblin原创 2013-07-16 17:52:36 · 499 阅读 · 0 评论 -
图
#ifndef __BASE_H__#define __BASE_H__#include #include "binomial heap.h"using namespace std;/*********************************stack**********************************/templateclass stack{public原创 2013-07-19 18:29:53 · 491 阅读 · 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 · 514 阅读 · 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 · 1725 阅读 · 0 评论