1) Added Disjoint Set data structure for union/find
2) Added prim.js and kruskal.js for the algorithms
3) created "mst_test_kruskal_prim.json" under "testfiles" folder for testcases.
Here are the input and outputs:
Input:
Testcase0 and Testcase1 taken from gfg:(attaching here for crosschecking with output):
1) Added Disjoint Set data structure for union/find 2) Added prim.js and kruskal.js for the algorithms 3) created "mst_test_kruskal_prim.json" under "testfiles" folder for testcases.
Here are the input and outputs:
Input:
Testcase0 and Testcase1 taken from gfg:(attaching here for crosschecking with output):
Output :
Fixes #8