use of edu.princeton.cs.algs4.In in project AlgorithmsSolutions by Allenskoo856.
the class PrimMST method main.
public static void main(String[] args) {
In in = new In(args[0]);
EdgeWeightedGraph G = new EdgeWeightedGraph(in);
PrimMST mst = new PrimMST(G);
for (Edge e : mst.edges()) {
StdOut.println(e);
}
StdOut.println(mst.weight());
}
use of edu.princeton.cs.algs4.In in project AlgorithmsSolutions by Allenskoo856.
the class Ex11 method main.
public static void main(String[] args) {
String[] a = new In().readAllStrings();
sort(a);
assert isSorted(a);
show(a);
}
use of edu.princeton.cs.algs4.In in project AlgorithmsSolutions by Allenskoo856.
the class MergeBU method main.
public static void main(String[] args) {
String[] a = new In().readAllStrings();
sort(a);
assert isSorted(a);
show(a);
}
use of edu.princeton.cs.algs4.In in project AlgorithmsSolutions by Allenskoo856.
the class Quick3way method main.
public static void main(String[] args) {
String[] a = new In().readAllStrings();
sort(a);
assert isSorted(a);
show(a);
}
use of edu.princeton.cs.algs4.In in project AlgorithmsSolutions by Allenskoo856.
the class Quick method main.
public static void main(String[] args) {
String[] a = new In().readAllStrings();
sort(a);
assert isSorted(a);
show(a);
}
Aggregations