Skip to content

Commit 210b3dc

Browse files
author
myselfshravan
committed
.
1 parent 7d0f15d commit 210b3dc

File tree

3 files changed

+6
-5
lines changed

3 files changed

+6
-5
lines changed

10.krushkal.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ void main()
2626
}
2727
}
2828

29-
printf("The edges of Minimum Cost Spanning Tree are\n");
29+
printf("\nThe edges of Minimum Cost Spanning Tree are\n");
3030
while (ne < n)
3131
{
3232
for (i = 1, min = 999; i <= n; i++)

12.Travelling_Salesman.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ void get()
1010
printf("\nEnter Cost Matrix: \n");
1111
for (i = 0; i < n; i++)
1212
{
13-
// printf("\nEnter Elements of Row #: %d\n", i + 1);
13+
// printf("Enter Elements of Row #: %d\n", i + 1);
1414
for (j = 0; j < n; j++)
1515
scanf("%d", &a[i][j]);
1616
visited[i] = 0;

README.md

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -211,7 +211,7 @@ Total cost of spanning tree = 8
211211
Example 1:
212212

213213
```bash
214-
Kruskal's algorithm in C
214+
Kruskals algorithm in C
215215
========================
216216
Enter the no. of vertices: 5
217217
Enter the cost adjacency matrix:
@@ -220,6 +220,7 @@ Enter the cost adjacency matrix:
220220
2 3 0 6 5
221221
0 0 6 0 0
222222
1 1 5 0 0
223+
223224
The edges of Minimum Cost Spanning Tree are
224225
1 edge (1,2) = 1
225226
2 edge (1,5) = 1
@@ -230,7 +231,7 @@ Minimum cost = 10
230231
```
231232
Example 2:
232233
```bash
233-
Kruskal's algorithm in C
234+
Kruskals algorithm in C
234235
========================
235236
Enter the no. of vertices: 6
236237
Enter the cost adjacency matrix:
@@ -240,6 +241,7 @@ Enter the cost adjacency matrix:
240241
6 0 5 0 0 2
241242
0 3 6 0 0 6
242243
0 0 4 2 6 0
244+
243245
The edges of Minimum Cost Spanning Tree are
244246
1 edge (1,3) = 1
245247
2 edge (4,6) = 2
@@ -277,7 +279,6 @@ Path= 4<-2<-3<-0
277279
```bash
278280
Enter No.of Cities: 6
279281
Enter Cost Matrix:
280-
281282
Enter Elements of Row #: 1
282283
99 10 15 20 99 8
283284
Enter Elements of Row #: 2

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy