摘要:
1 #include 2 #include 3 #include 4 5 #define MaxVertexNodeNumSize 1000 6 #define MaxVertexNodeNameSize 100 7 8 struct VertexBodyNode 9 { 10 char VertexName[MaxVertexNodeNa... 阅读全文
posted @ 2018-08-05 22:00
Asurudo
阅读(233)
评论(0)
推荐(0)
摘要:
1 #include 2 #include 3 #include 4 5 #define MaxVertexNodeNumSize 1000 6 #define MaxVertexNodeNameSize 100 7 8 struct VertexBodyNode 9 { 10 char VertexName[MaxVertexNodeNa... 阅读全文
posted @ 2018-08-05 22:00
Asurudo
阅读(298)
评论(0)
推荐(0)
摘要:
1 #include 2 #include 3 #include 4 #include 5 6 #define MaxVertexNodeNumSize 1000 7 #define MaxVertexNodeNameSize 100 8 #define INFINITY 10000 9 10 struct VertexBodyNode 11 ... 阅读全文
posted @ 2018-08-05 21:59
Asurudo
阅读(244)
评论(0)
推荐(1)
摘要:
1 #include 2 #include 3 #include 4 5 #define MaxVertexNodeNumSize 1000 6 #define MaxVertexNodeNameSize 100 7 8 struct VertexNode 9 { 10 char VertexName[MaxVertexNodeNameSi... 阅读全文
posted @ 2018-08-05 21:59
Asurudo
阅读(254)
评论(0)
推荐(0)
摘要:
1 #include 2 #include 3 #include 4 #include 5 6 #define MaxVertexNodeNumSize 1000 7 #define MaxVertexNodeNameSize 100 8 9 struct VertexBodyNode 10 { 11 char VertexName[M... 阅读全文
posted @ 2018-08-05 21:58
Asurudo
阅读(284)
评论(0)
推荐(0)
摘要:
1 #include 2 #include 3 #include 4 #include 5 6 #define MaxVertexNodeNumSize 1000 7 #define MaxVertexNodeNameSize 100 8 9 struct VertexBodyNode 10 { 11 char VertexName[M... 阅读全文
posted @ 2018-08-05 21:57
Asurudo
阅读(315)
评论(0)
推荐(0)
摘要:
1 #include 2 #include 3 #include 4 #include 5 6 #define INFINITY 0x3f3f3f3f 7 #define MaxVertexNodeNumSize 1000 8 #define MaxVertexNodeNameSize 100 9 10 struct VertexBodyNode... 阅读全文
posted @ 2018-08-05 21:57
Asurudo
阅读(284)
评论(0)
推荐(0)
摘要:
1 #include 2 #include 3 #include 4 #include 5 6 #define MaxVertexNodeNumSize 1000 7 #define MaxVertexNodeNameSize 100 8 9 struct VertexBodyNode 10 { 11 char VertexName[M... 阅读全文
posted @ 2018-08-05 21:56
Asurudo
阅读(278)
评论(0)
推荐(0)
摘要:
1 #include 2 #include 3 #include 4 #include 5 6 #define MaxVertexNodeNumSize 1000 7 #define MaxVertexNodeNameSize 100 8 9 struct VertexBodyNode 10 { 11 char VertexName[M... 阅读全文
posted @ 2018-08-05 21:55
Asurudo
阅读(568)
评论(0)
推荐(0)
摘要:
1 #include 2 3 typedef int ElementType; 4 5 struct BinarySearchTreeNode 6 { 7 ElementType Element; 8 struct BinarySearchTreeNode *Left; 9 struct BinarySearchTreeNode *Right; 1... 阅读全文
posted @ 2018-08-05 21:54
Asurudo
阅读(1305)
评论(0)
推荐(0)
摘要:
1 #include 2 3 typedef int ElementType; 4 5 struct BinarySearchTreeNode 6 { 7 ElementType Element; 8 struct BinarySearchTreeNode *Left; 9 struct BinarySearchTreeNode *Right; 1... 阅读全文
posted @ 2018-08-05 21:54
Asurudo
阅读(214)
评论(0)
推荐(0)
摘要:
1 #include 2 3 typedef int ElementType; 4 5 struct BinarySearchTreeNode 6 { 7 ElementType Element; 8 struct BinarySearchTreeNode *Left; 9 struct BinarySearchTreeNode *Right; 1... 阅读全文
posted @ 2018-08-05 21:53
Asurudo
阅读(439)
评论(0)
推荐(0)
摘要:
1 #include 2 #include 3 4 #define MaxSize 1000 5 6 typedef int ElementType; 7 8 struct BinarySearchTreeNode 9 { 10 ElementType Element; 11 struct BinarySearchTreeNode... 阅读全文
posted @ 2018-08-05 21:52
Asurudo
阅读(226)
评论(0)
推荐(0)
摘要:
1 #include 2 #include 3 4 typedef int ElementType; 5 6 struct BinarySearchTreeNode 7 { 8 ElementType Element; 9 struct BinarySearchTreeNode *Left; 10 struct BinarySearchTreeN... 阅读全文
posted @ 2018-08-05 21:51
Asurudo
阅读(189)
评论(0)
推荐(0)
摘要:
1 #include 2 #include 3 4 #define MaxSize 1000 5 #define MAX(a,b) ( (a) > (b) ? (a) : (b) ) 6 7 //set empty Treenode's height is 0,according to WIKIPEDIA 8 typedef int ElementT... 阅读全文
posted @ 2018-08-05 21:50
Asurudo
阅读(232)
评论(0)
推荐(0)
摘要:
1 #include 2 #include 3 4 #define MAXINPUTNUM 5000 5 6 typedef int ElementType; 7 8 void BucketSort(ElementType *Array,int ArrayLen) 9 { 10 int i; 11 int ArrayEnd; 12 int Bu... 阅读全文
posted @ 2018-08-05 21:49
Asurudo
阅读(150)
评论(0)
推荐(0)
摘要:
1 #include 2 #include 3 4 typedef int ElementType; 5 6 struct StackNode 7 { 8 ElementType Element; 9 struct StackNode *Next; 10 }; 11 12 int StackIsEmpty(struct Stac... 阅读全文
posted @ 2018-08-05 21:49
Asurudo
阅读(220)
评论(0)
推荐(0)
摘要:
1 #include 2 3 #define CUTOFF 3 4 5 typedef int ElementType; 6 7 void SwapTwoNum(ElementType *Num_1,ElementType *Num_2) 8 { 9 int NumTemp = *Num_1; 10 *Num_1 = *Num_2; ... 阅读全文
posted @ 2018-08-05 21:48
Asurudo
阅读(163)
评论(0)
推荐(0)
摘要:
1 #include 2 3 typedef int ElementType; 4 5 void InsertionSort(ElementType *Array,int ArrayLen) 6 { 7 int i,j; 8 ElementType ExtractElem; 9 for(i = 1;i = 0 && ExtractElem < Ar... 阅读全文
posted @ 2018-08-05 21:48
Asurudo
阅读(124)
评论(0)
推荐(0)
摘要:
1 #include 2 #include 3 4 typedef int ElementType; 5 6 void _Merge(ElementType *Array,ElementType *TmpArray,int LeftStart,int RightStart,int RightEnd) 7 { 8 int i; 9 int ArrayLen... 阅读全文
posted @ 2018-08-05 21:47
Asurudo
阅读(135)
评论(0)
推荐(0)
摘要:
1 #include 2 #include 3 #include 4 5 struct Struction 6 { 7 double one; 8 int another; 9 }; 10 11 int CmpInt_1(const void *a,const void *b) 12 { 13 return *(int... 阅读全文
posted @ 2018-08-05 21:46
Asurudo
阅读(233)
评论(0)
推荐(0)
摘要:
1 #include 2 3 typedef int ElementType; 4 5 void SwapTwoNum(ElementType *Num_1,ElementType *Num_2) 6 { 7 int NumTemp = *Num_1; 8 *Num_1 = *Num_2; 9 *Num_2 = NumTemp; 10 } 11 ... 阅读全文
posted @ 2018-08-05 21:45
Asurudo
阅读(194)
评论(0)
推荐(0)
摘要:
1 #include <stdio.h> 2 #include <malloc.h> 3 4 #define LeftChild(i) (2*(i)+1) 5 6 typedef int ElementType; 7 8 void SwapTwoNum(ElementType *Num_1,Elem 阅读全文
posted @ 2018-08-05 21:42
Asurudo
阅读(138)
评论(0)
推荐(0)
摘要:
#include #include #include typedef int ElementType; #define DIGIT 31 #define RADIX_10 10 int GetNumInPos(ElementType Num,int Pos) { ElementType Temp = pow(10,Pos-1); return ((Num/Temp) ... 阅读全文
posted @ 2018-08-05 21:40
Asurudo
阅读(171)
评论(0)
推荐(0)
摘要:
#include typedef int ElementType; void SwapTwoNum(ElementType *Num_1,ElementType *Num_2) { int NumTemp = *Num_1; *Num_1 = *Num_2; *Num_2 = NumTemp; } void BubbleSort(ElementType *Arra... 阅读全文
posted @ 2018-08-05 21:39
Asurudo
阅读(140)
评论(0)
推荐(0)
摘要:
#include #include typedef int ElementType; struct DoubleCircularListNode { ElementType Element; struct DoubleCircularListNode *Prior; struct DoubleCircularListNode *Next; }; struct D... 阅读全文
posted @ 2018-08-05 21:35
Asurudo
阅读(205)
评论(0)
推荐(0)
摘要:
#include #include typedef int ElementType; struct SingleListNode { ElementType Element; struct SingleListNode *Next; }; struct SingleListNode* SingleListInit() { struct SingleListNod... 阅读全文
posted @ 2018-08-05 21:34
Asurudo
阅读(143)
评论(0)
推荐(0)
摘要:
#include #include //Real capacity is CircularQueueMaxSize -1 #define CircularQueueMaxSize 1000 typedef int ElementType; struct CircularQueue { ElementType QueueData[CircularQueueMaxSize]; ... 阅读全文
posted @ 2018-08-05 21:32
Asurudo
阅读(162)
评论(0)
推荐(0)
摘要:
#include #include #include #include #define MaxSize 10000 bool _DividendIsLarger(int *Dividend,int *Divisor,int DividendLen,int DivisorLen) { int DivisorLenEnd; if(DividendLen = 0;Divis... 阅读全文
posted @ 2018-08-05 21:31
Asurudo
阅读(235)
评论(0)
推荐(0)
摘要:
#include #include #include //if want to change MinHeap into MaxHeap,need to change four places //MaxHeap INT_MAX #define MINDATA INT_MIN typedef int ElementType; struct MinHeap { in... 阅读全文
posted @ 2018-08-05 21:31
Asurudo
阅读(177)
评论(0)
推荐(0)
摘要:
#include #include int BigNumFactorial(int InputOrderMultiplier) { int i; double Result = 0; for(i = 1;i <= InputOrderMultiplier;i ++) { Result += log10(i); } return... 阅读全文
posted @ 2018-08-05 21:29
Asurudo
阅读(151)
评论(0)
推荐(0)
摘要:
#include #include #include #define MaxSize 1000000 char *BigNumFactorial(int InputOrderMultiplier) { int *TempResult = malloc(MaxSize*sizeof(int)); int TempResultEnd; memset(TempResu... 阅读全文
posted @ 2018-08-05 21:29
Asurudo
阅读(174)
评论(0)
推荐(0)
摘要:
#include #include #include #define MaxSize 1000 char *TwoBigNumPlus(char *InputAddend_1,char *InputAddend_2) { char *Result = malloc(MaxSize*sizeof(char)); int ResultEnd = 0; in... 阅读全文
posted @ 2018-08-05 21:28
Asurudo
阅读(199)
评论(0)
推荐(0)
摘要:
#include #include #include #include #define MaxSize 1000 bool _TwoSubStrcmp(char* Minuend,char* Subtrahend) { int MinuendLen = strlen(Minuend); int SubtrahendLen = strlen(Subtrahend); ... 阅读全文
posted @ 2018-08-05 21:26
Asurudo
阅读(180)
评论(0)
推荐(0)
摘要:
#include #include #include #define MaxSize 1000 char *TwoBigNumMult(char *InputMultiplier_1,char *InputMultiplier_2) { int *TempResult = malloc(MaxSize*sizeof(int)); int TempResultEnd = ... 阅读全文
posted @ 2018-08-05 21:25
Asurudo
阅读(162)
评论(0)
推荐(0)
摘要:
#include #include #include #include struct UnionFindSet { int *ID; int *Auxiliary; int GroupSum; int WeightOriginalTotal; }; struct UnionFindSet* UnionFindSetInit(int WeightTota... 阅读全文
posted @ 2018-08-05 21:24
Asurudo
阅读(206)
评论(0)
推荐(0)
摘要:
#include #include #include #include struct UnionFindSet { int *ID; int GroupSum; int WeightOriginalTotal; }; struct UnionFindSet* UnionFindSetInit(int WeightTotal) { struct Unio... 阅读全文
posted @ 2018-08-05 21:23
Asurudo
阅读(245)
评论(0)
推荐(0)
摘要:
#include #include #include #include struct UnionFindSet { int *ID; int GroupSum; int WeightOriginalTotal; }; struct UnionFindSet* UnionFindSetInit(int WeightTotal) { struct Unio... 阅读全文
posted @ 2018-08-05 21:22
Asurudo
阅读(264)
评论(0)
推荐(0)

浙公网安备 33010602011771号