Fix package declarations (#2576)

This commit is contained in:
Aitor Fidalgo Sánchez
2021-10-16 16:43:51 +03:00
committed by GitHub
parent 60a0c23544
commit 2b7a977cc8
42 changed files with 68 additions and 55 deletions

View File

@@ -2,9 +2,8 @@
Time Complexity = O(E), where E is equal to the number of edges
*/
package Graphs;
package DataStructures.Graphs;
import java.lang.reflect.Array;
import java.util.*;
public class A_Star {

View File

@@ -4,9 +4,6 @@ for better understanding
*/
package DataStructures.Graphs;
import java.util.*;
import java.io.*;
class dijkstras{
int k=9;

View File

@@ -1,4 +1,4 @@
package Graphs;
package DataStructures.Graphs;
import java.util.ArrayList;
import java.util.Map;
@@ -104,7 +104,6 @@ class TopologicalSort<E extends Comparable<E>>{
*/
ArrayList<E> topSortOrder(){
calculateInDegree();
int count = 0;
Queue<E> q = new LinkedList<E>();
for(E vertex: inDegree.keySet()){

View File

@@ -1,3 +1,5 @@
package DataStructures.Graphs;
// Problem -> Connect all the edges with the minimum cost.
// Possible Solution -> Kruskal Algorithm (KA), KA finds the minimum-spanning-tree, which means, the
// group of edges with the minimum sum of their weights that connect the whole graph.