Skip to content

Commit d8bdac5

Browse files
committed
[BAEL-9551] - Clean up code
1 parent ea52c02 commit d8bdac5

File tree

26 files changed

+36
-158
lines changed

26 files changed

+36
-158
lines changed

algorithms-genetic/roundUpToHundred/.gitignore

Lines changed: 0 additions & 1 deletion
This file was deleted.

algorithms-genetic/roundUpToHundred/src/com/java/src/RoundUpToHundred.java

Lines changed: 0 additions & 20 deletions
This file was deleted.

algorithms-genetic/roundUpToHundred/src/com/java/src/RoundUpToHundredTest.java

Lines changed: 0 additions & 14 deletions
This file was deleted.

algorithms-genetic/src/main/java/com/baeldung/algorithms/RunAlgorithm.java

Lines changed: 3 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -5,39 +5,29 @@
55
import com.baeldung.algorithms.ga.annealing.SimulatedAnnealing;
66
import com.baeldung.algorithms.ga.ant_colony.AntColonyOptimization;
77
import com.baeldung.algorithms.ga.binary.SimpleGeneticAlgorithm;
8-
import com.baeldung.algorithms.slope_one.SlopeOne;
98

109
public class RunAlgorithm {
1110

1211
public static void main(String[] args) throws InstantiationException, IllegalAccessException {
1312
Scanner in = new Scanner(System.in);
1413
System.out.println("Run algorithm:");
1514
System.out.println("1 - Simulated Annealing");
16-
System.out.println("2 - Slope One");
17-
System.out.println("3 - Simple Genetic Algorithm");
18-
System.out.println("4 - Ant Colony");
19-
System.out.println("5 - Dijkstra");
20-
System.out.println("6 - All pairs in an array that add up to a given sum");
15+
System.out.println("2 - Simple Genetic Algorithm");
16+
System.out.println("3 - Ant Colony");
2117
int decision = in.nextInt();
2218
switch (decision) {
2319
case 1:
2420
System.out.println(
2521
"Optimized distance for travel: " + SimulatedAnnealing.simulateAnnealing(10, 10000, 0.9995));
2622
break;
2723
case 2:
28-
SlopeOne.slopeOne(3);
29-
break;
30-
case 3:
3124
SimpleGeneticAlgorithm ga = new SimpleGeneticAlgorithm();
3225
ga.runAlgorithm(50, "1011000100000100010000100000100111001000000100000100000000001111");
3326
break;
34-
case 4:
27+
case 3:
3528
AntColonyOptimization antColony = new AntColonyOptimization(21);
3629
antColony.startAntOptimization();
3730
break;
38-
case 5:
39-
System.out.println("Please run the DijkstraAlgorithmTest.");
40-
break;
4131
default:
4232
System.out.println("Unknown option");
4333
break;

algorithms-miscellaneous-1/README.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,4 +9,5 @@
99
- [How to Find the Kth Largest Element in Java](http://www.baeldung.com/java-kth-largest-element)
1010
- [Multi-Swarm Optimization Algorithm in Java](http://www.baeldung.com/java-multi-swarm-algorithm)
1111
- [String Search Algorithms for Large Texts](http://www.baeldung.com/java-full-text-search-algorithms)
12-
- [Check If a String Contains All The Letters of The Alphabet](https://www.baeldung.com/java-string-contains-all-letters)
12+
- [Check If a String Contains All The Letters of The Alphabet](https://www.baeldung.com/java-string-contains-all-letters)
13+
- [Find the Middle Element of a Linked List](http://www.baeldung.com/java-linked-list-middle-element)

algorithms-miscellaneous-1/roundUpToHundred/.gitignore

Lines changed: 0 additions & 1 deletion
This file was deleted.

algorithms-miscellaneous-1/roundUpToHundred/src/com/java/src/RoundUpToHundredTest.java

Lines changed: 0 additions & 14 deletions
This file was deleted.

algorithms-miscellaneous-1/src/main/resources/maze/maze1.txt

Lines changed: 0 additions & 12 deletions
This file was deleted.

algorithms-miscellaneous-1/src/main/resources/maze/maze2.txt

Lines changed: 0 additions & 22 deletions
This file was deleted.

algorithms-miscellaneous-2/README.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,6 @@
1010
- [A Collaborative Filtering Recommendation System in Java](http://www.baeldung.com/java-collaborative-filtering-recommendations)
1111
- [Converting Between Roman and Arabic Numerals in Java](http://www.baeldung.com/java-convert-roman-arabic)
1212
- [Practical Java Examples of the Big O Notation](http://www.baeldung.com/java-algorithm-complexity)
13-
- [Find the Middle Element of a Linked List](http://www.baeldung.com/java-linked-list-middle-element)
1413
- [An Introduction to the Theory of Big-O Notation](http://www.baeldung.com/big-o-notation)
1514
- [Check If Two Rectangles Overlap In Java](https://www.baeldung.com/java-check-if-two-rectangles-overlap)
1615
- [Calculate the Distance Between Two Points in Java](https://www.baeldung.com/java-distance-between-two-points)

0 commit comments

Comments
 (0)