RGITX
Home
WEB LAB
ADA
⚠️ This action is not allowed during the exam.
ANALYSIS AND DESIGN ALGORITHM
on March 05, 2025
PROGRAM 1
Kruskal's Algorithm
#include
int ne=1,min_cost=0; void main() { int n,i,j,min,a,b,u,v; int cost[20][20],parent[20]; printf("Enter the no. of vertices:"); }
Copy
PROGRAM 2
Prim's Algorithm
#include
int ne=1,min_cost=0; void main() { int n,i,j,min,cost[20][20],u,v,source,visited[20]; printf("Enter the no. of vertices:"); }
Copy
PROGRAM 3a
Floyd's Algorithm
#include
void floyd(int a[10][10],int n) { int i,j,k; }
Copy
PROGRAM 3b
Warshall's Algorithm
#include
int a[10][10],p[10][10]; void path() { }
Copy