One Paragraph of project description goes here
These instructions will get you a copy of the project up and running on your local machine for development and testing purposes. See deployment for notes on how to deploy the project on a live system.
| #include<bits/stdc++.h> | |
| using namespace std; | |
| struct node { | |
| int parent; | |
| int rank; | |
| }; | |
| struct Edge { | |
| int src; | |
| int dst; |
| #include<bits/stdc++.h> | |
| using namespace std; | |
| #define V 6 //No of vertices | |
| int selectMinVertex(vector<int>& value,vector<bool>& setMST) | |
| { | |
| int minimum = INT_MAX; | |
| int vertex; | |
| for(int i=0;i<V;++i) |
| #include<bits/stdc++.h> | |
| using namespace std; | |
| struct node { | |
| int parent; | |
| int rank; | |
| }; | |
| vector<node> dsuf; | |
| //FIND operation |
| #include<bits/stdc++.h> | |
| using namespace std; | |
| vector<int> dsuf; | |
| //FIND operation | |
| int find(int v) | |
| { | |
| if(dsuf[v]==-1) | |
| return v; | |
| return find(dsuf[v]); |