BAEL-2797 new domain "math"created, sections moved
This commit is contained in:
@@ -1,10 +1,10 @@
|
||||
package com.baeldung.algorithms;
|
||||
package com.baeldung.math;
|
||||
|
||||
import java.util.Scanner;
|
||||
|
||||
import com.baeldung.algorithms.ga.annealing.SimulatedAnnealing;
|
||||
import com.baeldung.algorithms.ga.ant_colony.AntColonyOptimization;
|
||||
import com.baeldung.algorithms.ga.binary.SimpleGeneticAlgorithm;
|
||||
import com.baeldung.math.ga.annealing.SimulatedAnnealing;
|
||||
import com.baeldung.math.ga.ant_colony.AntColonyOptimization;
|
||||
import com.baeldung.math.ga.binary.SimpleGeneticAlgorithm;
|
||||
|
||||
public class RunAlgorithm {
|
||||
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
package com.baeldung.algorithms.ga.annealing;
|
||||
package com.baeldung.math.ga.annealing;
|
||||
|
||||
import lombok.Data;
|
||||
|
||||
|
||||
+1
-1
@@ -1,4 +1,4 @@
|
||||
package com.baeldung.algorithms.ga.annealing;
|
||||
package com.baeldung.math.ga.annealing;
|
||||
|
||||
public class SimulatedAnnealing {
|
||||
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
package com.baeldung.algorithms.ga.annealing;
|
||||
package com.baeldung.math.ga.annealing;
|
||||
|
||||
import java.util.ArrayList;
|
||||
import java.util.Collections;
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
package com.baeldung.algorithms.ga.ant_colony;
|
||||
package com.baeldung.math.ga.ant_colony;
|
||||
|
||||
public class Ant {
|
||||
|
||||
|
||||
+1
-1
@@ -1,4 +1,4 @@
|
||||
package com.baeldung.algorithms.ga.ant_colony;
|
||||
package com.baeldung.math.ga.ant_colony;
|
||||
|
||||
import java.util.ArrayList;
|
||||
import java.util.Arrays;
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
package com.baeldung.algorithms.ga.binary;
|
||||
package com.baeldung.math.ga.binary;
|
||||
|
||||
import lombok.Data;
|
||||
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
package com.baeldung.algorithms.ga.binary;
|
||||
package com.baeldung.math.ga.binary;
|
||||
|
||||
import java.util.ArrayList;
|
||||
import java.util.List;
|
||||
|
||||
+1
-1
@@ -1,4 +1,4 @@
|
||||
package com.baeldung.algorithms.ga.binary;
|
||||
package com.baeldung.math.ga.binary;
|
||||
|
||||
import lombok.Data;
|
||||
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
package com.baeldung.algorithms.ga.jenetics;
|
||||
package com.baeldung.math.ga.jenetics;
|
||||
|
||||
import static org.jenetics.engine.EvolutionResult.toBestPhenotype;
|
||||
import static org.jenetics.engine.limit.bySteadyFitness;
|
||||
|
||||
+1
-1
@@ -1,4 +1,4 @@
|
||||
package com.baeldung.algorithms.ga.jenetics;
|
||||
package com.baeldung.math.ga.jenetics;
|
||||
|
||||
import java.util.function.Function;
|
||||
|
||||
|
||||
+1
-1
@@ -1,4 +1,4 @@
|
||||
package com.baeldung.algorithms.ga.jenetics;
|
||||
package com.baeldung.math.ga.jenetics;
|
||||
|
||||
import java.util.Random;
|
||||
import java.util.stream.Collector;
|
||||
|
||||
+1
-1
@@ -1,4 +1,4 @@
|
||||
package com.baeldung.algorithms.ga.jenetics;
|
||||
package com.baeldung.math.ga.jenetics;
|
||||
|
||||
import org.jenetics.BitChromosome;
|
||||
import org.jenetics.BitGene;
|
||||
|
||||
+1
-1
@@ -1,4 +1,4 @@
|
||||
package com.baeldung.algorithms.ga.jenetics;
|
||||
package com.baeldung.math.ga.jenetics;
|
||||
|
||||
import static java.util.Objects.requireNonNull;
|
||||
|
||||
|
||||
+1
-1
@@ -1,4 +1,4 @@
|
||||
package com.baeldung.algorithms.ga.jenetics;
|
||||
package com.baeldung.math.ga.jenetics;
|
||||
|
||||
import static java.util.Objects.requireNonNull;
|
||||
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
package com.baeldung.algorithms.ga.jenetics;
|
||||
package com.baeldung.math.ga.jenetics;
|
||||
|
||||
import static java.util.Objects.requireNonNull;
|
||||
|
||||
|
||||
+1
-1
@@ -1,4 +1,4 @@
|
||||
package com.baeldung.algorithms.ga.jenetics;
|
||||
package com.baeldung.math.ga.jenetics;
|
||||
|
||||
import static java.lang.Math.PI;
|
||||
import static java.lang.Math.abs;
|
||||
|
||||
+2
-2
@@ -1,9 +1,9 @@
|
||||
package com.baeldung.algorithms;
|
||||
package com.baeldung.math;
|
||||
|
||||
import org.junit.Assert;
|
||||
import org.junit.Test;
|
||||
|
||||
import com.baeldung.algorithms.ga.ant_colony.AntColonyOptimization;
|
||||
import com.baeldung.math.ga.ant_colony.AntColonyOptimization;
|
||||
|
||||
public class AntColonyOptimizationLongRunningUnitTest {
|
||||
|
||||
|
||||
+2
-2
@@ -1,9 +1,9 @@
|
||||
package com.baeldung.algorithms;
|
||||
package com.baeldung.math;
|
||||
|
||||
import org.junit.Assert;
|
||||
import org.junit.Test;
|
||||
|
||||
import com.baeldung.algorithms.ga.binary.SimpleGeneticAlgorithm;
|
||||
import com.baeldung.math.ga.binary.SimpleGeneticAlgorithm;
|
||||
|
||||
public class BinaryGeneticAlgorithmLongRunningUnitTest {
|
||||
|
||||
|
||||
+2
-2
@@ -1,9 +1,9 @@
|
||||
package com.baeldung.algorithms;
|
||||
package com.baeldung.math;
|
||||
|
||||
import org.junit.Assert;
|
||||
import org.junit.Test;
|
||||
|
||||
import com.baeldung.algorithms.ga.annealing.SimulatedAnnealing;
|
||||
import com.baeldung.math.ga.annealing.SimulatedAnnealing;
|
||||
|
||||
public class SimulatedAnnealingLongRunningUnitTest {
|
||||
|
||||
|
||||
+1
-1
@@ -1,4 +1,4 @@
|
||||
package com.baeldung.algorithms.automata;
|
||||
package com.baeldung.math.automata;
|
||||
|
||||
/**
|
||||
* Finite state machine.
|
||||
+1
-1
@@ -1,4 +1,4 @@
|
||||
package com.baeldung.algorithms.automata;
|
||||
package com.baeldung.math.automata;
|
||||
|
||||
/**
|
||||
* Default implementation of a finite state machine.
|
||||
+1
-1
@@ -1,4 +1,4 @@
|
||||
package com.baeldung.algorithms.automata;
|
||||
package com.baeldung.math.automata;
|
||||
|
||||
import java.util.ArrayList;
|
||||
import java.util.List;
|
||||
+1
-1
@@ -1,4 +1,4 @@
|
||||
package com.baeldung.algorithms.automata;
|
||||
package com.baeldung.math.automata;
|
||||
|
||||
|
||||
/**
|
||||
+1
-1
@@ -1,4 +1,4 @@
|
||||
package com.baeldung.algorithms.automata;
|
||||
package com.baeldung.math.automata;
|
||||
|
||||
/**
|
||||
* State. Part of a finite state machine.
|
||||
+1
-1
@@ -1,4 +1,4 @@
|
||||
package com.baeldung.algorithms.automata;
|
||||
package com.baeldung.math.automata;
|
||||
|
||||
/**
|
||||
* Transition in a finite State machine.
|
||||
+1
-1
@@ -1,4 +1,4 @@
|
||||
package com.baeldung.algorithms.binarysearch;
|
||||
package com.baeldung.math.binarysearch;
|
||||
|
||||
import java.util.Arrays;
|
||||
import java.util.Collections;
|
||||
+1
-1
@@ -1,4 +1,4 @@
|
||||
package com.baeldung.algorithms.combination;
|
||||
package com.baeldung.math.combination;
|
||||
|
||||
import java.util.Arrays;
|
||||
import java.util.Iterator;
|
||||
+1
-1
@@ -1,4 +1,4 @@
|
||||
package com.baeldung.algorithms.combination;
|
||||
package com.baeldung.math.combination;
|
||||
|
||||
import org.paukov.combinatorics3.Generator;
|
||||
|
||||
+1
-1
@@ -1,4 +1,4 @@
|
||||
package com.baeldung.algorithms.combination;
|
||||
package com.baeldung.math.combination;
|
||||
|
||||
import java.util.Arrays;
|
||||
import java.util.Set;
|
||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user