Recursion or Recurse

From http://www.cprogramming.com/ “Recursion is a programming technique that allows the programmer to express operations in terms of themselves. In C++, this takes the form of a function that calls itself. A useful way to think of recursive functions is to imagine Read more

MST (Kruskals Algorithm)

01 /* 02 MST(Kruskal’s) 03 */ 04 05 #include<iostream.h> 06 #include<stdlib.h> 07 08 #define MAXN 102 09 10 int P[MAXN], Rank[MAXN]; 11 12 int Node, edg, Cost; 13 14 struct edge { 15 int u, v; 16 int cost; 17 }; 18 19 edge Edge[MAXN*MAXN]; Read more