From 94bf17615c39fbf87d901d318f76fc7466d53dc6 Mon Sep 17 00:00:00 2001 From: "anilkivilcim.eray" Date: Wed, 3 Apr 2019 00:37:24 +0300 Subject: [PATCH 1/7] BAEL-2797 new domain "math"created, sections moved --- .../com/baeldung/algorithms/RunAlgorithm.java | 8 +- .../algorithms/ga/annealing/City.java | 2 +- .../ga/annealing/SimulatedAnnealing.java | 2 +- .../algorithms/ga/annealing/Travel.java | 2 +- .../algorithms/ga/ant_colony/Ant.java | 2 +- .../ga/ant_colony/AntColonyOptimization.java | 2 +- .../algorithms/ga/binary/Individual.java | 2 +- .../algorithms/ga/binary/Population.java | 2 +- .../ga/binary/SimpleGeneticAlgorithm.java | 2 +- .../algorithms/ga/jenetics/Knapsack.java | 2 +- .../algorithms/ga/jenetics/KnapsackFF.java | 2 +- .../algorithms/ga/jenetics/KnapsackItem.java | 2 +- .../ga/jenetics/SimpleGeneticAlgorithm.java | 2 +- .../ga/jenetics/SpringsteenProblem.java | 2 +- .../ga/jenetics/SpringsteenRecord.java | 2 +- .../algorithms/ga/jenetics/SubsetSum.java | 2 +- .../ga/jenetics/TravelingSalesman.java | 2 +- ...ColonyOptimizationLongRunningUnitTest.java | 4 +- ...ryGeneticAlgorithmLongRunningUnitTest.java | 4 +- ...SimulatedAnnealingLongRunningUnitTest.java | 4 +- .../automata/FiniteStateMachine.java | 2 +- .../automata/RtFiniteStateMachine.java | 2 +- .../automata/RtState.java | 2 +- .../automata/RtTransition.java | 2 +- .../{algorithms => math}/automata/State.java | 2 +- .../automata/Transition.java | 2 +- .../binarysearch/BinarySearch.java | 2 +- .../ApacheCommonsCombinationGenerator.java | 2 +- .../CombinatoricsLibCombinationGenerator.java | 2 +- .../GuavaCombinationsGenerator.java | 2 +- .../IterativeCombinationGenerator.java | 2 +- ...electionRecursiveCombinationGenerator.java | 2 +- .../SetRecursiveCombinationGenerator.java | 2 +- .../enumstatemachine/LeaveRequestState.java | 2 +- .../factorial/Factorial.java | 2 +- .../hillclimbing/HillClimbing.java | 2 +- .../hillclimbing/State.java | 2 +- .../kthlargest/FindKthLargest.java | 2 +- .../mcts/montecarlo/MonteCarloTreeSearch.java | 8 +- .../mcts/montecarlo/State.java | 6 +- .../mcts/montecarlo/UCT.java | 5 +- .../mcts/tictactoe/Board.java | 3 +- .../mcts/tictactoe/Position.java | 2 +- .../{algorithms => math}/mcts/tree/Node.java | 4 +- .../{algorithms => math}/mcts/tree/Tree.java | 2 +- .../MiddleElementLookup.java | 2 +- .../middleelementlookup/Node.java | 2 +- .../minimax/GameOfBones.java | 2 +- .../{algorithms => math}/minimax/MiniMax.java | 2 +- .../{algorithms => math}/minimax/Node.java | 2 +- .../{algorithms => math}/minimax/Tree.java | 2 +- .../multiswarm/Constants.java | 2 +- .../multiswarm/FitnessFunction.java | 2 +- .../multiswarm/Multiswarm.java | 2 +- .../multiswarm/Particle.java | 2 +- .../multiswarm/Swarm.java | 2 +- .../permutation/Permutation.java | 2 +- .../string/EnglishAlphabetLetters.java | 2 +- ...ongestSubstringNonRepeatingCharacters.java | 2 +- .../string/SubstringPalindrome.java | 2 +- .../string/search/StringSearchAlgorithms.java | 2 +- .../LinkedListFindMiddle.java | 2 +- .../twopointertechnique/MyNode.java | 2 +- .../twopointertechnique/RotateArray.java | 2 +- .../twopointertechnique/TwoSum.java | 2 +- .../HillClimbingAlgorithmUnitTest.java | 6 +- .../MiddleElementLookupUnitTest.java | 6 +- ...FiniteStateMachineLongRunningUnitTest.java | 4 +- .../StringSearchAlgorithmsUnitTest.java | 4 +- .../binarysearch/BinarySearchUnitTest.java | 3 +- .../combination/CombinationUnitTest.java | 2 +- .../LeaveRequestStateUnitTest.java | 2 +- .../factorial/FactorialUnitTest.java | 2 +- .../kthlargest/FindKthLargestUnitTest.java | 2 +- .../mcts/MCTSUnitTest.java | 14 +-- .../minimax/MinimaxUnitTest.java | 4 +- .../multiswarm/LolFitnessFunction.java | 2 +- .../multiswarm/MultiswarmUnitTest.java | 4 +- .../EnglishAlphabetLettersUnitTest.java | 2 +- ...bstringNonRepeatingCharactersUnitTest.java | 6 +- .../string/SubstringPalindromeUnitTest.java | 2 +- .../support/MayFailRule.java | 2 +- .../LinkedListFindMiddleUnitTest.java | 2 +- .../RotateArrayUnitTest.java | 2 +- .../twopointertechnique/TwoSumUnitTest.java | 2 +- .../com/baeldung/algorithms/RunAlgorithm.java | 4 +- .../conversion/HexStringConverter.java | 2 +- .../editdistance/EditDistanceBase.java | 2 +- .../EditDistanceDynamicProgramming.java | 2 +- .../editdistance/EditDistanceRecursive.java | 2 +- .../algorithms/ga/dijkstra/Dijkstra.java | 2 +- .../algorithms/ga/dijkstra/Graph.java | 2 +- .../baeldung/algorithms/ga/dijkstra/Node.java | 2 +- .../linkedlist/CycleDetectionBruteForce.java | 2 +- .../CycleDetectionByFastAndSlowIterators.java | 2 +- .../linkedlist/CycleDetectionByHashing.java | 2 +- .../linkedlist/CycleDetectionResult.java | 2 +- .../linkedlist/CycleRemovalBruteForce.java | 2 +- .../CycleRemovalByCountingLoopNodes.java | 2 +- .../CycleRemovalWithoutCountingLoopNodes.java | 2 +- .../baeldung/algorithms/linkedlist/Node.java | 2 +- .../algorithms/maze/solver/BFSMazeSolver.java | 2 +- .../algorithms/maze/solver/Coordinate.java | 2 +- .../algorithms/maze/solver/DFSMazeSolver.java | 2 +- .../baeldung/algorithms/maze/solver/Maze.java | 2 +- .../algorithms/maze/solver/MazeDriver.java | 2 +- .../NumberWordConverter.java | 2 +- .../relativelyprime/RelativelyPrime.java | 2 +- .../algorithms/reversingtree/TreeNode.java | 2 +- .../reversingtree/TreeReverser.java | 2 +- .../romannumerals/RomanArabicConverter.java | 2 +- .../romannumerals/RomanNumeral.java | 2 +- .../algorithms/slope_one/InputData.java | 2 +- .../baeldung/algorithms/slope_one/Item.java | 2 +- .../algorithms/slope_one/SlopeOne.java | 2 +- .../baeldung/algorithms/slope_one/User.java | 2 +- .../sudoku/BacktrackingAlgorithm.java | 2 +- .../algorithms/sudoku/ColumnNode.java | 2 +- .../algorithms/sudoku/DancingLinks.java | 2 +- .../sudoku/DancingLinksAlgorithm.java | 2 +- .../algorithms/sudoku/DancingNode.java | 2 +- .../DijkstraAlgorithmLongRunningUnitTest.java | 8 +- .../analysis/AnalysisRunnerLiveTest.java | 2 +- .../ByteArrayConverterUnitTest.java | 4 +- .../EditDistanceDataProvider.java | 2 +- .../editdistance/EditDistanceUnitTest.java | 2 +- .../CycleDetectionBruteForceUnitTest.java | 2 +- ...tectionByFastAndSlowIteratorsUnitTest.java | 2 +- .../CycleDetectionByHashingUnitTest.java | 2 +- .../linkedlist/CycleDetectionTestBase.java | 2 +- .../CycleRemovalBruteForceUnitTest.java | 2 +- ...cleRemovalByCountingLoopNodesUnitTest.java | 2 +- ...movalWithoutCountingLoopNodesUnitTest.java | 2 +- .../NumberWordConverterUnitTest.java | 4 +- .../RelativelyPrimeUnitTest.java | 4 +- .../reversingtree/TreeReverserUnitTest.java | 2 +- .../RomanArabicConverterUnitTest.java | 2 +- .../algorithms/bubblesort/BubbleSort.java | 2 +- .../baeldung/algorithms/heapsort/Heap.java | 2 +- .../insertionsort/InsertionSort.java | 2 +- .../algorithms/mergesort/MergeSort.java | 2 +- .../algorithms/quicksort/QuickSort.java | 2 +- .../quicksort/ThreeWayQuickSort.java | 2 +- .../bubblesort/BubbleSortUnitTest.java | 2 +- .../algorithms/heapsort/HeapUnitTest.java | 2 +- .../insertionsort/InsertionSortUnitTest.java | 4 +- .../mergesort/MergeSortUnitTest.java | 2 +- .../quicksort/QuickSortUnitTest.java | 4 +- .../quicksort/ThreeWayQuickSortUnitTest.java | 2 +- java-math/.gitignore | 4 + java-math/README.md | 20 +++++ java-math/pom.xml | 88 +++++++++++++++++++ .../ApacheCommonsCombinationGenerator.java | 29 ++++++ .../CombinatoricsLibCombinationGenerator.java | 13 +++ .../GuavaCombinationsGenerator.java | 17 ++++ .../IterativeCombinationGenerator.java | 52 +++++++++++ ...electionRecursiveCombinationGenerator.java | 53 +++++++++++ .../SetRecursiveCombinationGenerator.java | 50 +++++++++++ .../DistanceBetweenPointsService.java | 2 +- .../baeldung/math/factorial/Factorial.java | 63 +++++++++++++ .../LinesIntersectionService.java | 2 +- .../math}/mercator/EllipticalMercator.java | 2 +- .../com/baeldung/math}/mercator/Mercator.java | 2 +- .../math}/mercator/SphericalMercator.java | 2 +- .../percentage/PercentageCalculator.java | 2 +- .../math}/rectanglesoverlap/Point.java | 2 +- .../math}/rectanglesoverlap/Rectangle.java | 2 +- .../math}/roundedup/RoundUpToHundred.java | 2 +- java-math/src/main/resources/logback.xml | 13 +++ .../math/combination/CombinationUnitTest.java | 35 ++++++++ .../DistanceBetweenPointsServiceUnitTest.java | 4 +- .../math/factorial/FactorialUnitTest.java | 72 +++++++++++++++ .../LinesIntersectionServiceUnitTest.java | 2 +- .../mercator/EllipticalMercatorUnitTest.java | 2 +- .../mercator/SphericalMercatorUnitTest.java | 2 +- .../PercentageCalculatorUnitTest.java | 2 +- .../rectanglesoverlap/RectangleUnitTest.java | 5 +- .../roundedup/RoundUpToHundredUnitTest.java | 2 +- .../primechecker/BigIntegerPrimeChecker.java | 2 +- .../primechecker/BruteForcePrimeChecker.java | 2 +- .../primechecker/OptimisedPrimeChecker.java | 2 +- .../algorithms/primechecker/PrimeChecker.java | 2 +- .../primechecker/PrimesPrimeChecker.java | 2 +- .../primechecker/PrimeCheckerUnitTest.java | 2 +- 184 files changed, 717 insertions(+), 218 deletions(-) rename algorithms-miscellaneous-1/src/main/java/com/baeldung/{algorithms => math}/automata/FiniteStateMachine.java (90%) rename algorithms-miscellaneous-1/src/main/java/com/baeldung/{algorithms => math}/automata/RtFiniteStateMachine.java (93%) rename algorithms-miscellaneous-1/src/main/java/com/baeldung/{algorithms => math}/automata/RtState.java (95%) rename algorithms-miscellaneous-1/src/main/java/com/baeldung/{algorithms => math}/automata/RtTransition.java (93%) rename algorithms-miscellaneous-1/src/main/java/com/baeldung/{algorithms => math}/automata/State.java (93%) rename algorithms-miscellaneous-1/src/main/java/com/baeldung/{algorithms => math}/automata/Transition.java (89%) rename algorithms-miscellaneous-1/src/main/java/com/baeldung/{algorithms => math}/binarysearch/BinarySearch.java (93%) rename algorithms-miscellaneous-1/src/main/java/com/baeldung/{algorithms => math}/combination/ApacheCommonsCombinationGenerator.java (94%) rename algorithms-miscellaneous-1/src/main/java/com/baeldung/{algorithms => math}/combination/CombinatoricsLibCombinationGenerator.java (86%) rename algorithms-miscellaneous-1/src/main/java/com/baeldung/{algorithms => math}/combination/GuavaCombinationsGenerator.java (90%) rename algorithms-miscellaneous-1/src/main/java/com/baeldung/{algorithms => math}/combination/IterativeCombinationGenerator.java (97%) rename algorithms-miscellaneous-1/src/main/java/com/baeldung/{algorithms => math}/combination/SelectionRecursiveCombinationGenerator.java (97%) rename algorithms-miscellaneous-1/src/main/java/com/baeldung/{algorithms => math}/combination/SetRecursiveCombinationGenerator.java (97%) rename algorithms-miscellaneous-1/src/main/java/com/baeldung/{algorithms => math}/enumstatemachine/LeaveRequestState.java (95%) rename algorithms-miscellaneous-1/src/main/java/com/baeldung/{algorithms => math}/factorial/Factorial.java (97%) rename algorithms-miscellaneous-1/src/main/java/com/baeldung/{algorithms => math}/hillclimbing/HillClimbing.java (99%) rename algorithms-miscellaneous-1/src/main/java/com/baeldung/{algorithms => math}/hillclimbing/State.java (95%) rename algorithms-miscellaneous-1/src/main/java/com/baeldung/{algorithms => math}/kthlargest/FindKthLargest.java (98%) rename algorithms-miscellaneous-1/src/main/java/com/baeldung/{algorithms => math}/mcts/montecarlo/MonteCarloTreeSearch.java (94%) rename algorithms-miscellaneous-1/src/main/java/com/baeldung/{algorithms => math}/mcts/montecarlo/State.java (93%) rename algorithms-miscellaneous-1/src/main/java/com/baeldung/{algorithms => math}/mcts/montecarlo/UCT.java (84%) rename algorithms-miscellaneous-1/src/main/java/com/baeldung/{algorithms => math}/mcts/tictactoe/Board.java (98%) rename algorithms-miscellaneous-1/src/main/java/com/baeldung/{algorithms => math}/mcts/tictactoe/Position.java (88%) rename algorithms-miscellaneous-1/src/main/java/com/baeldung/{algorithms => math}/mcts/tree/Node.java (94%) rename algorithms-miscellaneous-1/src/main/java/com/baeldung/{algorithms => math}/mcts/tree/Tree.java (89%) rename algorithms-miscellaneous-1/src/main/java/com/baeldung/{algorithms => math}/middleelementlookup/MiddleElementLookup.java (97%) rename algorithms-miscellaneous-1/src/main/java/com/baeldung/{algorithms => math}/middleelementlookup/Node.java (90%) rename algorithms-miscellaneous-1/src/main/java/com/baeldung/{algorithms => math}/minimax/GameOfBones.java (90%) rename algorithms-miscellaneous-1/src/main/java/com/baeldung/{algorithms => math}/minimax/MiniMax.java (97%) rename algorithms-miscellaneous-1/src/main/java/com/baeldung/{algorithms => math}/minimax/Node.java (94%) rename algorithms-miscellaneous-1/src/main/java/com/baeldung/{algorithms => math}/minimax/Tree.java (81%) rename algorithms-miscellaneous-1/src/main/java/com/baeldung/{algorithms => math}/multiswarm/Constants.java (96%) rename algorithms-miscellaneous-1/src/main/java/com/baeldung/{algorithms => math}/multiswarm/FitnessFunction.java (90%) rename algorithms-miscellaneous-1/src/main/java/com/baeldung/{algorithms => math}/multiswarm/Multiswarm.java (99%) rename algorithms-miscellaneous-1/src/main/java/com/baeldung/{algorithms => math}/multiswarm/Particle.java (98%) rename algorithms-miscellaneous-1/src/main/java/com/baeldung/{algorithms => math}/multiswarm/Swarm.java (98%) rename algorithms-miscellaneous-1/src/main/java/com/baeldung/{algorithms => math}/permutation/Permutation.java (98%) rename algorithms-miscellaneous-1/src/main/java/com/baeldung/{algorithms => math}/string/EnglishAlphabetLetters.java (96%) rename algorithms-miscellaneous-1/src/main/java/com/baeldung/{algorithms => math}/string/LongestSubstringNonRepeatingCharacters.java (94%) rename algorithms-miscellaneous-1/src/main/java/com/baeldung/{algorithms => math}/string/SubstringPalindrome.java (98%) rename algorithms-miscellaneous-1/src/main/java/com/baeldung/{algorithms => math}/string/search/StringSearchAlgorithms.java (95%) rename algorithms-miscellaneous-1/src/main/java/com/baeldung/{algorithms => math}/twopointertechnique/LinkedListFindMiddle.java (87%) rename algorithms-miscellaneous-1/src/main/java/com/baeldung/{algorithms => math}/twopointertechnique/MyNode.java (84%) rename algorithms-miscellaneous-1/src/main/java/com/baeldung/{algorithms => math}/twopointertechnique/RotateArray.java (90%) rename algorithms-miscellaneous-1/src/main/java/com/baeldung/{algorithms => math}/twopointertechnique/TwoSum.java (94%) rename algorithms-miscellaneous-1/src/test/java/com/baeldung/{algorithms => math}/HillClimbingAlgorithmUnitTest.java (92%) rename algorithms-miscellaneous-1/src/test/java/com/baeldung/{algorithms => math}/MiddleElementLookupUnitTest.java (95%) rename algorithms-miscellaneous-1/src/test/java/com/baeldung/{algorithms => math}/RtFiniteStateMachineLongRunningUnitTest.java (97%) rename algorithms-miscellaneous-1/src/test/java/com/baeldung/{algorithms => math}/StringSearchAlgorithmsUnitTest.java (88%) rename algorithms-miscellaneous-1/src/test/java/com/baeldung/{algorithms => math}/binarysearch/BinarySearchUnitTest.java (91%) rename algorithms-miscellaneous-1/src/test/java/com/baeldung/{algorithms => math}/combination/CombinationUnitTest.java (96%) rename algorithms-miscellaneous-1/src/test/java/com/baeldung/{algorithms => math}/enumstatemachine/LeaveRequestStateUnitTest.java (95%) rename algorithms-miscellaneous-1/src/test/java/com/baeldung/{algorithms => math}/factorial/FactorialUnitTest.java (97%) rename algorithms-miscellaneous-1/src/test/java/com/baeldung/{algorithms => math}/kthlargest/FindKthLargestUnitTest.java (97%) rename algorithms-miscellaneous-1/src/test/java/com/baeldung/{algorithms => math}/mcts/MCTSUnitTest.java (87%) rename algorithms-miscellaneous-1/src/test/java/com/baeldung/{algorithms => math}/minimax/MinimaxUnitTest.java (85%) rename algorithms-miscellaneous-1/src/test/java/com/baeldung/{algorithms => math}/multiswarm/LolFitnessFunction.java (96%) rename algorithms-miscellaneous-1/src/test/java/com/baeldung/{algorithms => math}/multiswarm/MultiswarmUnitTest.java (94%) rename algorithms-miscellaneous-1/src/test/java/com/baeldung/{algorithms => math}/string/EnglishAlphabetLettersUnitTest.java (94%) rename algorithms-miscellaneous-1/src/test/java/com/baeldung/{algorithms => math}/string/LongestSubstringNonRepeatingCharactersUnitTest.java (81%) rename algorithms-miscellaneous-1/src/test/java/com/baeldung/{algorithms => math}/string/SubstringPalindromeUnitTest.java (98%) rename algorithms-miscellaneous-1/src/test/java/com/baeldung/{algorithms => math}/support/MayFailRule.java (95%) rename algorithms-miscellaneous-1/src/test/java/com/baeldung/{algorithms => math}/twopointertechnique/LinkedListFindMiddleUnitTest.java (94%) rename algorithms-miscellaneous-1/src/test/java/com/baeldung/{algorithms => math}/twopointertechnique/RotateArrayUnitTest.java (90%) rename algorithms-miscellaneous-1/src/test/java/com/baeldung/{algorithms => math}/twopointertechnique/TwoSumUnitTest.java (96%) create mode 100644 java-math/.gitignore create mode 100644 java-math/README.md create mode 100644 java-math/pom.xml create mode 100644 java-math/src/main/java/com/baeldung/math/combination/ApacheCommonsCombinationGenerator.java create mode 100644 java-math/src/main/java/com/baeldung/math/combination/CombinatoricsLibCombinationGenerator.java create mode 100644 java-math/src/main/java/com/baeldung/math/combination/GuavaCombinationsGenerator.java create mode 100644 java-math/src/main/java/com/baeldung/math/combination/IterativeCombinationGenerator.java create mode 100644 java-math/src/main/java/com/baeldung/math/combination/SelectionRecursiveCombinationGenerator.java create mode 100644 java-math/src/main/java/com/baeldung/math/combination/SetRecursiveCombinationGenerator.java rename {algorithms-miscellaneous-2/src/main/java/com/baeldung/algorithms => java-math/src/main/java/com/baeldung/math}/distancebetweenpoints/DistanceBetweenPointsService.java (93%) create mode 100644 java-math/src/main/java/com/baeldung/math/factorial/Factorial.java rename {algorithms-miscellaneous-1/src/main/java/com/baeldung/algorithms => java-math/src/main/java/com/baeldung/math}/linesintersection/LinesIntersectionService.java (89%) rename {algorithms-miscellaneous-2/src/main/java/com/baeldung/algorithms => java-math/src/main/java/com/baeldung/math}/mercator/EllipticalMercator.java (95%) rename {algorithms-miscellaneous-2/src/main/java/com/baeldung/algorithms => java-math/src/main/java/com/baeldung/math}/mercator/Mercator.java (84%) rename {algorithms-miscellaneous-2/src/main/java/com/baeldung/algorithms => java-math/src/main/java/com/baeldung/math}/mercator/SphericalMercator.java (88%) rename {java-numbers/src/main/java/com/baeldung => java-math/src/main/java/com/baeldung/math}/percentage/PercentageCalculator.java (94%) rename {algorithms-miscellaneous-2/src/main/java/com/baeldung/algorithms => java-math/src/main/java/com/baeldung/math}/rectanglesoverlap/Point.java (87%) rename {algorithms-miscellaneous-2/src/main/java/com/baeldung/algorithms => java-math/src/main/java/com/baeldung/math}/rectanglesoverlap/Rectangle.java (95%) rename {algorithms-miscellaneous-2/src/main/java/com/baeldung/algorithms => java-math/src/main/java/com/baeldung/math}/roundedup/RoundUpToHundred.java (90%) create mode 100644 java-math/src/main/resources/logback.xml create mode 100644 java-math/src/test/java/com/baeldung/math/combination/CombinationUnitTest.java rename {algorithms-miscellaneous-2/src/test/java/com/baeldung/algorithms => java-math/src/test/java/com/baeldung/math}/distancebetweenpoints/DistanceBetweenPointsServiceUnitTest.java (89%) create mode 100644 java-math/src/test/java/com/baeldung/math/factorial/FactorialUnitTest.java rename {algorithms-miscellaneous-1/src/test/java/com/baeldung/algorithms => java-math/src/test/java/com/baeldung/math}/linesintersection/LinesIntersectionServiceUnitTest.java (95%) rename {algorithms-miscellaneous-2/src/test/java/com/baeldung/algorithms => java-math/src/test/java/com/baeldung/math}/mercator/EllipticalMercatorUnitTest.java (94%) rename {algorithms-miscellaneous-2/src/test/java/com/baeldung/algorithms => java-math/src/test/java/com/baeldung/math}/mercator/SphericalMercatorUnitTest.java (94%) rename {java-numbers/src/test/java/com/baeldung => java-math/src/test/java/com/baeldung/math}/percentage/PercentageCalculatorUnitTest.java (96%) rename {algorithms-miscellaneous-2/src/test/java/com/baeldung/algorithms => java-math/src/test/java/com/baeldung/math}/rectanglesoverlap/RectangleUnitTest.java (90%) rename {algorithms-miscellaneous-2/src/test/java/com/baeldung/algorithms => java-math/src/test/java/com/baeldung/math}/roundedup/RoundUpToHundredUnitTest.java (91%) diff --git a/algorithms-genetic/src/main/java/com/baeldung/algorithms/RunAlgorithm.java b/algorithms-genetic/src/main/java/com/baeldung/algorithms/RunAlgorithm.java index 779cb9b970..49a1b7e50d 100644 --- a/algorithms-genetic/src/main/java/com/baeldung/algorithms/RunAlgorithm.java +++ b/algorithms-genetic/src/main/java/com/baeldung/algorithms/RunAlgorithm.java @@ -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 { diff --git a/algorithms-genetic/src/main/java/com/baeldung/algorithms/ga/annealing/City.java b/algorithms-genetic/src/main/java/com/baeldung/algorithms/ga/annealing/City.java index cb5647f4d2..3713012270 100644 --- a/algorithms-genetic/src/main/java/com/baeldung/algorithms/ga/annealing/City.java +++ b/algorithms-genetic/src/main/java/com/baeldung/algorithms/ga/annealing/City.java @@ -1,4 +1,4 @@ -package com.baeldung.algorithms.ga.annealing; +package com.baeldung.math.ga.annealing; import lombok.Data; diff --git a/algorithms-genetic/src/main/java/com/baeldung/algorithms/ga/annealing/SimulatedAnnealing.java b/algorithms-genetic/src/main/java/com/baeldung/algorithms/ga/annealing/SimulatedAnnealing.java index bff64fc239..e59aa290c2 100644 --- a/algorithms-genetic/src/main/java/com/baeldung/algorithms/ga/annealing/SimulatedAnnealing.java +++ b/algorithms-genetic/src/main/java/com/baeldung/algorithms/ga/annealing/SimulatedAnnealing.java @@ -1,4 +1,4 @@ -package com.baeldung.algorithms.ga.annealing; +package com.baeldung.math.ga.annealing; public class SimulatedAnnealing { diff --git a/algorithms-genetic/src/main/java/com/baeldung/algorithms/ga/annealing/Travel.java b/algorithms-genetic/src/main/java/com/baeldung/algorithms/ga/annealing/Travel.java index 3139b49586..5f57e31591 100644 --- a/algorithms-genetic/src/main/java/com/baeldung/algorithms/ga/annealing/Travel.java +++ b/algorithms-genetic/src/main/java/com/baeldung/algorithms/ga/annealing/Travel.java @@ -1,4 +1,4 @@ -package com.baeldung.algorithms.ga.annealing; +package com.baeldung.math.ga.annealing; import java.util.ArrayList; import java.util.Collections; diff --git a/algorithms-genetic/src/main/java/com/baeldung/algorithms/ga/ant_colony/Ant.java b/algorithms-genetic/src/main/java/com/baeldung/algorithms/ga/ant_colony/Ant.java index 4ea23b799f..bb7ece4f5b 100644 --- a/algorithms-genetic/src/main/java/com/baeldung/algorithms/ga/ant_colony/Ant.java +++ b/algorithms-genetic/src/main/java/com/baeldung/algorithms/ga/ant_colony/Ant.java @@ -1,4 +1,4 @@ -package com.baeldung.algorithms.ga.ant_colony; +package com.baeldung.math.ga.ant_colony; public class Ant { diff --git a/algorithms-genetic/src/main/java/com/baeldung/algorithms/ga/ant_colony/AntColonyOptimization.java b/algorithms-genetic/src/main/java/com/baeldung/algorithms/ga/ant_colony/AntColonyOptimization.java index 62e124d3f3..5bdf896946 100644 --- a/algorithms-genetic/src/main/java/com/baeldung/algorithms/ga/ant_colony/AntColonyOptimization.java +++ b/algorithms-genetic/src/main/java/com/baeldung/algorithms/ga/ant_colony/AntColonyOptimization.java @@ -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; diff --git a/algorithms-genetic/src/main/java/com/baeldung/algorithms/ga/binary/Individual.java b/algorithms-genetic/src/main/java/com/baeldung/algorithms/ga/binary/Individual.java index 2a740777f3..31944ae192 100644 --- a/algorithms-genetic/src/main/java/com/baeldung/algorithms/ga/binary/Individual.java +++ b/algorithms-genetic/src/main/java/com/baeldung/algorithms/ga/binary/Individual.java @@ -1,4 +1,4 @@ -package com.baeldung.algorithms.ga.binary; +package com.baeldung.math.ga.binary; import lombok.Data; diff --git a/algorithms-genetic/src/main/java/com/baeldung/algorithms/ga/binary/Population.java b/algorithms-genetic/src/main/java/com/baeldung/algorithms/ga/binary/Population.java index 47677d7d88..f62c6af97c 100644 --- a/algorithms-genetic/src/main/java/com/baeldung/algorithms/ga/binary/Population.java +++ b/algorithms-genetic/src/main/java/com/baeldung/algorithms/ga/binary/Population.java @@ -1,4 +1,4 @@ -package com.baeldung.algorithms.ga.binary; +package com.baeldung.math.ga.binary; import java.util.ArrayList; import java.util.List; diff --git a/algorithms-genetic/src/main/java/com/baeldung/algorithms/ga/binary/SimpleGeneticAlgorithm.java b/algorithms-genetic/src/main/java/com/baeldung/algorithms/ga/binary/SimpleGeneticAlgorithm.java index e62eab0d57..63067285e7 100644 --- a/algorithms-genetic/src/main/java/com/baeldung/algorithms/ga/binary/SimpleGeneticAlgorithm.java +++ b/algorithms-genetic/src/main/java/com/baeldung/algorithms/ga/binary/SimpleGeneticAlgorithm.java @@ -1,4 +1,4 @@ -package com.baeldung.algorithms.ga.binary; +package com.baeldung.math.ga.binary; import lombok.Data; diff --git a/algorithms-genetic/src/main/java/com/baeldung/algorithms/ga/jenetics/Knapsack.java b/algorithms-genetic/src/main/java/com/baeldung/algorithms/ga/jenetics/Knapsack.java index cc99ccf204..39b8dcbf06 100644 --- a/algorithms-genetic/src/main/java/com/baeldung/algorithms/ga/jenetics/Knapsack.java +++ b/algorithms-genetic/src/main/java/com/baeldung/algorithms/ga/jenetics/Knapsack.java @@ -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; diff --git a/algorithms-genetic/src/main/java/com/baeldung/algorithms/ga/jenetics/KnapsackFF.java b/algorithms-genetic/src/main/java/com/baeldung/algorithms/ga/jenetics/KnapsackFF.java index e3e06d301a..86cfbbe366 100644 --- a/algorithms-genetic/src/main/java/com/baeldung/algorithms/ga/jenetics/KnapsackFF.java +++ b/algorithms-genetic/src/main/java/com/baeldung/algorithms/ga/jenetics/KnapsackFF.java @@ -1,4 +1,4 @@ -package com.baeldung.algorithms.ga.jenetics; +package com.baeldung.math.ga.jenetics; import java.util.function.Function; diff --git a/algorithms-genetic/src/main/java/com/baeldung/algorithms/ga/jenetics/KnapsackItem.java b/algorithms-genetic/src/main/java/com/baeldung/algorithms/ga/jenetics/KnapsackItem.java index 876df0ba25..19c80d1c03 100644 --- a/algorithms-genetic/src/main/java/com/baeldung/algorithms/ga/jenetics/KnapsackItem.java +++ b/algorithms-genetic/src/main/java/com/baeldung/algorithms/ga/jenetics/KnapsackItem.java @@ -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; diff --git a/algorithms-genetic/src/main/java/com/baeldung/algorithms/ga/jenetics/SimpleGeneticAlgorithm.java b/algorithms-genetic/src/main/java/com/baeldung/algorithms/ga/jenetics/SimpleGeneticAlgorithm.java index 845e11b349..3becac2e0f 100644 --- a/algorithms-genetic/src/main/java/com/baeldung/algorithms/ga/jenetics/SimpleGeneticAlgorithm.java +++ b/algorithms-genetic/src/main/java/com/baeldung/algorithms/ga/jenetics/SimpleGeneticAlgorithm.java @@ -1,4 +1,4 @@ -package com.baeldung.algorithms.ga.jenetics; +package com.baeldung.math.ga.jenetics; import org.jenetics.BitChromosome; import org.jenetics.BitGene; diff --git a/algorithms-genetic/src/main/java/com/baeldung/algorithms/ga/jenetics/SpringsteenProblem.java b/algorithms-genetic/src/main/java/com/baeldung/algorithms/ga/jenetics/SpringsteenProblem.java index 55f2f7af0a..c9f5e1660d 100644 --- a/algorithms-genetic/src/main/java/com/baeldung/algorithms/ga/jenetics/SpringsteenProblem.java +++ b/algorithms-genetic/src/main/java/com/baeldung/algorithms/ga/jenetics/SpringsteenProblem.java @@ -1,4 +1,4 @@ -package com.baeldung.algorithms.ga.jenetics; +package com.baeldung.math.ga.jenetics; import static java.util.Objects.requireNonNull; diff --git a/algorithms-genetic/src/main/java/com/baeldung/algorithms/ga/jenetics/SpringsteenRecord.java b/algorithms-genetic/src/main/java/com/baeldung/algorithms/ga/jenetics/SpringsteenRecord.java index b49709e7f5..7b1b80f8de 100644 --- a/algorithms-genetic/src/main/java/com/baeldung/algorithms/ga/jenetics/SpringsteenRecord.java +++ b/algorithms-genetic/src/main/java/com/baeldung/algorithms/ga/jenetics/SpringsteenRecord.java @@ -1,4 +1,4 @@ -package com.baeldung.algorithms.ga.jenetics; +package com.baeldung.math.ga.jenetics; import static java.util.Objects.requireNonNull; diff --git a/algorithms-genetic/src/main/java/com/baeldung/algorithms/ga/jenetics/SubsetSum.java b/algorithms-genetic/src/main/java/com/baeldung/algorithms/ga/jenetics/SubsetSum.java index db1e11239f..89bb4b2c4a 100644 --- a/algorithms-genetic/src/main/java/com/baeldung/algorithms/ga/jenetics/SubsetSum.java +++ b/algorithms-genetic/src/main/java/com/baeldung/algorithms/ga/jenetics/SubsetSum.java @@ -1,4 +1,4 @@ -package com.baeldung.algorithms.ga.jenetics; +package com.baeldung.math.ga.jenetics; import static java.util.Objects.requireNonNull; diff --git a/algorithms-genetic/src/main/java/com/baeldung/algorithms/ga/jenetics/TravelingSalesman.java b/algorithms-genetic/src/main/java/com/baeldung/algorithms/ga/jenetics/TravelingSalesman.java index 80ede0f8c5..7fdce89b48 100644 --- a/algorithms-genetic/src/main/java/com/baeldung/algorithms/ga/jenetics/TravelingSalesman.java +++ b/algorithms-genetic/src/main/java/com/baeldung/algorithms/ga/jenetics/TravelingSalesman.java @@ -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; diff --git a/algorithms-genetic/src/test/java/com/baeldung/algorithms/AntColonyOptimizationLongRunningUnitTest.java b/algorithms-genetic/src/test/java/com/baeldung/algorithms/AntColonyOptimizationLongRunningUnitTest.java index 2ac7adc3aa..2a427591fc 100644 --- a/algorithms-genetic/src/test/java/com/baeldung/algorithms/AntColonyOptimizationLongRunningUnitTest.java +++ b/algorithms-genetic/src/test/java/com/baeldung/algorithms/AntColonyOptimizationLongRunningUnitTest.java @@ -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 { diff --git a/algorithms-genetic/src/test/java/com/baeldung/algorithms/BinaryGeneticAlgorithmLongRunningUnitTest.java b/algorithms-genetic/src/test/java/com/baeldung/algorithms/BinaryGeneticAlgorithmLongRunningUnitTest.java index e819da4b36..db21d801e5 100644 --- a/algorithms-genetic/src/test/java/com/baeldung/algorithms/BinaryGeneticAlgorithmLongRunningUnitTest.java +++ b/algorithms-genetic/src/test/java/com/baeldung/algorithms/BinaryGeneticAlgorithmLongRunningUnitTest.java @@ -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 { diff --git a/algorithms-genetic/src/test/java/com/baeldung/algorithms/SimulatedAnnealingLongRunningUnitTest.java b/algorithms-genetic/src/test/java/com/baeldung/algorithms/SimulatedAnnealingLongRunningUnitTest.java index 2ce7d75e43..c14b57b71f 100644 --- a/algorithms-genetic/src/test/java/com/baeldung/algorithms/SimulatedAnnealingLongRunningUnitTest.java +++ b/algorithms-genetic/src/test/java/com/baeldung/algorithms/SimulatedAnnealingLongRunningUnitTest.java @@ -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 { diff --git a/algorithms-miscellaneous-1/src/main/java/com/baeldung/algorithms/automata/FiniteStateMachine.java b/algorithms-miscellaneous-1/src/main/java/com/baeldung/math/automata/FiniteStateMachine.java similarity index 90% rename from algorithms-miscellaneous-1/src/main/java/com/baeldung/algorithms/automata/FiniteStateMachine.java rename to algorithms-miscellaneous-1/src/main/java/com/baeldung/math/automata/FiniteStateMachine.java index 0cb11f5138..704f5999f9 100644 --- a/algorithms-miscellaneous-1/src/main/java/com/baeldung/algorithms/automata/FiniteStateMachine.java +++ b/algorithms-miscellaneous-1/src/main/java/com/baeldung/math/automata/FiniteStateMachine.java @@ -1,4 +1,4 @@ -package com.baeldung.algorithms.automata; +package com.baeldung.math.automata; /** * Finite state machine. diff --git a/algorithms-miscellaneous-1/src/main/java/com/baeldung/algorithms/automata/RtFiniteStateMachine.java b/algorithms-miscellaneous-1/src/main/java/com/baeldung/math/automata/RtFiniteStateMachine.java similarity index 93% rename from algorithms-miscellaneous-1/src/main/java/com/baeldung/algorithms/automata/RtFiniteStateMachine.java rename to algorithms-miscellaneous-1/src/main/java/com/baeldung/math/automata/RtFiniteStateMachine.java index 1cf06c04b5..4fb233e9ff 100644 --- a/algorithms-miscellaneous-1/src/main/java/com/baeldung/algorithms/automata/RtFiniteStateMachine.java +++ b/algorithms-miscellaneous-1/src/main/java/com/baeldung/math/automata/RtFiniteStateMachine.java @@ -1,4 +1,4 @@ -package com.baeldung.algorithms.automata; +package com.baeldung.math.automata; /** * Default implementation of a finite state machine. diff --git a/algorithms-miscellaneous-1/src/main/java/com/baeldung/algorithms/automata/RtState.java b/algorithms-miscellaneous-1/src/main/java/com/baeldung/math/automata/RtState.java similarity index 95% rename from algorithms-miscellaneous-1/src/main/java/com/baeldung/algorithms/automata/RtState.java rename to algorithms-miscellaneous-1/src/main/java/com/baeldung/math/automata/RtState.java index 31cb9b577e..c6f9f6a1a2 100644 --- a/algorithms-miscellaneous-1/src/main/java/com/baeldung/algorithms/automata/RtState.java +++ b/algorithms-miscellaneous-1/src/main/java/com/baeldung/math/automata/RtState.java @@ -1,4 +1,4 @@ -package com.baeldung.algorithms.automata; +package com.baeldung.math.automata; import java.util.ArrayList; import java.util.List; diff --git a/algorithms-miscellaneous-1/src/main/java/com/baeldung/algorithms/automata/RtTransition.java b/algorithms-miscellaneous-1/src/main/java/com/baeldung/math/automata/RtTransition.java similarity index 93% rename from algorithms-miscellaneous-1/src/main/java/com/baeldung/algorithms/automata/RtTransition.java rename to algorithms-miscellaneous-1/src/main/java/com/baeldung/math/automata/RtTransition.java index cb205deacb..e7c534df8b 100644 --- a/algorithms-miscellaneous-1/src/main/java/com/baeldung/algorithms/automata/RtTransition.java +++ b/algorithms-miscellaneous-1/src/main/java/com/baeldung/math/automata/RtTransition.java @@ -1,4 +1,4 @@ -package com.baeldung.algorithms.automata; +package com.baeldung.math.automata; /** diff --git a/algorithms-miscellaneous-1/src/main/java/com/baeldung/algorithms/automata/State.java b/algorithms-miscellaneous-1/src/main/java/com/baeldung/math/automata/State.java similarity index 93% rename from algorithms-miscellaneous-1/src/main/java/com/baeldung/algorithms/automata/State.java rename to algorithms-miscellaneous-1/src/main/java/com/baeldung/math/automata/State.java index 1889c4c7f6..10a1d9d697 100644 --- a/algorithms-miscellaneous-1/src/main/java/com/baeldung/algorithms/automata/State.java +++ b/algorithms-miscellaneous-1/src/main/java/com/baeldung/math/automata/State.java @@ -1,4 +1,4 @@ -package com.baeldung.algorithms.automata; +package com.baeldung.math.automata; /** * State. Part of a finite state machine. diff --git a/algorithms-miscellaneous-1/src/main/java/com/baeldung/algorithms/automata/Transition.java b/algorithms-miscellaneous-1/src/main/java/com/baeldung/math/automata/Transition.java similarity index 89% rename from algorithms-miscellaneous-1/src/main/java/com/baeldung/algorithms/automata/Transition.java rename to algorithms-miscellaneous-1/src/main/java/com/baeldung/math/automata/Transition.java index 68177ba7dd..34d2b0b0bb 100644 --- a/algorithms-miscellaneous-1/src/main/java/com/baeldung/algorithms/automata/Transition.java +++ b/algorithms-miscellaneous-1/src/main/java/com/baeldung/math/automata/Transition.java @@ -1,4 +1,4 @@ -package com.baeldung.algorithms.automata; +package com.baeldung.math.automata; /** * Transition in a finite State machine. diff --git a/algorithms-miscellaneous-1/src/main/java/com/baeldung/algorithms/binarysearch/BinarySearch.java b/algorithms-miscellaneous-1/src/main/java/com/baeldung/math/binarysearch/BinarySearch.java similarity index 93% rename from algorithms-miscellaneous-1/src/main/java/com/baeldung/algorithms/binarysearch/BinarySearch.java rename to algorithms-miscellaneous-1/src/main/java/com/baeldung/math/binarysearch/BinarySearch.java index 5b2ac49d4e..0a92153ec2 100644 --- a/algorithms-miscellaneous-1/src/main/java/com/baeldung/algorithms/binarysearch/BinarySearch.java +++ b/algorithms-miscellaneous-1/src/main/java/com/baeldung/math/binarysearch/BinarySearch.java @@ -1,4 +1,4 @@ -package com.baeldung.algorithms.binarysearch; +package com.baeldung.math.binarysearch; import java.util.Arrays; import java.util.Collections; diff --git a/algorithms-miscellaneous-1/src/main/java/com/baeldung/algorithms/combination/ApacheCommonsCombinationGenerator.java b/algorithms-miscellaneous-1/src/main/java/com/baeldung/math/combination/ApacheCommonsCombinationGenerator.java similarity index 94% rename from algorithms-miscellaneous-1/src/main/java/com/baeldung/algorithms/combination/ApacheCommonsCombinationGenerator.java rename to algorithms-miscellaneous-1/src/main/java/com/baeldung/math/combination/ApacheCommonsCombinationGenerator.java index 40142ce940..c3806a46a2 100644 --- a/algorithms-miscellaneous-1/src/main/java/com/baeldung/algorithms/combination/ApacheCommonsCombinationGenerator.java +++ b/algorithms-miscellaneous-1/src/main/java/com/baeldung/math/combination/ApacheCommonsCombinationGenerator.java @@ -1,4 +1,4 @@ -package com.baeldung.algorithms.combination; +package com.baeldung.math.combination; import java.util.Arrays; import java.util.Iterator; diff --git a/algorithms-miscellaneous-1/src/main/java/com/baeldung/algorithms/combination/CombinatoricsLibCombinationGenerator.java b/algorithms-miscellaneous-1/src/main/java/com/baeldung/math/combination/CombinatoricsLibCombinationGenerator.java similarity index 86% rename from algorithms-miscellaneous-1/src/main/java/com/baeldung/algorithms/combination/CombinatoricsLibCombinationGenerator.java rename to algorithms-miscellaneous-1/src/main/java/com/baeldung/math/combination/CombinatoricsLibCombinationGenerator.java index 0afdeefb8b..5de6e11b93 100644 --- a/algorithms-miscellaneous-1/src/main/java/com/baeldung/algorithms/combination/CombinatoricsLibCombinationGenerator.java +++ b/algorithms-miscellaneous-1/src/main/java/com/baeldung/math/combination/CombinatoricsLibCombinationGenerator.java @@ -1,4 +1,4 @@ -package com.baeldung.algorithms.combination; +package com.baeldung.math.combination; import org.paukov.combinatorics3.Generator; diff --git a/algorithms-miscellaneous-1/src/main/java/com/baeldung/algorithms/combination/GuavaCombinationsGenerator.java b/algorithms-miscellaneous-1/src/main/java/com/baeldung/math/combination/GuavaCombinationsGenerator.java similarity index 90% rename from algorithms-miscellaneous-1/src/main/java/com/baeldung/algorithms/combination/GuavaCombinationsGenerator.java rename to algorithms-miscellaneous-1/src/main/java/com/baeldung/math/combination/GuavaCombinationsGenerator.java index d2783881ba..1865c5c38a 100644 --- a/algorithms-miscellaneous-1/src/main/java/com/baeldung/algorithms/combination/GuavaCombinationsGenerator.java +++ b/algorithms-miscellaneous-1/src/main/java/com/baeldung/math/combination/GuavaCombinationsGenerator.java @@ -1,4 +1,4 @@ -package com.baeldung.algorithms.combination; +package com.baeldung.math.combination; import java.util.Arrays; import java.util.Set; diff --git a/algorithms-miscellaneous-1/src/main/java/com/baeldung/algorithms/combination/IterativeCombinationGenerator.java b/algorithms-miscellaneous-1/src/main/java/com/baeldung/math/combination/IterativeCombinationGenerator.java similarity index 97% rename from algorithms-miscellaneous-1/src/main/java/com/baeldung/algorithms/combination/IterativeCombinationGenerator.java rename to algorithms-miscellaneous-1/src/main/java/com/baeldung/math/combination/IterativeCombinationGenerator.java index 676d2f41e3..bb63aca213 100644 --- a/algorithms-miscellaneous-1/src/main/java/com/baeldung/algorithms/combination/IterativeCombinationGenerator.java +++ b/algorithms-miscellaneous-1/src/main/java/com/baeldung/math/combination/IterativeCombinationGenerator.java @@ -1,4 +1,4 @@ -package com.baeldung.algorithms.combination; +package com.baeldung.math.combination; import java.util.ArrayList; import java.util.Arrays; diff --git a/algorithms-miscellaneous-1/src/main/java/com/baeldung/algorithms/combination/SelectionRecursiveCombinationGenerator.java b/algorithms-miscellaneous-1/src/main/java/com/baeldung/math/combination/SelectionRecursiveCombinationGenerator.java similarity index 97% rename from algorithms-miscellaneous-1/src/main/java/com/baeldung/algorithms/combination/SelectionRecursiveCombinationGenerator.java rename to algorithms-miscellaneous-1/src/main/java/com/baeldung/math/combination/SelectionRecursiveCombinationGenerator.java index 52305b8c2f..2be408c502 100644 --- a/algorithms-miscellaneous-1/src/main/java/com/baeldung/algorithms/combination/SelectionRecursiveCombinationGenerator.java +++ b/algorithms-miscellaneous-1/src/main/java/com/baeldung/math/combination/SelectionRecursiveCombinationGenerator.java @@ -1,4 +1,4 @@ -package com.baeldung.algorithms.combination; +package com.baeldung.math.combination; import java.util.ArrayList; import java.util.Arrays; diff --git a/algorithms-miscellaneous-1/src/main/java/com/baeldung/algorithms/combination/SetRecursiveCombinationGenerator.java b/algorithms-miscellaneous-1/src/main/java/com/baeldung/math/combination/SetRecursiveCombinationGenerator.java similarity index 97% rename from algorithms-miscellaneous-1/src/main/java/com/baeldung/algorithms/combination/SetRecursiveCombinationGenerator.java rename to algorithms-miscellaneous-1/src/main/java/com/baeldung/math/combination/SetRecursiveCombinationGenerator.java index a73447b31d..5f15b0ac65 100644 --- a/algorithms-miscellaneous-1/src/main/java/com/baeldung/algorithms/combination/SetRecursiveCombinationGenerator.java +++ b/algorithms-miscellaneous-1/src/main/java/com/baeldung/math/combination/SetRecursiveCombinationGenerator.java @@ -1,4 +1,4 @@ -package com.baeldung.algorithms.combination; +package com.baeldung.math.combination; import java.util.ArrayList; import java.util.Arrays; diff --git a/algorithms-miscellaneous-1/src/main/java/com/baeldung/algorithms/enumstatemachine/LeaveRequestState.java b/algorithms-miscellaneous-1/src/main/java/com/baeldung/math/enumstatemachine/LeaveRequestState.java similarity index 95% rename from algorithms-miscellaneous-1/src/main/java/com/baeldung/algorithms/enumstatemachine/LeaveRequestState.java rename to algorithms-miscellaneous-1/src/main/java/com/baeldung/math/enumstatemachine/LeaveRequestState.java index 5153c2e18e..77a626be82 100644 --- a/algorithms-miscellaneous-1/src/main/java/com/baeldung/algorithms/enumstatemachine/LeaveRequestState.java +++ b/algorithms-miscellaneous-1/src/main/java/com/baeldung/math/enumstatemachine/LeaveRequestState.java @@ -1,4 +1,4 @@ -package com.baeldung.algorithms.enumstatemachine; +package com.baeldung.math.enumstatemachine; public enum LeaveRequestState { diff --git a/algorithms-miscellaneous-1/src/main/java/com/baeldung/algorithms/factorial/Factorial.java b/algorithms-miscellaneous-1/src/main/java/com/baeldung/math/factorial/Factorial.java similarity index 97% rename from algorithms-miscellaneous-1/src/main/java/com/baeldung/algorithms/factorial/Factorial.java rename to algorithms-miscellaneous-1/src/main/java/com/baeldung/math/factorial/Factorial.java index 43d2221773..41cc08afd1 100644 --- a/algorithms-miscellaneous-1/src/main/java/com/baeldung/algorithms/factorial/Factorial.java +++ b/algorithms-miscellaneous-1/src/main/java/com/baeldung/math/factorial/Factorial.java @@ -1,4 +1,4 @@ -package com.baeldung.algorithms.factorial; +package com.baeldung.math.factorial; import java.math.BigInteger; import java.util.stream.LongStream; diff --git a/algorithms-miscellaneous-1/src/main/java/com/baeldung/algorithms/hillclimbing/HillClimbing.java b/algorithms-miscellaneous-1/src/main/java/com/baeldung/math/hillclimbing/HillClimbing.java similarity index 99% rename from algorithms-miscellaneous-1/src/main/java/com/baeldung/algorithms/hillclimbing/HillClimbing.java rename to algorithms-miscellaneous-1/src/main/java/com/baeldung/math/hillclimbing/HillClimbing.java index 77089636c8..39e2a99ae8 100644 --- a/algorithms-miscellaneous-1/src/main/java/com/baeldung/algorithms/hillclimbing/HillClimbing.java +++ b/algorithms-miscellaneous-1/src/main/java/com/baeldung/math/hillclimbing/HillClimbing.java @@ -1,4 +1,4 @@ -package com.baeldung.algorithms.hillclimbing; +package com.baeldung.math.hillclimbing; import java.util.ArrayList; import java.util.List; diff --git a/algorithms-miscellaneous-1/src/main/java/com/baeldung/algorithms/hillclimbing/State.java b/algorithms-miscellaneous-1/src/main/java/com/baeldung/math/hillclimbing/State.java similarity index 95% rename from algorithms-miscellaneous-1/src/main/java/com/baeldung/algorithms/hillclimbing/State.java rename to algorithms-miscellaneous-1/src/main/java/com/baeldung/math/hillclimbing/State.java index 9180b33b5b..cdf81b1460 100644 --- a/algorithms-miscellaneous-1/src/main/java/com/baeldung/algorithms/hillclimbing/State.java +++ b/algorithms-miscellaneous-1/src/main/java/com/baeldung/math/hillclimbing/State.java @@ -1,4 +1,4 @@ -package com.baeldung.algorithms.hillclimbing; +package com.baeldung.math.hillclimbing; import java.util.ArrayList; import java.util.List; diff --git a/algorithms-miscellaneous-1/src/main/java/com/baeldung/algorithms/kthlargest/FindKthLargest.java b/algorithms-miscellaneous-1/src/main/java/com/baeldung/math/kthlargest/FindKthLargest.java similarity index 98% rename from algorithms-miscellaneous-1/src/main/java/com/baeldung/algorithms/kthlargest/FindKthLargest.java rename to algorithms-miscellaneous-1/src/main/java/com/baeldung/math/kthlargest/FindKthLargest.java index 7054979ada..4448e56f7d 100644 --- a/algorithms-miscellaneous-1/src/main/java/com/baeldung/algorithms/kthlargest/FindKthLargest.java +++ b/algorithms-miscellaneous-1/src/main/java/com/baeldung/math/kthlargest/FindKthLargest.java @@ -1,4 +1,4 @@ -package com.baeldung.algorithms.kthlargest; +package com.baeldung.math.kthlargest; import java.util.Arrays; import java.util.Collections; diff --git a/algorithms-miscellaneous-1/src/main/java/com/baeldung/algorithms/mcts/montecarlo/MonteCarloTreeSearch.java b/algorithms-miscellaneous-1/src/main/java/com/baeldung/math/mcts/montecarlo/MonteCarloTreeSearch.java similarity index 94% rename from algorithms-miscellaneous-1/src/main/java/com/baeldung/algorithms/mcts/montecarlo/MonteCarloTreeSearch.java rename to algorithms-miscellaneous-1/src/main/java/com/baeldung/math/mcts/montecarlo/MonteCarloTreeSearch.java index a4918f674d..e07ae99489 100644 --- a/algorithms-miscellaneous-1/src/main/java/com/baeldung/algorithms/mcts/montecarlo/MonteCarloTreeSearch.java +++ b/algorithms-miscellaneous-1/src/main/java/com/baeldung/math/mcts/montecarlo/MonteCarloTreeSearch.java @@ -1,10 +1,10 @@ -package com.baeldung.algorithms.mcts.montecarlo; +package com.baeldung.math.mcts.montecarlo; import java.util.List; -import com.baeldung.algorithms.mcts.tictactoe.Board; -import com.baeldung.algorithms.mcts.tree.Node; -import com.baeldung.algorithms.mcts.tree.Tree; +import com.baeldung.math.mcts.tictactoe.Board; +import com.baeldung.math.mcts.tree.Node; +import com.baeldung.math.mcts.tree.Tree; public class MonteCarloTreeSearch { diff --git a/algorithms-miscellaneous-1/src/main/java/com/baeldung/algorithms/mcts/montecarlo/State.java b/algorithms-miscellaneous-1/src/main/java/com/baeldung/math/mcts/montecarlo/State.java similarity index 93% rename from algorithms-miscellaneous-1/src/main/java/com/baeldung/algorithms/mcts/montecarlo/State.java rename to algorithms-miscellaneous-1/src/main/java/com/baeldung/math/mcts/montecarlo/State.java index 5d4b265500..44a44fdc94 100644 --- a/algorithms-miscellaneous-1/src/main/java/com/baeldung/algorithms/mcts/montecarlo/State.java +++ b/algorithms-miscellaneous-1/src/main/java/com/baeldung/math/mcts/montecarlo/State.java @@ -1,10 +1,10 @@ -package com.baeldung.algorithms.mcts.montecarlo; +package com.baeldung.math.mcts.montecarlo; import java.util.ArrayList; import java.util.List; -import com.baeldung.algorithms.mcts.tictactoe.Board; -import com.baeldung.algorithms.mcts.tictactoe.Position; +import com.baeldung.math.mcts.tictactoe.Board; +import com.baeldung.math.mcts.tictactoe.Position; public class State { private Board board; diff --git a/algorithms-miscellaneous-1/src/main/java/com/baeldung/algorithms/mcts/montecarlo/UCT.java b/algorithms-miscellaneous-1/src/main/java/com/baeldung/math/mcts/montecarlo/UCT.java similarity index 84% rename from algorithms-miscellaneous-1/src/main/java/com/baeldung/algorithms/mcts/montecarlo/UCT.java rename to algorithms-miscellaneous-1/src/main/java/com/baeldung/math/mcts/montecarlo/UCT.java index 52707aab55..adb447fa2b 100644 --- a/algorithms-miscellaneous-1/src/main/java/com/baeldung/algorithms/mcts/montecarlo/UCT.java +++ b/algorithms-miscellaneous-1/src/main/java/com/baeldung/math/mcts/montecarlo/UCT.java @@ -1,10 +1,9 @@ -package com.baeldung.algorithms.mcts.montecarlo; +package com.baeldung.math.mcts.montecarlo; import java.util.Collections; import java.util.Comparator; -import java.util.List; -import com.baeldung.algorithms.mcts.tree.Node; +import com.baeldung.math.mcts.tree.Node; public class UCT { diff --git a/algorithms-miscellaneous-1/src/main/java/com/baeldung/algorithms/mcts/tictactoe/Board.java b/algorithms-miscellaneous-1/src/main/java/com/baeldung/math/mcts/tictactoe/Board.java similarity index 98% rename from algorithms-miscellaneous-1/src/main/java/com/baeldung/algorithms/mcts/tictactoe/Board.java rename to algorithms-miscellaneous-1/src/main/java/com/baeldung/math/mcts/tictactoe/Board.java index 5ca2d626f1..3a1393b66f 100644 --- a/algorithms-miscellaneous-1/src/main/java/com/baeldung/algorithms/mcts/tictactoe/Board.java +++ b/algorithms-miscellaneous-1/src/main/java/com/baeldung/math/mcts/tictactoe/Board.java @@ -1,7 +1,6 @@ -package com.baeldung.algorithms.mcts.tictactoe; +package com.baeldung.math.mcts.tictactoe; import java.util.ArrayList; -import java.util.Arrays; import java.util.List; public class Board { diff --git a/algorithms-miscellaneous-1/src/main/java/com/baeldung/algorithms/mcts/tictactoe/Position.java b/algorithms-miscellaneous-1/src/main/java/com/baeldung/math/mcts/tictactoe/Position.java similarity index 88% rename from algorithms-miscellaneous-1/src/main/java/com/baeldung/algorithms/mcts/tictactoe/Position.java rename to algorithms-miscellaneous-1/src/main/java/com/baeldung/math/mcts/tictactoe/Position.java index 94ead4288d..6e39184ddf 100644 --- a/algorithms-miscellaneous-1/src/main/java/com/baeldung/algorithms/mcts/tictactoe/Position.java +++ b/algorithms-miscellaneous-1/src/main/java/com/baeldung/math/mcts/tictactoe/Position.java @@ -1,4 +1,4 @@ -package com.baeldung.algorithms.mcts.tictactoe; +package com.baeldung.math.mcts.tictactoe; public class Position { int x; diff --git a/algorithms-miscellaneous-1/src/main/java/com/baeldung/algorithms/mcts/tree/Node.java b/algorithms-miscellaneous-1/src/main/java/com/baeldung/math/mcts/tree/Node.java similarity index 94% rename from algorithms-miscellaneous-1/src/main/java/com/baeldung/algorithms/mcts/tree/Node.java rename to algorithms-miscellaneous-1/src/main/java/com/baeldung/math/mcts/tree/Node.java index 0ad6510e50..ff83e52c4e 100644 --- a/algorithms-miscellaneous-1/src/main/java/com/baeldung/algorithms/mcts/tree/Node.java +++ b/algorithms-miscellaneous-1/src/main/java/com/baeldung/math/mcts/tree/Node.java @@ -1,11 +1,11 @@ -package com.baeldung.algorithms.mcts.tree; +package com.baeldung.math.mcts.tree; import java.util.ArrayList; import java.util.Collections; import java.util.Comparator; import java.util.List; -import com.baeldung.algorithms.mcts.montecarlo.State; +import com.baeldung.math.mcts.montecarlo.State; public class Node { State state; diff --git a/algorithms-miscellaneous-1/src/main/java/com/baeldung/algorithms/mcts/tree/Tree.java b/algorithms-miscellaneous-1/src/main/java/com/baeldung/math/mcts/tree/Tree.java similarity index 89% rename from algorithms-miscellaneous-1/src/main/java/com/baeldung/algorithms/mcts/tree/Tree.java rename to algorithms-miscellaneous-1/src/main/java/com/baeldung/math/mcts/tree/Tree.java index c5543c0ed4..3e91f22396 100644 --- a/algorithms-miscellaneous-1/src/main/java/com/baeldung/algorithms/mcts/tree/Tree.java +++ b/algorithms-miscellaneous-1/src/main/java/com/baeldung/math/mcts/tree/Tree.java @@ -1,4 +1,4 @@ -package com.baeldung.algorithms.mcts.tree; +package com.baeldung.math.mcts.tree; public class Tree { Node root; diff --git a/algorithms-miscellaneous-1/src/main/java/com/baeldung/algorithms/middleelementlookup/MiddleElementLookup.java b/algorithms-miscellaneous-1/src/main/java/com/baeldung/math/middleelementlookup/MiddleElementLookup.java similarity index 97% rename from algorithms-miscellaneous-1/src/main/java/com/baeldung/algorithms/middleelementlookup/MiddleElementLookup.java rename to algorithms-miscellaneous-1/src/main/java/com/baeldung/math/middleelementlookup/MiddleElementLookup.java index 7e25e0456b..4e847b1e11 100644 --- a/algorithms-miscellaneous-1/src/main/java/com/baeldung/algorithms/middleelementlookup/MiddleElementLookup.java +++ b/algorithms-miscellaneous-1/src/main/java/com/baeldung/math/middleelementlookup/MiddleElementLookup.java @@ -1,4 +1,4 @@ -package com.baeldung.algorithms.middleelementlookup; +package com.baeldung.math.middleelementlookup; import java.util.LinkedList; import java.util.Optional; diff --git a/algorithms-miscellaneous-1/src/main/java/com/baeldung/algorithms/middleelementlookup/Node.java b/algorithms-miscellaneous-1/src/main/java/com/baeldung/math/middleelementlookup/Node.java similarity index 90% rename from algorithms-miscellaneous-1/src/main/java/com/baeldung/algorithms/middleelementlookup/Node.java rename to algorithms-miscellaneous-1/src/main/java/com/baeldung/math/middleelementlookup/Node.java index 2a594937e3..987e8663ec 100644 --- a/algorithms-miscellaneous-1/src/main/java/com/baeldung/algorithms/middleelementlookup/Node.java +++ b/algorithms-miscellaneous-1/src/main/java/com/baeldung/math/middleelementlookup/Node.java @@ -1,4 +1,4 @@ -package com.baeldung.algorithms.middleelementlookup; +package com.baeldung.math.middleelementlookup; public class Node { private Node next; diff --git a/algorithms-miscellaneous-1/src/main/java/com/baeldung/algorithms/minimax/GameOfBones.java b/algorithms-miscellaneous-1/src/main/java/com/baeldung/math/minimax/GameOfBones.java similarity index 90% rename from algorithms-miscellaneous-1/src/main/java/com/baeldung/algorithms/minimax/GameOfBones.java rename to algorithms-miscellaneous-1/src/main/java/com/baeldung/math/minimax/GameOfBones.java index 8e14afcf7a..6f1ace9d54 100644 --- a/algorithms-miscellaneous-1/src/main/java/com/baeldung/algorithms/minimax/GameOfBones.java +++ b/algorithms-miscellaneous-1/src/main/java/com/baeldung/math/minimax/GameOfBones.java @@ -1,4 +1,4 @@ -package com.baeldung.algorithms.minimax; +package com.baeldung.math.minimax; import java.util.List; import java.util.stream.Collectors; diff --git a/algorithms-miscellaneous-1/src/main/java/com/baeldung/algorithms/minimax/MiniMax.java b/algorithms-miscellaneous-1/src/main/java/com/baeldung/math/minimax/MiniMax.java similarity index 97% rename from algorithms-miscellaneous-1/src/main/java/com/baeldung/algorithms/minimax/MiniMax.java rename to algorithms-miscellaneous-1/src/main/java/com/baeldung/math/minimax/MiniMax.java index fed4ebed48..e656b133f3 100644 --- a/algorithms-miscellaneous-1/src/main/java/com/baeldung/algorithms/minimax/MiniMax.java +++ b/algorithms-miscellaneous-1/src/main/java/com/baeldung/math/minimax/MiniMax.java @@ -1,4 +1,4 @@ -package com.baeldung.algorithms.minimax; +package com.baeldung.math.minimax; import java.util.Comparator; import java.util.List; diff --git a/algorithms-miscellaneous-1/src/main/java/com/baeldung/algorithms/minimax/Node.java b/algorithms-miscellaneous-1/src/main/java/com/baeldung/math/minimax/Node.java similarity index 94% rename from algorithms-miscellaneous-1/src/main/java/com/baeldung/algorithms/minimax/Node.java rename to algorithms-miscellaneous-1/src/main/java/com/baeldung/math/minimax/Node.java index 4ceef0073d..ff41caee9f 100644 --- a/algorithms-miscellaneous-1/src/main/java/com/baeldung/algorithms/minimax/Node.java +++ b/algorithms-miscellaneous-1/src/main/java/com/baeldung/math/minimax/Node.java @@ -1,4 +1,4 @@ -package com.baeldung.algorithms.minimax; +package com.baeldung.math.minimax; import java.util.ArrayList; import java.util.List; diff --git a/algorithms-miscellaneous-1/src/main/java/com/baeldung/algorithms/minimax/Tree.java b/algorithms-miscellaneous-1/src/main/java/com/baeldung/math/minimax/Tree.java similarity index 81% rename from algorithms-miscellaneous-1/src/main/java/com/baeldung/algorithms/minimax/Tree.java rename to algorithms-miscellaneous-1/src/main/java/com/baeldung/math/minimax/Tree.java index 34c56cdd58..52716d244a 100644 --- a/algorithms-miscellaneous-1/src/main/java/com/baeldung/algorithms/minimax/Tree.java +++ b/algorithms-miscellaneous-1/src/main/java/com/baeldung/math/minimax/Tree.java @@ -1,4 +1,4 @@ -package com.baeldung.algorithms.minimax; +package com.baeldung.math.minimax; public class Tree { private Node root; diff --git a/algorithms-miscellaneous-1/src/main/java/com/baeldung/algorithms/multiswarm/Constants.java b/algorithms-miscellaneous-1/src/main/java/com/baeldung/math/multiswarm/Constants.java similarity index 96% rename from algorithms-miscellaneous-1/src/main/java/com/baeldung/algorithms/multiswarm/Constants.java rename to algorithms-miscellaneous-1/src/main/java/com/baeldung/math/multiswarm/Constants.java index b646c686b2..784ac56848 100644 --- a/algorithms-miscellaneous-1/src/main/java/com/baeldung/algorithms/multiswarm/Constants.java +++ b/algorithms-miscellaneous-1/src/main/java/com/baeldung/math/multiswarm/Constants.java @@ -1,4 +1,4 @@ -package com.baeldung.algorithms.multiswarm; +package com.baeldung.math.multiswarm; /** * Constants used by the Multi-swarm optimization algorithms. diff --git a/algorithms-miscellaneous-1/src/main/java/com/baeldung/algorithms/multiswarm/FitnessFunction.java b/algorithms-miscellaneous-1/src/main/java/com/baeldung/math/multiswarm/FitnessFunction.java similarity index 90% rename from algorithms-miscellaneous-1/src/main/java/com/baeldung/algorithms/multiswarm/FitnessFunction.java rename to algorithms-miscellaneous-1/src/main/java/com/baeldung/math/multiswarm/FitnessFunction.java index 2d86ec8d94..289ae82352 100644 --- a/algorithms-miscellaneous-1/src/main/java/com/baeldung/algorithms/multiswarm/FitnessFunction.java +++ b/algorithms-miscellaneous-1/src/main/java/com/baeldung/math/multiswarm/FitnessFunction.java @@ -1,4 +1,4 @@ -package com.baeldung.algorithms.multiswarm; +package com.baeldung.math.multiswarm; /** * Interface for a fitness function, used to decouple the main algorithm logic diff --git a/algorithms-miscellaneous-1/src/main/java/com/baeldung/algorithms/multiswarm/Multiswarm.java b/algorithms-miscellaneous-1/src/main/java/com/baeldung/math/multiswarm/Multiswarm.java similarity index 99% rename from algorithms-miscellaneous-1/src/main/java/com/baeldung/algorithms/multiswarm/Multiswarm.java rename to algorithms-miscellaneous-1/src/main/java/com/baeldung/math/multiswarm/Multiswarm.java index ef60726278..f616c92dd5 100644 --- a/algorithms-miscellaneous-1/src/main/java/com/baeldung/algorithms/multiswarm/Multiswarm.java +++ b/algorithms-miscellaneous-1/src/main/java/com/baeldung/math/multiswarm/Multiswarm.java @@ -1,4 +1,4 @@ -package com.baeldung.algorithms.multiswarm; +package com.baeldung.math.multiswarm; import java.util.Arrays; import java.util.Random; diff --git a/algorithms-miscellaneous-1/src/main/java/com/baeldung/algorithms/multiswarm/Particle.java b/algorithms-miscellaneous-1/src/main/java/com/baeldung/math/multiswarm/Particle.java similarity index 98% rename from algorithms-miscellaneous-1/src/main/java/com/baeldung/algorithms/multiswarm/Particle.java rename to algorithms-miscellaneous-1/src/main/java/com/baeldung/math/multiswarm/Particle.java index 5930a94267..df25b1a14f 100644 --- a/algorithms-miscellaneous-1/src/main/java/com/baeldung/algorithms/multiswarm/Particle.java +++ b/algorithms-miscellaneous-1/src/main/java/com/baeldung/math/multiswarm/Particle.java @@ -1,4 +1,4 @@ -package com.baeldung.algorithms.multiswarm; +package com.baeldung.math.multiswarm; import java.util.Arrays; diff --git a/algorithms-miscellaneous-1/src/main/java/com/baeldung/algorithms/multiswarm/Swarm.java b/algorithms-miscellaneous-1/src/main/java/com/baeldung/math/multiswarm/Swarm.java similarity index 98% rename from algorithms-miscellaneous-1/src/main/java/com/baeldung/algorithms/multiswarm/Swarm.java rename to algorithms-miscellaneous-1/src/main/java/com/baeldung/math/multiswarm/Swarm.java index e6d37bb7e6..efa98b2628 100644 --- a/algorithms-miscellaneous-1/src/main/java/com/baeldung/algorithms/multiswarm/Swarm.java +++ b/algorithms-miscellaneous-1/src/main/java/com/baeldung/math/multiswarm/Swarm.java @@ -1,4 +1,4 @@ -package com.baeldung.algorithms.multiswarm; +package com.baeldung.math.multiswarm; import java.util.Arrays; import java.util.Random; diff --git a/algorithms-miscellaneous-1/src/main/java/com/baeldung/algorithms/permutation/Permutation.java b/algorithms-miscellaneous-1/src/main/java/com/baeldung/math/permutation/Permutation.java similarity index 98% rename from algorithms-miscellaneous-1/src/main/java/com/baeldung/algorithms/permutation/Permutation.java rename to algorithms-miscellaneous-1/src/main/java/com/baeldung/math/permutation/Permutation.java index 7fedd78ffb..a574adc937 100644 --- a/algorithms-miscellaneous-1/src/main/java/com/baeldung/algorithms/permutation/Permutation.java +++ b/algorithms-miscellaneous-1/src/main/java/com/baeldung/math/permutation/Permutation.java @@ -1,4 +1,4 @@ -package com.baeldung.algorithms.permutation; +package com.baeldung.math.permutation; import java.util.Arrays; import java.util.Collections; diff --git a/algorithms-miscellaneous-1/src/main/java/com/baeldung/algorithms/string/EnglishAlphabetLetters.java b/algorithms-miscellaneous-1/src/main/java/com/baeldung/math/string/EnglishAlphabetLetters.java similarity index 96% rename from algorithms-miscellaneous-1/src/main/java/com/baeldung/algorithms/string/EnglishAlphabetLetters.java rename to algorithms-miscellaneous-1/src/main/java/com/baeldung/math/string/EnglishAlphabetLetters.java index 2dd1fdcb75..ea9181a633 100644 --- a/algorithms-miscellaneous-1/src/main/java/com/baeldung/algorithms/string/EnglishAlphabetLetters.java +++ b/algorithms-miscellaneous-1/src/main/java/com/baeldung/math/string/EnglishAlphabetLetters.java @@ -1,4 +1,4 @@ -package com.baeldung.algorithms.string; +package com.baeldung.math.string; public class EnglishAlphabetLetters { diff --git a/algorithms-miscellaneous-1/src/main/java/com/baeldung/algorithms/string/LongestSubstringNonRepeatingCharacters.java b/algorithms-miscellaneous-1/src/main/java/com/baeldung/math/string/LongestSubstringNonRepeatingCharacters.java similarity index 94% rename from algorithms-miscellaneous-1/src/main/java/com/baeldung/algorithms/string/LongestSubstringNonRepeatingCharacters.java rename to algorithms-miscellaneous-1/src/main/java/com/baeldung/math/string/LongestSubstringNonRepeatingCharacters.java index cd1f3e94d5..527a5720bb 100644 --- a/algorithms-miscellaneous-1/src/main/java/com/baeldung/algorithms/string/LongestSubstringNonRepeatingCharacters.java +++ b/algorithms-miscellaneous-1/src/main/java/com/baeldung/math/string/LongestSubstringNonRepeatingCharacters.java @@ -1,4 +1,4 @@ -package com.baeldung.algorithms.string; +package com.baeldung.math.string; import java.util.HashMap; import java.util.HashSet; diff --git a/algorithms-miscellaneous-1/src/main/java/com/baeldung/algorithms/string/SubstringPalindrome.java b/algorithms-miscellaneous-1/src/main/java/com/baeldung/math/string/SubstringPalindrome.java similarity index 98% rename from algorithms-miscellaneous-1/src/main/java/com/baeldung/algorithms/string/SubstringPalindrome.java rename to algorithms-miscellaneous-1/src/main/java/com/baeldung/math/string/SubstringPalindrome.java index b3d142eb07..9c490c70e9 100644 --- a/algorithms-miscellaneous-1/src/main/java/com/baeldung/algorithms/string/SubstringPalindrome.java +++ b/algorithms-miscellaneous-1/src/main/java/com/baeldung/math/string/SubstringPalindrome.java @@ -1,4 +1,4 @@ -package com.baeldung.algorithms.string; +package com.baeldung.math.string; import java.util.HashSet; import java.util.Set; diff --git a/algorithms-miscellaneous-1/src/main/java/com/baeldung/algorithms/string/search/StringSearchAlgorithms.java b/algorithms-miscellaneous-1/src/main/java/com/baeldung/math/string/search/StringSearchAlgorithms.java similarity index 95% rename from algorithms-miscellaneous-1/src/main/java/com/baeldung/algorithms/string/search/StringSearchAlgorithms.java rename to algorithms-miscellaneous-1/src/main/java/com/baeldung/math/string/search/StringSearchAlgorithms.java index 45ac53e039..d53817332c 100755 --- a/algorithms-miscellaneous-1/src/main/java/com/baeldung/algorithms/string/search/StringSearchAlgorithms.java +++ b/algorithms-miscellaneous-1/src/main/java/com/baeldung/math/string/search/StringSearchAlgorithms.java @@ -1,4 +1,4 @@ -package com.baeldung.algorithms.string.search; +package com.baeldung.math.string.search; import java.math.BigInteger; import java.util.Random; diff --git a/algorithms-miscellaneous-1/src/main/java/com/baeldung/algorithms/twopointertechnique/LinkedListFindMiddle.java b/algorithms-miscellaneous-1/src/main/java/com/baeldung/math/twopointertechnique/LinkedListFindMiddle.java similarity index 87% rename from algorithms-miscellaneous-1/src/main/java/com/baeldung/algorithms/twopointertechnique/LinkedListFindMiddle.java rename to algorithms-miscellaneous-1/src/main/java/com/baeldung/math/twopointertechnique/LinkedListFindMiddle.java index a7031f4fba..39d612001d 100644 --- a/algorithms-miscellaneous-1/src/main/java/com/baeldung/algorithms/twopointertechnique/LinkedListFindMiddle.java +++ b/algorithms-miscellaneous-1/src/main/java/com/baeldung/math/twopointertechnique/LinkedListFindMiddle.java @@ -1,4 +1,4 @@ -package com.baeldung.algorithms.twopointertechnique; +package com.baeldung.math.twopointertechnique; public class LinkedListFindMiddle { diff --git a/algorithms-miscellaneous-1/src/main/java/com/baeldung/algorithms/twopointertechnique/MyNode.java b/algorithms-miscellaneous-1/src/main/java/com/baeldung/math/twopointertechnique/MyNode.java similarity index 84% rename from algorithms-miscellaneous-1/src/main/java/com/baeldung/algorithms/twopointertechnique/MyNode.java rename to algorithms-miscellaneous-1/src/main/java/com/baeldung/math/twopointertechnique/MyNode.java index 7d93f03ef9..9fc227d7f1 100644 --- a/algorithms-miscellaneous-1/src/main/java/com/baeldung/algorithms/twopointertechnique/MyNode.java +++ b/algorithms-miscellaneous-1/src/main/java/com/baeldung/math/twopointertechnique/MyNode.java @@ -1,4 +1,4 @@ -package com.baeldung.algorithms.twopointertechnique; +package com.baeldung.math.twopointertechnique; public class MyNode { MyNode next; diff --git a/algorithms-miscellaneous-1/src/main/java/com/baeldung/algorithms/twopointertechnique/RotateArray.java b/algorithms-miscellaneous-1/src/main/java/com/baeldung/math/twopointertechnique/RotateArray.java similarity index 90% rename from algorithms-miscellaneous-1/src/main/java/com/baeldung/algorithms/twopointertechnique/RotateArray.java rename to algorithms-miscellaneous-1/src/main/java/com/baeldung/math/twopointertechnique/RotateArray.java index b4e3698c01..6fddec6d7b 100644 --- a/algorithms-miscellaneous-1/src/main/java/com/baeldung/algorithms/twopointertechnique/RotateArray.java +++ b/algorithms-miscellaneous-1/src/main/java/com/baeldung/math/twopointertechnique/RotateArray.java @@ -1,4 +1,4 @@ -package com.baeldung.algorithms.twopointertechnique; +package com.baeldung.math.twopointertechnique; public class RotateArray { diff --git a/algorithms-miscellaneous-1/src/main/java/com/baeldung/algorithms/twopointertechnique/TwoSum.java b/algorithms-miscellaneous-1/src/main/java/com/baeldung/math/twopointertechnique/TwoSum.java similarity index 94% rename from algorithms-miscellaneous-1/src/main/java/com/baeldung/algorithms/twopointertechnique/TwoSum.java rename to algorithms-miscellaneous-1/src/main/java/com/baeldung/math/twopointertechnique/TwoSum.java index 14eceaa1bd..46e6ba7439 100644 --- a/algorithms-miscellaneous-1/src/main/java/com/baeldung/algorithms/twopointertechnique/TwoSum.java +++ b/algorithms-miscellaneous-1/src/main/java/com/baeldung/math/twopointertechnique/TwoSum.java @@ -1,4 +1,4 @@ -package com.baeldung.algorithms.twopointertechnique; +package com.baeldung.math.twopointertechnique; public class TwoSum { diff --git a/algorithms-miscellaneous-1/src/test/java/com/baeldung/algorithms/HillClimbingAlgorithmUnitTest.java b/algorithms-miscellaneous-1/src/test/java/com/baeldung/math/HillClimbingAlgorithmUnitTest.java similarity index 92% rename from algorithms-miscellaneous-1/src/test/java/com/baeldung/algorithms/HillClimbingAlgorithmUnitTest.java rename to algorithms-miscellaneous-1/src/test/java/com/baeldung/math/HillClimbingAlgorithmUnitTest.java index e817d195b3..c11a223b3e 100644 --- a/algorithms-miscellaneous-1/src/test/java/com/baeldung/algorithms/HillClimbingAlgorithmUnitTest.java +++ b/algorithms-miscellaneous-1/src/test/java/com/baeldung/math/HillClimbingAlgorithmUnitTest.java @@ -1,7 +1,7 @@ -package com.baeldung.algorithms; +package com.baeldung.math; -import com.baeldung.algorithms.hillclimbing.HillClimbing; -import com.baeldung.algorithms.hillclimbing.State; +import com.baeldung.math.hillclimbing.HillClimbing; +import com.baeldung.math.hillclimbing.State; import org.junit.Before; import org.junit.Test; diff --git a/algorithms-miscellaneous-1/src/test/java/com/baeldung/algorithms/MiddleElementLookupUnitTest.java b/algorithms-miscellaneous-1/src/test/java/com/baeldung/math/MiddleElementLookupUnitTest.java similarity index 95% rename from algorithms-miscellaneous-1/src/test/java/com/baeldung/algorithms/MiddleElementLookupUnitTest.java rename to algorithms-miscellaneous-1/src/test/java/com/baeldung/math/MiddleElementLookupUnitTest.java index 2cda0ccb36..e2ea92d9dd 100644 --- a/algorithms-miscellaneous-1/src/test/java/com/baeldung/algorithms/MiddleElementLookupUnitTest.java +++ b/algorithms-miscellaneous-1/src/test/java/com/baeldung/math/MiddleElementLookupUnitTest.java @@ -1,7 +1,7 @@ -package com.baeldung.algorithms; +package com.baeldung.math; -import com.baeldung.algorithms.middleelementlookup.MiddleElementLookup; -import com.baeldung.algorithms.middleelementlookup.Node; +import com.baeldung.math.middleelementlookup.MiddleElementLookup; +import com.baeldung.math.middleelementlookup.Node; import org.junit.Test; import java.util.LinkedList; diff --git a/algorithms-miscellaneous-1/src/test/java/com/baeldung/algorithms/RtFiniteStateMachineLongRunningUnitTest.java b/algorithms-miscellaneous-1/src/test/java/com/baeldung/math/RtFiniteStateMachineLongRunningUnitTest.java similarity index 97% rename from algorithms-miscellaneous-1/src/test/java/com/baeldung/algorithms/RtFiniteStateMachineLongRunningUnitTest.java rename to algorithms-miscellaneous-1/src/test/java/com/baeldung/math/RtFiniteStateMachineLongRunningUnitTest.java index fddccfcd9f..637842717c 100644 --- a/algorithms-miscellaneous-1/src/test/java/com/baeldung/algorithms/RtFiniteStateMachineLongRunningUnitTest.java +++ b/algorithms-miscellaneous-1/src/test/java/com/baeldung/math/RtFiniteStateMachineLongRunningUnitTest.java @@ -1,6 +1,6 @@ -package com.baeldung.algorithms; +package com.baeldung.math; -import com.baeldung.algorithms.automata.*; +import com.baeldung.math.automata.*; import org.junit.Test; import static org.junit.Assert.assertTrue; diff --git a/algorithms-miscellaneous-1/src/test/java/com/baeldung/algorithms/StringSearchAlgorithmsUnitTest.java b/algorithms-miscellaneous-1/src/test/java/com/baeldung/math/StringSearchAlgorithmsUnitTest.java similarity index 88% rename from algorithms-miscellaneous-1/src/test/java/com/baeldung/algorithms/StringSearchAlgorithmsUnitTest.java rename to algorithms-miscellaneous-1/src/test/java/com/baeldung/math/StringSearchAlgorithmsUnitTest.java index dfe015aad2..bd69f0085d 100755 --- a/algorithms-miscellaneous-1/src/test/java/com/baeldung/algorithms/StringSearchAlgorithmsUnitTest.java +++ b/algorithms-miscellaneous-1/src/test/java/com/baeldung/math/StringSearchAlgorithmsUnitTest.java @@ -1,10 +1,10 @@ -package com.baeldung.algorithms; +package com.baeldung.math; import org.junit.Assert; import org.junit.Test; -import com.baeldung.algorithms.string.search.StringSearchAlgorithms; +import com.baeldung.math.string.search.StringSearchAlgorithms; public class StringSearchAlgorithmsUnitTest { diff --git a/algorithms-miscellaneous-1/src/test/java/com/baeldung/algorithms/binarysearch/BinarySearchUnitTest.java b/algorithms-miscellaneous-1/src/test/java/com/baeldung/math/binarysearch/BinarySearchUnitTest.java similarity index 91% rename from algorithms-miscellaneous-1/src/test/java/com/baeldung/algorithms/binarysearch/BinarySearchUnitTest.java rename to algorithms-miscellaneous-1/src/test/java/com/baeldung/math/binarysearch/BinarySearchUnitTest.java index 826682d373..61c6a838d8 100644 --- a/algorithms-miscellaneous-1/src/test/java/com/baeldung/algorithms/binarysearch/BinarySearchUnitTest.java +++ b/algorithms-miscellaneous-1/src/test/java/com/baeldung/math/binarysearch/BinarySearchUnitTest.java @@ -1,11 +1,10 @@ -package com.baeldung.algorithms.binarysearch; +package com.baeldung.math.binarysearch; import java.util.Arrays; import java.util.List; import org.junit.Assert; import org.junit.Test; -import com.baeldung.algorithms.binarysearch.BinarySearch; public class BinarySearchUnitTest { diff --git a/algorithms-miscellaneous-1/src/test/java/com/baeldung/algorithms/combination/CombinationUnitTest.java b/algorithms-miscellaneous-1/src/test/java/com/baeldung/math/combination/CombinationUnitTest.java similarity index 96% rename from algorithms-miscellaneous-1/src/test/java/com/baeldung/algorithms/combination/CombinationUnitTest.java rename to algorithms-miscellaneous-1/src/test/java/com/baeldung/math/combination/CombinationUnitTest.java index 987b6ddae6..54c57038a9 100644 --- a/algorithms-miscellaneous-1/src/test/java/com/baeldung/algorithms/combination/CombinationUnitTest.java +++ b/algorithms-miscellaneous-1/src/test/java/com/baeldung/math/combination/CombinationUnitTest.java @@ -1,4 +1,4 @@ -package com.baeldung.algorithms.combination; +package com.baeldung.math.combination; import static org.junit.jupiter.api.Assertions.assertEquals; diff --git a/algorithms-miscellaneous-1/src/test/java/com/baeldung/algorithms/enumstatemachine/LeaveRequestStateUnitTest.java b/algorithms-miscellaneous-1/src/test/java/com/baeldung/math/enumstatemachine/LeaveRequestStateUnitTest.java similarity index 95% rename from algorithms-miscellaneous-1/src/test/java/com/baeldung/algorithms/enumstatemachine/LeaveRequestStateUnitTest.java rename to algorithms-miscellaneous-1/src/test/java/com/baeldung/math/enumstatemachine/LeaveRequestStateUnitTest.java index 61ed6b3aec..558ce0a0b2 100644 --- a/algorithms-miscellaneous-1/src/test/java/com/baeldung/algorithms/enumstatemachine/LeaveRequestStateUnitTest.java +++ b/algorithms-miscellaneous-1/src/test/java/com/baeldung/math/enumstatemachine/LeaveRequestStateUnitTest.java @@ -1,4 +1,4 @@ -package com.baeldung.algorithms.enumstatemachine; +package com.baeldung.math.enumstatemachine; import static org.junit.Assert.assertEquals; diff --git a/algorithms-miscellaneous-1/src/test/java/com/baeldung/algorithms/factorial/FactorialUnitTest.java b/algorithms-miscellaneous-1/src/test/java/com/baeldung/math/factorial/FactorialUnitTest.java similarity index 97% rename from algorithms-miscellaneous-1/src/test/java/com/baeldung/algorithms/factorial/FactorialUnitTest.java rename to algorithms-miscellaneous-1/src/test/java/com/baeldung/math/factorial/FactorialUnitTest.java index c185dba62b..654d45747a 100644 --- a/algorithms-miscellaneous-1/src/test/java/com/baeldung/algorithms/factorial/FactorialUnitTest.java +++ b/algorithms-miscellaneous-1/src/test/java/com/baeldung/math/factorial/FactorialUnitTest.java @@ -1,4 +1,4 @@ -package com.baeldung.algorithms.factorial; +package com.baeldung.math.factorial; import static org.assertj.core.api.Assertions.assertThat; diff --git a/algorithms-miscellaneous-1/src/test/java/com/baeldung/algorithms/kthlargest/FindKthLargestUnitTest.java b/algorithms-miscellaneous-1/src/test/java/com/baeldung/math/kthlargest/FindKthLargestUnitTest.java similarity index 97% rename from algorithms-miscellaneous-1/src/test/java/com/baeldung/algorithms/kthlargest/FindKthLargestUnitTest.java rename to algorithms-miscellaneous-1/src/test/java/com/baeldung/math/kthlargest/FindKthLargestUnitTest.java index 6fbb7c163a..47d18fd02a 100644 --- a/algorithms-miscellaneous-1/src/test/java/com/baeldung/algorithms/kthlargest/FindKthLargestUnitTest.java +++ b/algorithms-miscellaneous-1/src/test/java/com/baeldung/math/kthlargest/FindKthLargestUnitTest.java @@ -1,4 +1,4 @@ -package com.baeldung.algorithms.kthlargest; +package com.baeldung.math.kthlargest; import static org.assertj.core.api.Assertions.*; diff --git a/algorithms-miscellaneous-1/src/test/java/com/baeldung/algorithms/mcts/MCTSUnitTest.java b/algorithms-miscellaneous-1/src/test/java/com/baeldung/math/mcts/MCTSUnitTest.java similarity index 87% rename from algorithms-miscellaneous-1/src/test/java/com/baeldung/algorithms/mcts/MCTSUnitTest.java rename to algorithms-miscellaneous-1/src/test/java/com/baeldung/math/mcts/MCTSUnitTest.java index 59afed65de..56c8b1fb5a 100644 --- a/algorithms-miscellaneous-1/src/test/java/com/baeldung/algorithms/mcts/MCTSUnitTest.java +++ b/algorithms-miscellaneous-1/src/test/java/com/baeldung/math/mcts/MCTSUnitTest.java @@ -1,4 +1,4 @@ -package com.baeldung.algorithms.mcts; +package com.baeldung.math.mcts; import static org.junit.Assert.assertEquals; import static org.junit.Assert.assertTrue; @@ -8,12 +8,12 @@ import java.util.List; import org.junit.Before; import org.junit.Test; -import com.baeldung.algorithms.mcts.montecarlo.MonteCarloTreeSearch; -import com.baeldung.algorithms.mcts.montecarlo.State; -import com.baeldung.algorithms.mcts.montecarlo.UCT; -import com.baeldung.algorithms.mcts.tictactoe.Board; -import com.baeldung.algorithms.mcts.tictactoe.Position; -import com.baeldung.algorithms.mcts.tree.Tree; +import com.baeldung.math.mcts.montecarlo.MonteCarloTreeSearch; +import com.baeldung.math.mcts.montecarlo.State; +import com.baeldung.math.mcts.montecarlo.UCT; +import com.baeldung.math.mcts.tictactoe.Board; +import com.baeldung.math.mcts.tictactoe.Position; +import com.baeldung.math.mcts.tree.Tree; public class MCTSUnitTest { private Tree gameTree; diff --git a/algorithms-miscellaneous-1/src/test/java/com/baeldung/algorithms/minimax/MinimaxUnitTest.java b/algorithms-miscellaneous-1/src/test/java/com/baeldung/math/minimax/MinimaxUnitTest.java similarity index 85% rename from algorithms-miscellaneous-1/src/test/java/com/baeldung/algorithms/minimax/MinimaxUnitTest.java rename to algorithms-miscellaneous-1/src/test/java/com/baeldung/math/minimax/MinimaxUnitTest.java index 59f0fcf053..bcf03780c5 100644 --- a/algorithms-miscellaneous-1/src/test/java/com/baeldung/algorithms/minimax/MinimaxUnitTest.java +++ b/algorithms-miscellaneous-1/src/test/java/com/baeldung/math/minimax/MinimaxUnitTest.java @@ -1,11 +1,9 @@ -package com.baeldung.algorithms.minimax; +package com.baeldung.math.minimax; import org.junit.Before; import org.junit.Test; import static org.junit.Assert.*; -import com.baeldung.algorithms.minimax.MiniMax; -import com.baeldung.algorithms.minimax.Tree; public class MinimaxUnitTest { private Tree gameTree; diff --git a/algorithms-miscellaneous-1/src/test/java/com/baeldung/algorithms/multiswarm/LolFitnessFunction.java b/algorithms-miscellaneous-1/src/test/java/com/baeldung/math/multiswarm/LolFitnessFunction.java similarity index 96% rename from algorithms-miscellaneous-1/src/test/java/com/baeldung/algorithms/multiswarm/LolFitnessFunction.java rename to algorithms-miscellaneous-1/src/test/java/com/baeldung/math/multiswarm/LolFitnessFunction.java index 726d4c135d..b8c047a287 100644 --- a/algorithms-miscellaneous-1/src/test/java/com/baeldung/algorithms/multiswarm/LolFitnessFunction.java +++ b/algorithms-miscellaneous-1/src/test/java/com/baeldung/math/multiswarm/LolFitnessFunction.java @@ -1,4 +1,4 @@ -package com.baeldung.algorithms.multiswarm; +package com.baeldung.math.multiswarm; /** * Specific fitness function implementation to solve the League of Legends diff --git a/algorithms-miscellaneous-1/src/test/java/com/baeldung/algorithms/multiswarm/MultiswarmUnitTest.java b/algorithms-miscellaneous-1/src/test/java/com/baeldung/math/multiswarm/MultiswarmUnitTest.java similarity index 94% rename from algorithms-miscellaneous-1/src/test/java/com/baeldung/algorithms/multiswarm/MultiswarmUnitTest.java rename to algorithms-miscellaneous-1/src/test/java/com/baeldung/math/multiswarm/MultiswarmUnitTest.java index 3455cd3932..2c464a9bab 100644 --- a/algorithms-miscellaneous-1/src/test/java/com/baeldung/algorithms/multiswarm/MultiswarmUnitTest.java +++ b/algorithms-miscellaneous-1/src/test/java/com/baeldung/math/multiswarm/MultiswarmUnitTest.java @@ -1,10 +1,10 @@ -package com.baeldung.algorithms.multiswarm; +package com.baeldung.math.multiswarm; import org.junit.Assert; import org.junit.Rule; import org.junit.Test; -import com.baeldung.algorithms.support.MayFailRule; +import com.baeldung.math.support.MayFailRule; /** * Test for {@link Multiswarm}. diff --git a/algorithms-miscellaneous-1/src/test/java/com/baeldung/algorithms/string/EnglishAlphabetLettersUnitTest.java b/algorithms-miscellaneous-1/src/test/java/com/baeldung/math/string/EnglishAlphabetLettersUnitTest.java similarity index 94% rename from algorithms-miscellaneous-1/src/test/java/com/baeldung/algorithms/string/EnglishAlphabetLettersUnitTest.java rename to algorithms-miscellaneous-1/src/test/java/com/baeldung/math/string/EnglishAlphabetLettersUnitTest.java index 54863cddc8..c4d6263d2b 100644 --- a/algorithms-miscellaneous-1/src/test/java/com/baeldung/algorithms/string/EnglishAlphabetLettersUnitTest.java +++ b/algorithms-miscellaneous-1/src/test/java/com/baeldung/math/string/EnglishAlphabetLettersUnitTest.java @@ -1,4 +1,4 @@ -package com.baeldung.algorithms.string; +package com.baeldung.math.string; import org.junit.jupiter.api.Assertions; import org.junit.jupiter.api.Test; diff --git a/algorithms-miscellaneous-1/src/test/java/com/baeldung/algorithms/string/LongestSubstringNonRepeatingCharactersUnitTest.java b/algorithms-miscellaneous-1/src/test/java/com/baeldung/math/string/LongestSubstringNonRepeatingCharactersUnitTest.java similarity index 81% rename from algorithms-miscellaneous-1/src/test/java/com/baeldung/algorithms/string/LongestSubstringNonRepeatingCharactersUnitTest.java rename to algorithms-miscellaneous-1/src/test/java/com/baeldung/math/string/LongestSubstringNonRepeatingCharactersUnitTest.java index 9f1e6a2519..ffce33dd4c 100644 --- a/algorithms-miscellaneous-1/src/test/java/com/baeldung/algorithms/string/LongestSubstringNonRepeatingCharactersUnitTest.java +++ b/algorithms-miscellaneous-1/src/test/java/com/baeldung/math/string/LongestSubstringNonRepeatingCharactersUnitTest.java @@ -1,10 +1,10 @@ -package com.baeldung.algorithms.string; +package com.baeldung.math.string; import org.junit.jupiter.api.Test; import static org.junit.jupiter.api.Assertions.assertEquals; -import static com.baeldung.algorithms.string.LongestSubstringNonRepeatingCharacters.getUniqueCharacterSubstring; -import static com.baeldung.algorithms.string.LongestSubstringNonRepeatingCharacters.getUniqueCharacterSubstringBruteForce; +import static com.baeldung.math.string.LongestSubstringNonRepeatingCharacters.getUniqueCharacterSubstring; +import static com.baeldung.math.string.LongestSubstringNonRepeatingCharacters.getUniqueCharacterSubstringBruteForce; public class LongestSubstringNonRepeatingCharactersUnitTest { diff --git a/algorithms-miscellaneous-1/src/test/java/com/baeldung/algorithms/string/SubstringPalindromeUnitTest.java b/algorithms-miscellaneous-1/src/test/java/com/baeldung/math/string/SubstringPalindromeUnitTest.java similarity index 98% rename from algorithms-miscellaneous-1/src/test/java/com/baeldung/algorithms/string/SubstringPalindromeUnitTest.java rename to algorithms-miscellaneous-1/src/test/java/com/baeldung/math/string/SubstringPalindromeUnitTest.java index 8d225f67fa..f8767c86f8 100644 --- a/algorithms-miscellaneous-1/src/test/java/com/baeldung/algorithms/string/SubstringPalindromeUnitTest.java +++ b/algorithms-miscellaneous-1/src/test/java/com/baeldung/math/string/SubstringPalindromeUnitTest.java @@ -1,4 +1,4 @@ -package com.baeldung.algorithms.string; +package com.baeldung.math.string; import static org.junit.Assert.assertEquals; import java.util.HashSet; diff --git a/algorithms-miscellaneous-1/src/test/java/com/baeldung/algorithms/support/MayFailRule.java b/algorithms-miscellaneous-1/src/test/java/com/baeldung/math/support/MayFailRule.java similarity index 95% rename from algorithms-miscellaneous-1/src/test/java/com/baeldung/algorithms/support/MayFailRule.java rename to algorithms-miscellaneous-1/src/test/java/com/baeldung/math/support/MayFailRule.java index 91df78ce4a..500154e24f 100644 --- a/algorithms-miscellaneous-1/src/test/java/com/baeldung/algorithms/support/MayFailRule.java +++ b/algorithms-miscellaneous-1/src/test/java/com/baeldung/math/support/MayFailRule.java @@ -1,4 +1,4 @@ -package com.baeldung.algorithms.support; +package com.baeldung.math.support; import org.junit.Rule; import org.junit.rules.TestRule; diff --git a/algorithms-miscellaneous-1/src/test/java/com/baeldung/algorithms/twopointertechnique/LinkedListFindMiddleUnitTest.java b/algorithms-miscellaneous-1/src/test/java/com/baeldung/math/twopointertechnique/LinkedListFindMiddleUnitTest.java similarity index 94% rename from algorithms-miscellaneous-1/src/test/java/com/baeldung/algorithms/twopointertechnique/LinkedListFindMiddleUnitTest.java rename to algorithms-miscellaneous-1/src/test/java/com/baeldung/math/twopointertechnique/LinkedListFindMiddleUnitTest.java index 422a53fa3e..54077282c7 100644 --- a/algorithms-miscellaneous-1/src/test/java/com/baeldung/algorithms/twopointertechnique/LinkedListFindMiddleUnitTest.java +++ b/algorithms-miscellaneous-1/src/test/java/com/baeldung/math/twopointertechnique/LinkedListFindMiddleUnitTest.java @@ -1,4 +1,4 @@ -package com.baeldung.algorithms.twopointertechnique; +package com.baeldung.math.twopointertechnique; import static org.assertj.core.api.Assertions.assertThat; diff --git a/algorithms-miscellaneous-1/src/test/java/com/baeldung/algorithms/twopointertechnique/RotateArrayUnitTest.java b/algorithms-miscellaneous-1/src/test/java/com/baeldung/math/twopointertechnique/RotateArrayUnitTest.java similarity index 90% rename from algorithms-miscellaneous-1/src/test/java/com/baeldung/algorithms/twopointertechnique/RotateArrayUnitTest.java rename to algorithms-miscellaneous-1/src/test/java/com/baeldung/math/twopointertechnique/RotateArrayUnitTest.java index da227ae751..60b86dd213 100644 --- a/algorithms-miscellaneous-1/src/test/java/com/baeldung/algorithms/twopointertechnique/RotateArrayUnitTest.java +++ b/algorithms-miscellaneous-1/src/test/java/com/baeldung/math/twopointertechnique/RotateArrayUnitTest.java @@ -1,4 +1,4 @@ -package com.baeldung.algorithms.twopointertechnique; +package com.baeldung.math.twopointertechnique; import static org.assertj.core.api.Assertions.assertThat; diff --git a/algorithms-miscellaneous-1/src/test/java/com/baeldung/algorithms/twopointertechnique/TwoSumUnitTest.java b/algorithms-miscellaneous-1/src/test/java/com/baeldung/math/twopointertechnique/TwoSumUnitTest.java similarity index 96% rename from algorithms-miscellaneous-1/src/test/java/com/baeldung/algorithms/twopointertechnique/TwoSumUnitTest.java rename to algorithms-miscellaneous-1/src/test/java/com/baeldung/math/twopointertechnique/TwoSumUnitTest.java index aa76f8e1cf..3529e4a1ee 100644 --- a/algorithms-miscellaneous-1/src/test/java/com/baeldung/algorithms/twopointertechnique/TwoSumUnitTest.java +++ b/algorithms-miscellaneous-1/src/test/java/com/baeldung/math/twopointertechnique/TwoSumUnitTest.java @@ -1,4 +1,4 @@ -package com.baeldung.algorithms.twopointertechnique; +package com.baeldung.math.twopointertechnique; import static org.junit.Assert.assertFalse; import static org.junit.Assert.assertTrue; diff --git a/algorithms-miscellaneous-2/src/main/java/com/baeldung/algorithms/RunAlgorithm.java b/algorithms-miscellaneous-2/src/main/java/com/baeldung/algorithms/RunAlgorithm.java index a1a096bc30..fbf55f53a1 100644 --- a/algorithms-miscellaneous-2/src/main/java/com/baeldung/algorithms/RunAlgorithm.java +++ b/algorithms-miscellaneous-2/src/main/java/com/baeldung/algorithms/RunAlgorithm.java @@ -1,8 +1,8 @@ -package com.baeldung.algorithms; +package com.baeldung.math; import java.util.Scanner; -import com.baeldung.algorithms.slope_one.SlopeOne; +import com.baeldung.math.slope_one.SlopeOne; public class RunAlgorithm { diff --git a/algorithms-miscellaneous-2/src/main/java/com/baeldung/algorithms/conversion/HexStringConverter.java b/algorithms-miscellaneous-2/src/main/java/com/baeldung/algorithms/conversion/HexStringConverter.java index d3e251d3fd..149191895f 100644 --- a/algorithms-miscellaneous-2/src/main/java/com/baeldung/algorithms/conversion/HexStringConverter.java +++ b/algorithms-miscellaneous-2/src/main/java/com/baeldung/algorithms/conversion/HexStringConverter.java @@ -1,4 +1,4 @@ -package com.baeldung.algorithms.conversion; +package com.baeldung.math.conversion; import java.math.BigInteger; diff --git a/algorithms-miscellaneous-2/src/main/java/com/baeldung/algorithms/editdistance/EditDistanceBase.java b/algorithms-miscellaneous-2/src/main/java/com/baeldung/algorithms/editdistance/EditDistanceBase.java index 4df1de9994..be0bc670a1 100644 --- a/algorithms-miscellaneous-2/src/main/java/com/baeldung/algorithms/editdistance/EditDistanceBase.java +++ b/algorithms-miscellaneous-2/src/main/java/com/baeldung/algorithms/editdistance/EditDistanceBase.java @@ -1,4 +1,4 @@ -package com.baeldung.algorithms.editdistance; +package com.baeldung.math.editdistance; import java.util.Arrays; diff --git a/algorithms-miscellaneous-2/src/main/java/com/baeldung/algorithms/editdistance/EditDistanceDynamicProgramming.java b/algorithms-miscellaneous-2/src/main/java/com/baeldung/algorithms/editdistance/EditDistanceDynamicProgramming.java index 10ce43bf5f..45d7302148 100644 --- a/algorithms-miscellaneous-2/src/main/java/com/baeldung/algorithms/editdistance/EditDistanceDynamicProgramming.java +++ b/algorithms-miscellaneous-2/src/main/java/com/baeldung/algorithms/editdistance/EditDistanceDynamicProgramming.java @@ -1,4 +1,4 @@ -package com.baeldung.algorithms.editdistance; +package com.baeldung.math.editdistance; public class EditDistanceDynamicProgramming extends EditDistanceBase { diff --git a/algorithms-miscellaneous-2/src/main/java/com/baeldung/algorithms/editdistance/EditDistanceRecursive.java b/algorithms-miscellaneous-2/src/main/java/com/baeldung/algorithms/editdistance/EditDistanceRecursive.java index fc907c45f8..ca26a84262 100644 --- a/algorithms-miscellaneous-2/src/main/java/com/baeldung/algorithms/editdistance/EditDistanceRecursive.java +++ b/algorithms-miscellaneous-2/src/main/java/com/baeldung/algorithms/editdistance/EditDistanceRecursive.java @@ -1,4 +1,4 @@ -package com.baeldung.algorithms.editdistance; +package com.baeldung.math.editdistance; public class EditDistanceRecursive extends EditDistanceBase { diff --git a/algorithms-miscellaneous-2/src/main/java/com/baeldung/algorithms/ga/dijkstra/Dijkstra.java b/algorithms-miscellaneous-2/src/main/java/com/baeldung/algorithms/ga/dijkstra/Dijkstra.java index 0b01e9b48b..ed357bb275 100644 --- a/algorithms-miscellaneous-2/src/main/java/com/baeldung/algorithms/ga/dijkstra/Dijkstra.java +++ b/algorithms-miscellaneous-2/src/main/java/com/baeldung/algorithms/ga/dijkstra/Dijkstra.java @@ -1,4 +1,4 @@ -package com.baeldung.algorithms.ga.dijkstra; +package com.baeldung.math.ga.dijkstra; import java.util.HashSet; import java.util.LinkedList; diff --git a/algorithms-miscellaneous-2/src/main/java/com/baeldung/algorithms/ga/dijkstra/Graph.java b/algorithms-miscellaneous-2/src/main/java/com/baeldung/algorithms/ga/dijkstra/Graph.java index 76694ed76e..c61d580f72 100644 --- a/algorithms-miscellaneous-2/src/main/java/com/baeldung/algorithms/ga/dijkstra/Graph.java +++ b/algorithms-miscellaneous-2/src/main/java/com/baeldung/algorithms/ga/dijkstra/Graph.java @@ -1,4 +1,4 @@ -package com.baeldung.algorithms.ga.dijkstra; +package com.baeldung.math.ga.dijkstra; import java.util.HashSet; import java.util.Set; diff --git a/algorithms-miscellaneous-2/src/main/java/com/baeldung/algorithms/ga/dijkstra/Node.java b/algorithms-miscellaneous-2/src/main/java/com/baeldung/algorithms/ga/dijkstra/Node.java index ac34bfadd1..b2d2b80445 100644 --- a/algorithms-miscellaneous-2/src/main/java/com/baeldung/algorithms/ga/dijkstra/Node.java +++ b/algorithms-miscellaneous-2/src/main/java/com/baeldung/algorithms/ga/dijkstra/Node.java @@ -1,4 +1,4 @@ -package com.baeldung.algorithms.ga.dijkstra; +package com.baeldung.math.ga.dijkstra; import java.util.HashMap; import java.util.LinkedList; diff --git a/algorithms-miscellaneous-2/src/main/java/com/baeldung/algorithms/linkedlist/CycleDetectionBruteForce.java b/algorithms-miscellaneous-2/src/main/java/com/baeldung/algorithms/linkedlist/CycleDetectionBruteForce.java index 907bd9042d..d578cbea26 100644 --- a/algorithms-miscellaneous-2/src/main/java/com/baeldung/algorithms/linkedlist/CycleDetectionBruteForce.java +++ b/algorithms-miscellaneous-2/src/main/java/com/baeldung/algorithms/linkedlist/CycleDetectionBruteForce.java @@ -1,4 +1,4 @@ -package com.baeldung.algorithms.linkedlist; +package com.baeldung.math.linkedlist; public class CycleDetectionBruteForce { diff --git a/algorithms-miscellaneous-2/src/main/java/com/baeldung/algorithms/linkedlist/CycleDetectionByFastAndSlowIterators.java b/algorithms-miscellaneous-2/src/main/java/com/baeldung/algorithms/linkedlist/CycleDetectionByFastAndSlowIterators.java index 2817f6f783..84ebb1ab01 100644 --- a/algorithms-miscellaneous-2/src/main/java/com/baeldung/algorithms/linkedlist/CycleDetectionByFastAndSlowIterators.java +++ b/algorithms-miscellaneous-2/src/main/java/com/baeldung/algorithms/linkedlist/CycleDetectionByFastAndSlowIterators.java @@ -1,4 +1,4 @@ -package com.baeldung.algorithms.linkedlist; +package com.baeldung.math.linkedlist; public class CycleDetectionByFastAndSlowIterators { diff --git a/algorithms-miscellaneous-2/src/main/java/com/baeldung/algorithms/linkedlist/CycleDetectionByHashing.java b/algorithms-miscellaneous-2/src/main/java/com/baeldung/algorithms/linkedlist/CycleDetectionByHashing.java index fba4cad2e6..23b322b50a 100644 --- a/algorithms-miscellaneous-2/src/main/java/com/baeldung/algorithms/linkedlist/CycleDetectionByHashing.java +++ b/algorithms-miscellaneous-2/src/main/java/com/baeldung/algorithms/linkedlist/CycleDetectionByHashing.java @@ -1,4 +1,4 @@ -package com.baeldung.algorithms.linkedlist; +package com.baeldung.math.linkedlist; import java.util.HashSet; import java.util.Set; diff --git a/algorithms-miscellaneous-2/src/main/java/com/baeldung/algorithms/linkedlist/CycleDetectionResult.java b/algorithms-miscellaneous-2/src/main/java/com/baeldung/algorithms/linkedlist/CycleDetectionResult.java index 4e258ec2ef..8da593564f 100644 --- a/algorithms-miscellaneous-2/src/main/java/com/baeldung/algorithms/linkedlist/CycleDetectionResult.java +++ b/algorithms-miscellaneous-2/src/main/java/com/baeldung/algorithms/linkedlist/CycleDetectionResult.java @@ -1,4 +1,4 @@ -package com.baeldung.algorithms.linkedlist; +package com.baeldung.math.linkedlist; public class CycleDetectionResult { boolean cycleExists; diff --git a/algorithms-miscellaneous-2/src/main/java/com/baeldung/algorithms/linkedlist/CycleRemovalBruteForce.java b/algorithms-miscellaneous-2/src/main/java/com/baeldung/algorithms/linkedlist/CycleRemovalBruteForce.java index 216ebcdde3..450c8b8b49 100644 --- a/algorithms-miscellaneous-2/src/main/java/com/baeldung/algorithms/linkedlist/CycleRemovalBruteForce.java +++ b/algorithms-miscellaneous-2/src/main/java/com/baeldung/algorithms/linkedlist/CycleRemovalBruteForce.java @@ -1,4 +1,4 @@ -package com.baeldung.algorithms.linkedlist; +package com.baeldung.math.linkedlist; public class CycleRemovalBruteForce { diff --git a/algorithms-miscellaneous-2/src/main/java/com/baeldung/algorithms/linkedlist/CycleRemovalByCountingLoopNodes.java b/algorithms-miscellaneous-2/src/main/java/com/baeldung/algorithms/linkedlist/CycleRemovalByCountingLoopNodes.java index f961feb97d..9767089f2b 100644 --- a/algorithms-miscellaneous-2/src/main/java/com/baeldung/algorithms/linkedlist/CycleRemovalByCountingLoopNodes.java +++ b/algorithms-miscellaneous-2/src/main/java/com/baeldung/algorithms/linkedlist/CycleRemovalByCountingLoopNodes.java @@ -1,4 +1,4 @@ -package com.baeldung.algorithms.linkedlist; +package com.baeldung.math.linkedlist; public class CycleRemovalByCountingLoopNodes { diff --git a/algorithms-miscellaneous-2/src/main/java/com/baeldung/algorithms/linkedlist/CycleRemovalWithoutCountingLoopNodes.java b/algorithms-miscellaneous-2/src/main/java/com/baeldung/algorithms/linkedlist/CycleRemovalWithoutCountingLoopNodes.java index 1e41c832db..7232bc7984 100644 --- a/algorithms-miscellaneous-2/src/main/java/com/baeldung/algorithms/linkedlist/CycleRemovalWithoutCountingLoopNodes.java +++ b/algorithms-miscellaneous-2/src/main/java/com/baeldung/algorithms/linkedlist/CycleRemovalWithoutCountingLoopNodes.java @@ -1,4 +1,4 @@ -package com.baeldung.algorithms.linkedlist; +package com.baeldung.math.linkedlist; public class CycleRemovalWithoutCountingLoopNodes { diff --git a/algorithms-miscellaneous-2/src/main/java/com/baeldung/algorithms/linkedlist/Node.java b/algorithms-miscellaneous-2/src/main/java/com/baeldung/algorithms/linkedlist/Node.java index 9573bcd981..4699853d8e 100644 --- a/algorithms-miscellaneous-2/src/main/java/com/baeldung/algorithms/linkedlist/Node.java +++ b/algorithms-miscellaneous-2/src/main/java/com/baeldung/algorithms/linkedlist/Node.java @@ -1,4 +1,4 @@ -package com.baeldung.algorithms.linkedlist; +package com.baeldung.math.linkedlist; public class Node { T data; diff --git a/algorithms-miscellaneous-2/src/main/java/com/baeldung/algorithms/maze/solver/BFSMazeSolver.java b/algorithms-miscellaneous-2/src/main/java/com/baeldung/algorithms/maze/solver/BFSMazeSolver.java index 0e3101925c..ff8ed4d96e 100644 --- a/algorithms-miscellaneous-2/src/main/java/com/baeldung/algorithms/maze/solver/BFSMazeSolver.java +++ b/algorithms-miscellaneous-2/src/main/java/com/baeldung/algorithms/maze/solver/BFSMazeSolver.java @@ -1,4 +1,4 @@ -package com.baeldung.algorithms.maze.solver; +package com.baeldung.math.maze.solver; import java.util.ArrayList; import java.util.Collections; diff --git a/algorithms-miscellaneous-2/src/main/java/com/baeldung/algorithms/maze/solver/Coordinate.java b/algorithms-miscellaneous-2/src/main/java/com/baeldung/algorithms/maze/solver/Coordinate.java index 8202c89076..418e370d71 100644 --- a/algorithms-miscellaneous-2/src/main/java/com/baeldung/algorithms/maze/solver/Coordinate.java +++ b/algorithms-miscellaneous-2/src/main/java/com/baeldung/algorithms/maze/solver/Coordinate.java @@ -1,4 +1,4 @@ -package com.baeldung.algorithms.maze.solver; +package com.baeldung.math.maze.solver; public class Coordinate { int x; diff --git a/algorithms-miscellaneous-2/src/main/java/com/baeldung/algorithms/maze/solver/DFSMazeSolver.java b/algorithms-miscellaneous-2/src/main/java/com/baeldung/algorithms/maze/solver/DFSMazeSolver.java index ee821631db..bbdd53d16b 100644 --- a/algorithms-miscellaneous-2/src/main/java/com/baeldung/algorithms/maze/solver/DFSMazeSolver.java +++ b/algorithms-miscellaneous-2/src/main/java/com/baeldung/algorithms/maze/solver/DFSMazeSolver.java @@ -1,4 +1,4 @@ -package com.baeldung.algorithms.maze.solver; +package com.baeldung.math.maze.solver; import java.util.ArrayList; import java.util.Collections; diff --git a/algorithms-miscellaneous-2/src/main/java/com/baeldung/algorithms/maze/solver/Maze.java b/algorithms-miscellaneous-2/src/main/java/com/baeldung/algorithms/maze/solver/Maze.java index d0a0ed65d9..741b81ac48 100644 --- a/algorithms-miscellaneous-2/src/main/java/com/baeldung/algorithms/maze/solver/Maze.java +++ b/algorithms-miscellaneous-2/src/main/java/com/baeldung/algorithms/maze/solver/Maze.java @@ -1,4 +1,4 @@ -package com.baeldung.algorithms.maze.solver; +package com.baeldung.math.maze.solver; import java.io.File; import java.io.FileNotFoundException; diff --git a/algorithms-miscellaneous-2/src/main/java/com/baeldung/algorithms/maze/solver/MazeDriver.java b/algorithms-miscellaneous-2/src/main/java/com/baeldung/algorithms/maze/solver/MazeDriver.java index a47c3c8581..767513ce62 100644 --- a/algorithms-miscellaneous-2/src/main/java/com/baeldung/algorithms/maze/solver/MazeDriver.java +++ b/algorithms-miscellaneous-2/src/main/java/com/baeldung/algorithms/maze/solver/MazeDriver.java @@ -1,4 +1,4 @@ -package com.baeldung.algorithms.maze.solver; +package com.baeldung.math.maze.solver; import java.io.File; import java.util.List; diff --git a/algorithms-miscellaneous-2/src/main/java/com/baeldung/algorithms/numberwordconverter/NumberWordConverter.java b/algorithms-miscellaneous-2/src/main/java/com/baeldung/algorithms/numberwordconverter/NumberWordConverter.java index 0fe2960f96..c46d50bf72 100644 --- a/algorithms-miscellaneous-2/src/main/java/com/baeldung/algorithms/numberwordconverter/NumberWordConverter.java +++ b/algorithms-miscellaneous-2/src/main/java/com/baeldung/algorithms/numberwordconverter/NumberWordConverter.java @@ -1,4 +1,4 @@ -package com.baeldung.algorithms.numberwordconverter; +package com.baeldung.math.numberwordconverter; import java.math.BigDecimal; diff --git a/algorithms-miscellaneous-2/src/main/java/com/baeldung/algorithms/relativelyprime/RelativelyPrime.java b/algorithms-miscellaneous-2/src/main/java/com/baeldung/algorithms/relativelyprime/RelativelyPrime.java index fbea87be30..c3978fcc36 100644 --- a/algorithms-miscellaneous-2/src/main/java/com/baeldung/algorithms/relativelyprime/RelativelyPrime.java +++ b/algorithms-miscellaneous-2/src/main/java/com/baeldung/algorithms/relativelyprime/RelativelyPrime.java @@ -1,4 +1,4 @@ -package com.baeldung.algorithms.relativelyprime; +package com.baeldung.math.relativelyprime; import java.math.BigInteger; diff --git a/algorithms-miscellaneous-2/src/main/java/com/baeldung/algorithms/reversingtree/TreeNode.java b/algorithms-miscellaneous-2/src/main/java/com/baeldung/algorithms/reversingtree/TreeNode.java index 7905b752a9..eb8af2648d 100644 --- a/algorithms-miscellaneous-2/src/main/java/com/baeldung/algorithms/reversingtree/TreeNode.java +++ b/algorithms-miscellaneous-2/src/main/java/com/baeldung/algorithms/reversingtree/TreeNode.java @@ -1,4 +1,4 @@ -package com.baeldung.algorithms.reversingtree; +package com.baeldung.math.reversingtree; public class TreeNode { diff --git a/algorithms-miscellaneous-2/src/main/java/com/baeldung/algorithms/reversingtree/TreeReverser.java b/algorithms-miscellaneous-2/src/main/java/com/baeldung/algorithms/reversingtree/TreeReverser.java index 6d3a9ddd31..af56692ac8 100644 --- a/algorithms-miscellaneous-2/src/main/java/com/baeldung/algorithms/reversingtree/TreeReverser.java +++ b/algorithms-miscellaneous-2/src/main/java/com/baeldung/algorithms/reversingtree/TreeReverser.java @@ -1,4 +1,4 @@ -package com.baeldung.algorithms.reversingtree; +package com.baeldung.math.reversingtree; import java.util.LinkedList; diff --git a/algorithms-miscellaneous-2/src/main/java/com/baeldung/algorithms/romannumerals/RomanArabicConverter.java b/algorithms-miscellaneous-2/src/main/java/com/baeldung/algorithms/romannumerals/RomanArabicConverter.java index acd275e609..5623dde48f 100644 --- a/algorithms-miscellaneous-2/src/main/java/com/baeldung/algorithms/romannumerals/RomanArabicConverter.java +++ b/algorithms-miscellaneous-2/src/main/java/com/baeldung/algorithms/romannumerals/RomanArabicConverter.java @@ -1,4 +1,4 @@ -package com.baeldung.algorithms.romannumerals; +package com.baeldung.math.romannumerals; import java.util.List; diff --git a/algorithms-miscellaneous-2/src/main/java/com/baeldung/algorithms/romannumerals/RomanNumeral.java b/algorithms-miscellaneous-2/src/main/java/com/baeldung/algorithms/romannumerals/RomanNumeral.java index 2ee5bb6d75..66e20ce135 100644 --- a/algorithms-miscellaneous-2/src/main/java/com/baeldung/algorithms/romannumerals/RomanNumeral.java +++ b/algorithms-miscellaneous-2/src/main/java/com/baeldung/algorithms/romannumerals/RomanNumeral.java @@ -1,4 +1,4 @@ -package com.baeldung.algorithms.romannumerals; +package com.baeldung.math.romannumerals; import java.util.Arrays; import java.util.Comparator; diff --git a/algorithms-miscellaneous-2/src/main/java/com/baeldung/algorithms/slope_one/InputData.java b/algorithms-miscellaneous-2/src/main/java/com/baeldung/algorithms/slope_one/InputData.java index 68a0f11b62..1257640278 100644 --- a/algorithms-miscellaneous-2/src/main/java/com/baeldung/algorithms/slope_one/InputData.java +++ b/algorithms-miscellaneous-2/src/main/java/com/baeldung/algorithms/slope_one/InputData.java @@ -1,4 +1,4 @@ -package com.baeldung.algorithms.slope_one; +package com.baeldung.math.slope_one; import java.util.Arrays; import java.util.HashMap; diff --git a/algorithms-miscellaneous-2/src/main/java/com/baeldung/algorithms/slope_one/Item.java b/algorithms-miscellaneous-2/src/main/java/com/baeldung/algorithms/slope_one/Item.java index dec1eb9e2c..916bbdf1dd 100644 --- a/algorithms-miscellaneous-2/src/main/java/com/baeldung/algorithms/slope_one/Item.java +++ b/algorithms-miscellaneous-2/src/main/java/com/baeldung/algorithms/slope_one/Item.java @@ -1,4 +1,4 @@ -package com.baeldung.algorithms.slope_one; +package com.baeldung.math.slope_one; import lombok.AllArgsConstructor; import lombok.Data; diff --git a/algorithms-miscellaneous-2/src/main/java/com/baeldung/algorithms/slope_one/SlopeOne.java b/algorithms-miscellaneous-2/src/main/java/com/baeldung/algorithms/slope_one/SlopeOne.java index d5eea279de..8726bc6eec 100644 --- a/algorithms-miscellaneous-2/src/main/java/com/baeldung/algorithms/slope_one/SlopeOne.java +++ b/algorithms-miscellaneous-2/src/main/java/com/baeldung/algorithms/slope_one/SlopeOne.java @@ -1,4 +1,4 @@ -package com.baeldung.algorithms.slope_one; +package com.baeldung.math.slope_one; import java.text.DecimalFormat; import java.text.NumberFormat; diff --git a/algorithms-miscellaneous-2/src/main/java/com/baeldung/algorithms/slope_one/User.java b/algorithms-miscellaneous-2/src/main/java/com/baeldung/algorithms/slope_one/User.java index 32bbe84d17..83daacc50b 100644 --- a/algorithms-miscellaneous-2/src/main/java/com/baeldung/algorithms/slope_one/User.java +++ b/algorithms-miscellaneous-2/src/main/java/com/baeldung/algorithms/slope_one/User.java @@ -1,4 +1,4 @@ -package com.baeldung.algorithms.slope_one; +package com.baeldung.math.slope_one; import lombok.AllArgsConstructor; import lombok.Data; diff --git a/algorithms-miscellaneous-2/src/main/java/com/baeldung/algorithms/sudoku/BacktrackingAlgorithm.java b/algorithms-miscellaneous-2/src/main/java/com/baeldung/algorithms/sudoku/BacktrackingAlgorithm.java index 4b37558aab..7960873583 100644 --- a/algorithms-miscellaneous-2/src/main/java/com/baeldung/algorithms/sudoku/BacktrackingAlgorithm.java +++ b/algorithms-miscellaneous-2/src/main/java/com/baeldung/algorithms/sudoku/BacktrackingAlgorithm.java @@ -1,4 +1,4 @@ -package com.baeldung.algorithms.sudoku; +package com.baeldung.math.sudoku; import java.util.stream.IntStream; diff --git a/algorithms-miscellaneous-2/src/main/java/com/baeldung/algorithms/sudoku/ColumnNode.java b/algorithms-miscellaneous-2/src/main/java/com/baeldung/algorithms/sudoku/ColumnNode.java index 46995ca42f..b716ad4e4e 100644 --- a/algorithms-miscellaneous-2/src/main/java/com/baeldung/algorithms/sudoku/ColumnNode.java +++ b/algorithms-miscellaneous-2/src/main/java/com/baeldung/algorithms/sudoku/ColumnNode.java @@ -1,4 +1,4 @@ -package com.baeldung.algorithms.sudoku; +package com.baeldung.math.sudoku; class ColumnNode extends DancingNode { int size; diff --git a/algorithms-miscellaneous-2/src/main/java/com/baeldung/algorithms/sudoku/DancingLinks.java b/algorithms-miscellaneous-2/src/main/java/com/baeldung/algorithms/sudoku/DancingLinks.java index d3cbb2bd02..7717bb4e49 100644 --- a/algorithms-miscellaneous-2/src/main/java/com/baeldung/algorithms/sudoku/DancingLinks.java +++ b/algorithms-miscellaneous-2/src/main/java/com/baeldung/algorithms/sudoku/DancingLinks.java @@ -1,4 +1,4 @@ -package com.baeldung.algorithms.sudoku; +package com.baeldung.math.sudoku; import java.util.ArrayList; import java.util.LinkedList; diff --git a/algorithms-miscellaneous-2/src/main/java/com/baeldung/algorithms/sudoku/DancingLinksAlgorithm.java b/algorithms-miscellaneous-2/src/main/java/com/baeldung/algorithms/sudoku/DancingLinksAlgorithm.java index df02ff3d11..7bb45a76dc 100644 --- a/algorithms-miscellaneous-2/src/main/java/com/baeldung/algorithms/sudoku/DancingLinksAlgorithm.java +++ b/algorithms-miscellaneous-2/src/main/java/com/baeldung/algorithms/sudoku/DancingLinksAlgorithm.java @@ -1,4 +1,4 @@ -package com.baeldung.algorithms.sudoku; +package com.baeldung.math.sudoku; import java.util.Arrays; diff --git a/algorithms-miscellaneous-2/src/main/java/com/baeldung/algorithms/sudoku/DancingNode.java b/algorithms-miscellaneous-2/src/main/java/com/baeldung/algorithms/sudoku/DancingNode.java index 2422ff0dff..735ac8926e 100644 --- a/algorithms-miscellaneous-2/src/main/java/com/baeldung/algorithms/sudoku/DancingNode.java +++ b/algorithms-miscellaneous-2/src/main/java/com/baeldung/algorithms/sudoku/DancingNode.java @@ -1,4 +1,4 @@ -package com.baeldung.algorithms.sudoku; +package com.baeldung.math.sudoku; class DancingNode { DancingNode L, R, U, D; diff --git a/algorithms-miscellaneous-2/src/test/java/com/baeldung/algorithms/DijkstraAlgorithmLongRunningUnitTest.java b/algorithms-miscellaneous-2/src/test/java/com/baeldung/algorithms/DijkstraAlgorithmLongRunningUnitTest.java index bbc4d4f398..051f85d45b 100644 --- a/algorithms-miscellaneous-2/src/test/java/com/baeldung/algorithms/DijkstraAlgorithmLongRunningUnitTest.java +++ b/algorithms-miscellaneous-2/src/test/java/com/baeldung/algorithms/DijkstraAlgorithmLongRunningUnitTest.java @@ -1,10 +1,10 @@ -package com.baeldung.algorithms; +package com.baeldung.math; import org.junit.Test; -import com.baeldung.algorithms.ga.dijkstra.Dijkstra; -import com.baeldung.algorithms.ga.dijkstra.Graph; -import com.baeldung.algorithms.ga.dijkstra.Node; +import com.baeldung.math.ga.dijkstra.Dijkstra; +import com.baeldung.math.ga.dijkstra.Graph; +import com.baeldung.math.ga.dijkstra.Node; import java.util.Arrays; import java.util.List; diff --git a/algorithms-miscellaneous-2/src/test/java/com/baeldung/algorithms/analysis/AnalysisRunnerLiveTest.java b/algorithms-miscellaneous-2/src/test/java/com/baeldung/algorithms/analysis/AnalysisRunnerLiveTest.java index 1e9188f726..a1525e1353 100644 --- a/algorithms-miscellaneous-2/src/test/java/com/baeldung/algorithms/analysis/AnalysisRunnerLiveTest.java +++ b/algorithms-miscellaneous-2/src/test/java/com/baeldung/algorithms/analysis/AnalysisRunnerLiveTest.java @@ -1,4 +1,4 @@ -package com.baeldung.algorithms.analysis; +package com.baeldung.math.analysis; import org.junit.Test; diff --git a/algorithms-miscellaneous-2/src/test/java/com/baeldung/algorithms/conversion/ByteArrayConverterUnitTest.java b/algorithms-miscellaneous-2/src/test/java/com/baeldung/algorithms/conversion/ByteArrayConverterUnitTest.java index be61802705..aea4c39edd 100644 --- a/algorithms-miscellaneous-2/src/test/java/com/baeldung/algorithms/conversion/ByteArrayConverterUnitTest.java +++ b/algorithms-miscellaneous-2/src/test/java/com/baeldung/algorithms/conversion/ByteArrayConverterUnitTest.java @@ -1,4 +1,4 @@ -package com.baeldung.algorithms.conversion; +package com.baeldung.math.conversion; import static org.junit.Assert.assertArrayEquals; import static org.junit.Assert.assertEquals; @@ -9,7 +9,7 @@ import org.hamcrest.text.IsEqualIgnoringCase; import org.junit.Before; import org.junit.Test; -import com.baeldung.algorithms.conversion.HexStringConverter; +import com.baeldung.math.conversion.HexStringConverter; public class ByteArrayConverterUnitTest { diff --git a/algorithms-miscellaneous-2/src/test/java/com/baeldung/algorithms/editdistance/EditDistanceDataProvider.java b/algorithms-miscellaneous-2/src/test/java/com/baeldung/algorithms/editdistance/EditDistanceDataProvider.java index d11da61191..52acf7f1a1 100644 --- a/algorithms-miscellaneous-2/src/test/java/com/baeldung/algorithms/editdistance/EditDistanceDataProvider.java +++ b/algorithms-miscellaneous-2/src/test/java/com/baeldung/algorithms/editdistance/EditDistanceDataProvider.java @@ -1,4 +1,4 @@ -package com.baeldung.algorithms.editdistance; +package com.baeldung.math.editdistance; import org.junit.runners.Parameterized.Parameters; diff --git a/algorithms-miscellaneous-2/src/test/java/com/baeldung/algorithms/editdistance/EditDistanceUnitTest.java b/algorithms-miscellaneous-2/src/test/java/com/baeldung/algorithms/editdistance/EditDistanceUnitTest.java index 3dd63e86ab..2fa77ddfb7 100644 --- a/algorithms-miscellaneous-2/src/test/java/com/baeldung/algorithms/editdistance/EditDistanceUnitTest.java +++ b/algorithms-miscellaneous-2/src/test/java/com/baeldung/algorithms/editdistance/EditDistanceUnitTest.java @@ -1,4 +1,4 @@ -package com.baeldung.algorithms.editdistance; +package com.baeldung.math.editdistance; import org.junit.Test; import org.junit.runner.RunWith; diff --git a/algorithms-miscellaneous-2/src/test/java/com/baeldung/algorithms/linkedlist/CycleDetectionBruteForceUnitTest.java b/algorithms-miscellaneous-2/src/test/java/com/baeldung/algorithms/linkedlist/CycleDetectionBruteForceUnitTest.java index 33889fbec6..a0d619a16a 100644 --- a/algorithms-miscellaneous-2/src/test/java/com/baeldung/algorithms/linkedlist/CycleDetectionBruteForceUnitTest.java +++ b/algorithms-miscellaneous-2/src/test/java/com/baeldung/algorithms/linkedlist/CycleDetectionBruteForceUnitTest.java @@ -1,4 +1,4 @@ -package com.baeldung.algorithms.linkedlist; +package com.baeldung.math.linkedlist; import org.junit.Assert; import org.junit.Test; diff --git a/algorithms-miscellaneous-2/src/test/java/com/baeldung/algorithms/linkedlist/CycleDetectionByFastAndSlowIteratorsUnitTest.java b/algorithms-miscellaneous-2/src/test/java/com/baeldung/algorithms/linkedlist/CycleDetectionByFastAndSlowIteratorsUnitTest.java index 1496840771..1332fd5df3 100644 --- a/algorithms-miscellaneous-2/src/test/java/com/baeldung/algorithms/linkedlist/CycleDetectionByFastAndSlowIteratorsUnitTest.java +++ b/algorithms-miscellaneous-2/src/test/java/com/baeldung/algorithms/linkedlist/CycleDetectionByFastAndSlowIteratorsUnitTest.java @@ -1,4 +1,4 @@ -package com.baeldung.algorithms.linkedlist; +package com.baeldung.math.linkedlist; import org.junit.Assert; import org.junit.Test; diff --git a/algorithms-miscellaneous-2/src/test/java/com/baeldung/algorithms/linkedlist/CycleDetectionByHashingUnitTest.java b/algorithms-miscellaneous-2/src/test/java/com/baeldung/algorithms/linkedlist/CycleDetectionByHashingUnitTest.java index 136f55f834..ed2518dfae 100644 --- a/algorithms-miscellaneous-2/src/test/java/com/baeldung/algorithms/linkedlist/CycleDetectionByHashingUnitTest.java +++ b/algorithms-miscellaneous-2/src/test/java/com/baeldung/algorithms/linkedlist/CycleDetectionByHashingUnitTest.java @@ -1,4 +1,4 @@ -package com.baeldung.algorithms.linkedlist; +package com.baeldung.math.linkedlist; import org.junit.Assert; import org.junit.Test; diff --git a/algorithms-miscellaneous-2/src/test/java/com/baeldung/algorithms/linkedlist/CycleDetectionTestBase.java b/algorithms-miscellaneous-2/src/test/java/com/baeldung/algorithms/linkedlist/CycleDetectionTestBase.java index 1c6f56b20d..af8f05ffcc 100644 --- a/algorithms-miscellaneous-2/src/test/java/com/baeldung/algorithms/linkedlist/CycleDetectionTestBase.java +++ b/algorithms-miscellaneous-2/src/test/java/com/baeldung/algorithms/linkedlist/CycleDetectionTestBase.java @@ -1,4 +1,4 @@ -package com.baeldung.algorithms.linkedlist; +package com.baeldung.math.linkedlist; import java.util.Arrays; import java.util.Collection; diff --git a/algorithms-miscellaneous-2/src/test/java/com/baeldung/algorithms/linkedlist/CycleRemovalBruteForceUnitTest.java b/algorithms-miscellaneous-2/src/test/java/com/baeldung/algorithms/linkedlist/CycleRemovalBruteForceUnitTest.java index 36f08d2b76..28bddca52a 100644 --- a/algorithms-miscellaneous-2/src/test/java/com/baeldung/algorithms/linkedlist/CycleRemovalBruteForceUnitTest.java +++ b/algorithms-miscellaneous-2/src/test/java/com/baeldung/algorithms/linkedlist/CycleRemovalBruteForceUnitTest.java @@ -1,4 +1,4 @@ -package com.baeldung.algorithms.linkedlist; +package com.baeldung.math.linkedlist; import org.junit.Assert; import org.junit.Test; diff --git a/algorithms-miscellaneous-2/src/test/java/com/baeldung/algorithms/linkedlist/CycleRemovalByCountingLoopNodesUnitTest.java b/algorithms-miscellaneous-2/src/test/java/com/baeldung/algorithms/linkedlist/CycleRemovalByCountingLoopNodesUnitTest.java index cc7589c53d..c262e2ee5f 100644 --- a/algorithms-miscellaneous-2/src/test/java/com/baeldung/algorithms/linkedlist/CycleRemovalByCountingLoopNodesUnitTest.java +++ b/algorithms-miscellaneous-2/src/test/java/com/baeldung/algorithms/linkedlist/CycleRemovalByCountingLoopNodesUnitTest.java @@ -1,4 +1,4 @@ -package com.baeldung.algorithms.linkedlist; +package com.baeldung.math.linkedlist; import org.junit.Assert; import org.junit.Test; diff --git a/algorithms-miscellaneous-2/src/test/java/com/baeldung/algorithms/linkedlist/CycleRemovalWithoutCountingLoopNodesUnitTest.java b/algorithms-miscellaneous-2/src/test/java/com/baeldung/algorithms/linkedlist/CycleRemovalWithoutCountingLoopNodesUnitTest.java index 350e63dcc3..448b4df58e 100644 --- a/algorithms-miscellaneous-2/src/test/java/com/baeldung/algorithms/linkedlist/CycleRemovalWithoutCountingLoopNodesUnitTest.java +++ b/algorithms-miscellaneous-2/src/test/java/com/baeldung/algorithms/linkedlist/CycleRemovalWithoutCountingLoopNodesUnitTest.java @@ -1,4 +1,4 @@ -package com.baeldung.algorithms.linkedlist; +package com.baeldung.math.linkedlist; import org.junit.Assert; import org.junit.Test; diff --git a/algorithms-miscellaneous-2/src/test/java/com/baeldung/algorithms/moneywords/NumberWordConverterUnitTest.java b/algorithms-miscellaneous-2/src/test/java/com/baeldung/algorithms/moneywords/NumberWordConverterUnitTest.java index 26643e9c1e..8752fc4633 100644 --- a/algorithms-miscellaneous-2/src/test/java/com/baeldung/algorithms/moneywords/NumberWordConverterUnitTest.java +++ b/algorithms-miscellaneous-2/src/test/java/com/baeldung/algorithms/moneywords/NumberWordConverterUnitTest.java @@ -1,10 +1,10 @@ -package com.baeldung.algorithms.moneywords; +package com.baeldung.math.moneywords; import static org.junit.Assert.assertEquals; import org.junit.Test; -import com.baeldung.algorithms.numberwordconverter.NumberWordConverter; +import com.baeldung.math.numberwordconverter.NumberWordConverter; public class NumberWordConverterUnitTest { diff --git a/algorithms-miscellaneous-2/src/test/java/com/baeldung/algorithms/relativelyprime/RelativelyPrimeUnitTest.java b/algorithms-miscellaneous-2/src/test/java/com/baeldung/algorithms/relativelyprime/RelativelyPrimeUnitTest.java index 84bb2620af..e3b8b6e542 100644 --- a/algorithms-miscellaneous-2/src/test/java/com/baeldung/algorithms/relativelyprime/RelativelyPrimeUnitTest.java +++ b/algorithms-miscellaneous-2/src/test/java/com/baeldung/algorithms/relativelyprime/RelativelyPrimeUnitTest.java @@ -1,8 +1,8 @@ -package com.baeldung.algorithms.relativelyprime; +package com.baeldung.math.relativelyprime; import org.junit.Test; -import static com.baeldung.algorithms.relativelyprime.RelativelyPrime.*; +import static com.baeldung.math.relativelyprime.RelativelyPrime.*; import static org.assertj.core.api.Assertions.assertThat; public class RelativelyPrimeUnitTest { diff --git a/algorithms-miscellaneous-2/src/test/java/com/baeldung/algorithms/reversingtree/TreeReverserUnitTest.java b/algorithms-miscellaneous-2/src/test/java/com/baeldung/algorithms/reversingtree/TreeReverserUnitTest.java index cbc265fae1..9a1cf4ee92 100644 --- a/algorithms-miscellaneous-2/src/test/java/com/baeldung/algorithms/reversingtree/TreeReverserUnitTest.java +++ b/algorithms-miscellaneous-2/src/test/java/com/baeldung/algorithms/reversingtree/TreeReverserUnitTest.java @@ -1,4 +1,4 @@ -package com.baeldung.algorithms.reversingtree; +package com.baeldung.math.reversingtree; import static org.junit.jupiter.api.Assertions.assertEquals; diff --git a/algorithms-miscellaneous-2/src/test/java/com/baeldung/algorithms/romannumerals/RomanArabicConverterUnitTest.java b/algorithms-miscellaneous-2/src/test/java/com/baeldung/algorithms/romannumerals/RomanArabicConverterUnitTest.java index 9043cfe9cc..dbaada355f 100644 --- a/algorithms-miscellaneous-2/src/test/java/com/baeldung/algorithms/romannumerals/RomanArabicConverterUnitTest.java +++ b/algorithms-miscellaneous-2/src/test/java/com/baeldung/algorithms/romannumerals/RomanArabicConverterUnitTest.java @@ -1,4 +1,4 @@ -package com.baeldung.algorithms.romannumerals; +package com.baeldung.math.romannumerals; import static org.assertj.core.api.Assertions.assertThat; diff --git a/algorithms-sorting/src/main/java/com/baeldung/algorithms/bubblesort/BubbleSort.java b/algorithms-sorting/src/main/java/com/baeldung/algorithms/bubblesort/BubbleSort.java index 2528032676..028967d90a 100644 --- a/algorithms-sorting/src/main/java/com/baeldung/algorithms/bubblesort/BubbleSort.java +++ b/algorithms-sorting/src/main/java/com/baeldung/algorithms/bubblesort/BubbleSort.java @@ -1,4 +1,4 @@ -package com.baeldung.algorithms.bubblesort; +package com.baeldung.math.bubblesort; import java.util.stream.IntStream; diff --git a/algorithms-sorting/src/main/java/com/baeldung/algorithms/heapsort/Heap.java b/algorithms-sorting/src/main/java/com/baeldung/algorithms/heapsort/Heap.java index 8c98e4fc5c..927627aadf 100644 --- a/algorithms-sorting/src/main/java/com/baeldung/algorithms/heapsort/Heap.java +++ b/algorithms-sorting/src/main/java/com/baeldung/algorithms/heapsort/Heap.java @@ -1,4 +1,4 @@ -package com.baeldung.algorithms.heapsort; +package com.baeldung.math.heapsort; import java.util.ArrayList; import java.util.Arrays; diff --git a/algorithms-sorting/src/main/java/com/baeldung/algorithms/insertionsort/InsertionSort.java b/algorithms-sorting/src/main/java/com/baeldung/algorithms/insertionsort/InsertionSort.java index 02dd485cf1..d167d102bd 100644 --- a/algorithms-sorting/src/main/java/com/baeldung/algorithms/insertionsort/InsertionSort.java +++ b/algorithms-sorting/src/main/java/com/baeldung/algorithms/insertionsort/InsertionSort.java @@ -1,4 +1,4 @@ -package com.baeldung.algorithms.insertionsort; +package com.baeldung.math.insertionsort; public class InsertionSort { diff --git a/algorithms-sorting/src/main/java/com/baeldung/algorithms/mergesort/MergeSort.java b/algorithms-sorting/src/main/java/com/baeldung/algorithms/mergesort/MergeSort.java index 945b4ffd7e..3a16e92f5f 100644 --- a/algorithms-sorting/src/main/java/com/baeldung/algorithms/mergesort/MergeSort.java +++ b/algorithms-sorting/src/main/java/com/baeldung/algorithms/mergesort/MergeSort.java @@ -1,4 +1,4 @@ -package com.baeldung.algorithms.mergesort; +package com.baeldung.math.mergesort; public class MergeSort { diff --git a/algorithms-sorting/src/main/java/com/baeldung/algorithms/quicksort/QuickSort.java b/algorithms-sorting/src/main/java/com/baeldung/algorithms/quicksort/QuickSort.java index e113cc3242..f42d396a24 100644 --- a/algorithms-sorting/src/main/java/com/baeldung/algorithms/quicksort/QuickSort.java +++ b/algorithms-sorting/src/main/java/com/baeldung/algorithms/quicksort/QuickSort.java @@ -1,4 +1,4 @@ -package com.baeldung.algorithms.quicksort; +package com.baeldung.math.quicksort; public class QuickSort { diff --git a/algorithms-sorting/src/main/java/com/baeldung/algorithms/quicksort/ThreeWayQuickSort.java b/algorithms-sorting/src/main/java/com/baeldung/algorithms/quicksort/ThreeWayQuickSort.java index 69afbdff13..6e35f65427 100644 --- a/algorithms-sorting/src/main/java/com/baeldung/algorithms/quicksort/ThreeWayQuickSort.java +++ b/algorithms-sorting/src/main/java/com/baeldung/algorithms/quicksort/ThreeWayQuickSort.java @@ -1,4 +1,4 @@ -package com.baeldung.algorithms.quicksort; +package com.baeldung.math.quicksort; public class ThreeWayQuickSort { diff --git a/algorithms-sorting/src/test/java/com/baeldung/algorithms/bubblesort/BubbleSortUnitTest.java b/algorithms-sorting/src/test/java/com/baeldung/algorithms/bubblesort/BubbleSortUnitTest.java index 210ee2378a..995657d760 100644 --- a/algorithms-sorting/src/test/java/com/baeldung/algorithms/bubblesort/BubbleSortUnitTest.java +++ b/algorithms-sorting/src/test/java/com/baeldung/algorithms/bubblesort/BubbleSortUnitTest.java @@ -1,4 +1,4 @@ -package com.baeldung.algorithms.bubblesort; +package com.baeldung.math.bubblesort; import static org.junit.jupiter.api.Assertions.assertArrayEquals; diff --git a/algorithms-sorting/src/test/java/com/baeldung/algorithms/heapsort/HeapUnitTest.java b/algorithms-sorting/src/test/java/com/baeldung/algorithms/heapsort/HeapUnitTest.java index 96e4936eaf..15194eec07 100644 --- a/algorithms-sorting/src/test/java/com/baeldung/algorithms/heapsort/HeapUnitTest.java +++ b/algorithms-sorting/src/test/java/com/baeldung/algorithms/heapsort/HeapUnitTest.java @@ -1,4 +1,4 @@ -package com.baeldung.algorithms.heapsort; +package com.baeldung.math.heapsort; import static org.assertj.core.api.Assertions.assertThat; diff --git a/algorithms-sorting/src/test/java/com/baeldung/algorithms/insertionsort/InsertionSortUnitTest.java b/algorithms-sorting/src/test/java/com/baeldung/algorithms/insertionsort/InsertionSortUnitTest.java index b3d7e8c534..49bfcc7bb2 100644 --- a/algorithms-sorting/src/test/java/com/baeldung/algorithms/insertionsort/InsertionSortUnitTest.java +++ b/algorithms-sorting/src/test/java/com/baeldung/algorithms/insertionsort/InsertionSortUnitTest.java @@ -1,6 +1,6 @@ -package com.baeldung.algorithms.insertionsort; +package com.baeldung.math.insertionsort; -import com.baeldung.algorithms.insertionsort.InsertionSort; +import com.baeldung.math.insertionsort.InsertionSort; import org.junit.Test; import static org.junit.Assert.assertArrayEquals; diff --git a/algorithms-sorting/src/test/java/com/baeldung/algorithms/mergesort/MergeSortUnitTest.java b/algorithms-sorting/src/test/java/com/baeldung/algorithms/mergesort/MergeSortUnitTest.java index 5cd14b7bd0..c8a5cbc59e 100644 --- a/algorithms-sorting/src/test/java/com/baeldung/algorithms/mergesort/MergeSortUnitTest.java +++ b/algorithms-sorting/src/test/java/com/baeldung/algorithms/mergesort/MergeSortUnitTest.java @@ -1,4 +1,4 @@ -package com.baeldung.algorithms.mergesort; +package com.baeldung.math.mergesort; import org.junit.Assert; diff --git a/algorithms-sorting/src/test/java/com/baeldung/algorithms/quicksort/QuickSortUnitTest.java b/algorithms-sorting/src/test/java/com/baeldung/algorithms/quicksort/QuickSortUnitTest.java index c9af5b4bf8..385ace91fa 100644 --- a/algorithms-sorting/src/test/java/com/baeldung/algorithms/quicksort/QuickSortUnitTest.java +++ b/algorithms-sorting/src/test/java/com/baeldung/algorithms/quicksort/QuickSortUnitTest.java @@ -1,6 +1,6 @@ -package com.baeldung.algorithms.quicksort; +package com.baeldung.math.quicksort; -import com.baeldung.algorithms.quicksort.QuickSort; +import com.baeldung.math.quicksort.QuickSort; import org.junit.Assert; import org.junit.Test; diff --git a/algorithms-sorting/src/test/java/com/baeldung/algorithms/quicksort/ThreeWayQuickSortUnitTest.java b/algorithms-sorting/src/test/java/com/baeldung/algorithms/quicksort/ThreeWayQuickSortUnitTest.java index cd8c7c1241..2379649bc6 100644 --- a/algorithms-sorting/src/test/java/com/baeldung/algorithms/quicksort/ThreeWayQuickSortUnitTest.java +++ b/algorithms-sorting/src/test/java/com/baeldung/algorithms/quicksort/ThreeWayQuickSortUnitTest.java @@ -1,4 +1,4 @@ -package com.baeldung.algorithms.quicksort; +package com.baeldung.math.quicksort; import org.junit.Assert; import org.junit.Test; diff --git a/java-math/.gitignore b/java-math/.gitignore new file mode 100644 index 0000000000..30b2b7442c --- /dev/null +++ b/java-math/.gitignore @@ -0,0 +1,4 @@ +/target/ +.settings/ +.classpath +.project \ No newline at end of file diff --git a/java-math/README.md b/java-math/README.md new file mode 100644 index 0000000000..ea6d6f379b --- /dev/null +++ b/java-math/README.md @@ -0,0 +1,20 @@ +## Relevant articles: + +- [Validating Input With Finite Automata in Java](http://www.baeldung.com/java-finite-automata) +- [Example of Hill Climbing Algorithm](http://www.baeldung.com/java-hill-climbing-algorithm) +- [Monte Carlo Tree Search for Tic-Tac-Toe Game](http://www.baeldung.com/java-monte-carlo-tree-search) +- [Binary Search Algorithm in Java](http://www.baeldung.com/java-binary-search) +- [Introduction to Minimax Algorithm](http://www.baeldung.com/java-minimax-algorithm) +- [How to Calculate Levenshtein Distance in Java?](http://www.baeldung.com/java-levenshtein-distance) +- [How to Find the Kth Largest Element in Java](http://www.baeldung.com/java-kth-largest-element) +- [Multi-Swarm Optimization Algorithm in Java](http://www.baeldung.com/java-multi-swarm-algorithm) +- [String Search Algorithms for Large Texts](http://www.baeldung.com/java-full-text-search-algorithms) +- [Check If a String Contains All The Letters of The Alphabet](https://www.baeldung.com/java-string-contains-all-letters) +- [Find the Middle Element of a Linked List](http://www.baeldung.com/java-linked-list-middle-element) +- [Calculate Factorial in Java](https://www.baeldung.com/java-calculate-factorial) +- [Find Substrings That Are Palindromes in Java](https://www.baeldung.com/java-palindrome-substrings) +- [Find the Longest Substring without Repeating Characters](https://www.baeldung.com/java-longest-substring-without-repeated-characters) +- [Java Two Pointer Technique](https://www.baeldung.com/java-two-pointer-technique) +- [Permutations of an Array in Java](https://www.baeldung.com/java-array-permutations) +- [Implementing Simple State Machines with Java Enums](https://www.baeldung.com/java-enum-simple-state-machine) +- [Generate Combinations in Java](https://www.baeldung.com/java-combinations-algorithm) diff --git a/java-math/pom.xml b/java-math/pom.xml new file mode 100644 index 0000000000..86342a8618 --- /dev/null +++ b/java-math/pom.xml @@ -0,0 +1,88 @@ + + 4.0.0 + java-math + 0.0.1-SNAPSHOT + java-math + + + com.baeldung + parent-modules + 1.0.0-SNAPSHOT + + + + + org.apache.commons + commons-math3 + ${commons-math3.version} + + + com.google.guava + guava + ${guava.version} + + + commons-codec + commons-codec + ${commons-codec.version} + + + org.projectlombok + lombok + ${lombok.version} + provided + + + org.assertj + assertj-core + ${org.assertj.core.version} + test + + + com.github.dpaukov + combinatoricslib3 + 3.3.0 + + + + + + + + org.codehaus.mojo + exec-maven-plugin + ${exec-maven-plugin.version} + + + + + + + + + org.codehaus.mojo + cobertura-maven-plugin + 2.7 + + + + com/baeldung/algorithms/dijkstra/* + + + com/baeldung/algorithms/dijkstra/* + + + + + + + + + 3.6.1 + 3.9.0 + 1.11 + 27.0.1-jre + + + \ No newline at end of file diff --git a/java-math/src/main/java/com/baeldung/math/combination/ApacheCommonsCombinationGenerator.java b/java-math/src/main/java/com/baeldung/math/combination/ApacheCommonsCombinationGenerator.java new file mode 100644 index 0000000000..c3806a46a2 --- /dev/null +++ b/java-math/src/main/java/com/baeldung/math/combination/ApacheCommonsCombinationGenerator.java @@ -0,0 +1,29 @@ +package com.baeldung.math.combination; + +import java.util.Arrays; +import java.util.Iterator; + +import org.apache.commons.math3.util.CombinatoricsUtils; + +public class ApacheCommonsCombinationGenerator { + + private static final int N = 6; + private static final int R = 3; + + /** + * Print all combinations of r elements from a set + * @param n - number of elements in set + * @param r - number of elements in selection + */ + public static void generate(int n, int r) { + Iterator iterator = CombinatoricsUtils.combinationsIterator(n, r); + while (iterator.hasNext()) { + final int[] combination = iterator.next(); + System.out.println(Arrays.toString(combination)); + } + } + + public static void main(String[] args) { + generate(N, R); + } +} \ No newline at end of file diff --git a/java-math/src/main/java/com/baeldung/math/combination/CombinatoricsLibCombinationGenerator.java b/java-math/src/main/java/com/baeldung/math/combination/CombinatoricsLibCombinationGenerator.java new file mode 100644 index 0000000000..5de6e11b93 --- /dev/null +++ b/java-math/src/main/java/com/baeldung/math/combination/CombinatoricsLibCombinationGenerator.java @@ -0,0 +1,13 @@ +package com.baeldung.math.combination; + +import org.paukov.combinatorics3.Generator; + +public class CombinatoricsLibCombinationGenerator { + + public static void main(String[] args) { + Generator.combination(0, 1, 2, 3, 4, 5) + .simple(3) + .stream() + .forEach(System.out::println); + } +} diff --git a/java-math/src/main/java/com/baeldung/math/combination/GuavaCombinationsGenerator.java b/java-math/src/main/java/com/baeldung/math/combination/GuavaCombinationsGenerator.java new file mode 100644 index 0000000000..1865c5c38a --- /dev/null +++ b/java-math/src/main/java/com/baeldung/math/combination/GuavaCombinationsGenerator.java @@ -0,0 +1,17 @@ +package com.baeldung.math.combination; + +import java.util.Arrays; +import java.util.Set; + +import com.google.common.collect.ImmutableSet; +import com.google.common.collect.Sets; + +public class GuavaCombinationsGenerator { + + public static void main(String[] args) { + + Set> combinations = Sets.combinations(ImmutableSet.of(0, 1, 2, 3, 4, 5), 3); + System.out.println(combinations.size()); + System.out.println(Arrays.toString(combinations.toArray())); + } +} diff --git a/java-math/src/main/java/com/baeldung/math/combination/IterativeCombinationGenerator.java b/java-math/src/main/java/com/baeldung/math/combination/IterativeCombinationGenerator.java new file mode 100644 index 0000000000..bb63aca213 --- /dev/null +++ b/java-math/src/main/java/com/baeldung/math/combination/IterativeCombinationGenerator.java @@ -0,0 +1,52 @@ +package com.baeldung.math.combination; + +import java.util.ArrayList; +import java.util.Arrays; +import java.util.List; + +public class IterativeCombinationGenerator { + + private static final int N = 5; + private static final int R = 2; + + /** + * Generate all combinations of r elements from a set + * @param n the number of elements in input set + * @param r the number of elements in a combination + * @return the list containing all combinations + */ + public List generate(int n, int r) { + List combinations = new ArrayList<>(); + int[] combination = new int[r]; + + // initialize with lowest lexicographic combination + for (int i = 0; i < r; i++) { + combination[i] = i; + } + + while (combination[r - 1] < n) { + combinations.add(combination.clone()); + + // generate next combination in lexicographic order + int t = r - 1; + while (t != 0 && combination[t] == n - r + t) { + t--; + } + combination[t]++; + for (int i = t + 1; i < r; i++) { + combination[i] = combination[i - 1] + 1; + } + } + + return combinations; + } + + public static void main(String[] args) { + IterativeCombinationGenerator generator = new IterativeCombinationGenerator(); + List combinations = generator.generate(N, R); + System.out.println(combinations.size()); + for (int[] combination : combinations) { + System.out.println(Arrays.toString(combination)); + } + } +} diff --git a/java-math/src/main/java/com/baeldung/math/combination/SelectionRecursiveCombinationGenerator.java b/java-math/src/main/java/com/baeldung/math/combination/SelectionRecursiveCombinationGenerator.java new file mode 100644 index 0000000000..2be408c502 --- /dev/null +++ b/java-math/src/main/java/com/baeldung/math/combination/SelectionRecursiveCombinationGenerator.java @@ -0,0 +1,53 @@ +package com.baeldung.math.combination; + +import java.util.ArrayList; +import java.util.Arrays; +import java.util.List; + +public class SelectionRecursiveCombinationGenerator { + + private static final int N = 6; + private static final int R = 3; + + /** + * Generate all combinations of r elements from a set + * @param n - number of elements in input set + * @param r - number of elements to be chosen + * @return the list containing all combinations + */ + public List generate(int n, int r) { + List combinations = new ArrayList<>(); + helper(combinations, new int[r], 0, n - 1, 0); + return combinations; + } + + /** + * Choose elements from set by recursing over elements selected + * @param combinations - List to store generated combinations + * @param data - current combination + * @param start - starting element of remaining set + * @param end - last element of remaining set + * @param index - number of elements chosen so far. + */ + private void helper(List combinations, int data[], int start, int end, int index) { + if (index == data.length) { + int[] combination = data.clone(); + combinations.add(combination); + } else { + int max = Math.min(end, end + 1 - data.length + index); + for (int i = start; i <= max; i++) { + data[index] = i; + helper(combinations, data, i + 1, end, index + 1); + } + } + } + + public static void main(String[] args) { + SelectionRecursiveCombinationGenerator generator = new SelectionRecursiveCombinationGenerator(); + List combinations = generator.generate(N, R); + for (int[] combination : combinations) { + System.out.println(Arrays.toString(combination)); + } + System.out.printf("generated %d combinations of %d items from %d ", combinations.size(), R, N); + } +} diff --git a/java-math/src/main/java/com/baeldung/math/combination/SetRecursiveCombinationGenerator.java b/java-math/src/main/java/com/baeldung/math/combination/SetRecursiveCombinationGenerator.java new file mode 100644 index 0000000000..5f15b0ac65 --- /dev/null +++ b/java-math/src/main/java/com/baeldung/math/combination/SetRecursiveCombinationGenerator.java @@ -0,0 +1,50 @@ +package com.baeldung.math.combination; + +import java.util.ArrayList; +import java.util.Arrays; +import java.util.List; + +public class SetRecursiveCombinationGenerator { + + private static final int N = 5; + private static final int R = 2; + + /** + * Generate all combinations of r elements from a set + * @param n - number of elements in set + * @param r - number of elements in selection + * @return the list containing all combinations + */ + public List generate(int n, int r) { + List combinations = new ArrayList<>(); + helper(combinations, new int[r], 0, n-1, 0); + return combinations; + } + + /** + * @param combinations - List to contain the generated combinations + * @param data - List of elements in the selection + * @param start - index of the starting element in the remaining set + * @param end - index of the last element in the set + * @param index - number of elements selected so far + */ + private void helper(List combinations, int data[], int start, int end, int index) { + if (index == data.length) { + int[] combination = data.clone(); + combinations.add(combination); + } else if (start <= end) { + data[index] = start; + helper(combinations, data, start + 1, end, index + 1); + helper(combinations, data, start + 1, end, index); + } + } + + public static void main(String[] args) { + SetRecursiveCombinationGenerator generator = new SetRecursiveCombinationGenerator(); + List combinations = generator.generate(N, R); + for (int[] combination : combinations) { + System.out.println(Arrays.toString(combination)); + } + System.out.printf("generated %d combinations of %d items from %d ", combinations.size(), R, N); + } +} diff --git a/algorithms-miscellaneous-2/src/main/java/com/baeldung/algorithms/distancebetweenpoints/DistanceBetweenPointsService.java b/java-math/src/main/java/com/baeldung/math/distancebetweenpoints/DistanceBetweenPointsService.java similarity index 93% rename from algorithms-miscellaneous-2/src/main/java/com/baeldung/algorithms/distancebetweenpoints/DistanceBetweenPointsService.java rename to java-math/src/main/java/com/baeldung/math/distancebetweenpoints/DistanceBetweenPointsService.java index 0c8eb86a38..b1785a9043 100644 --- a/algorithms-miscellaneous-2/src/main/java/com/baeldung/algorithms/distancebetweenpoints/DistanceBetweenPointsService.java +++ b/java-math/src/main/java/com/baeldung/math/distancebetweenpoints/DistanceBetweenPointsService.java @@ -1,4 +1,4 @@ -package com.baeldung.algorithms.distancebetweenpoints; +package com.baeldung.math.distancebetweenpoints; import java.awt.geom.Point2D; diff --git a/java-math/src/main/java/com/baeldung/math/factorial/Factorial.java b/java-math/src/main/java/com/baeldung/math/factorial/Factorial.java new file mode 100644 index 0000000000..41cc08afd1 --- /dev/null +++ b/java-math/src/main/java/com/baeldung/math/factorial/Factorial.java @@ -0,0 +1,63 @@ +package com.baeldung.math.factorial; + +import java.math.BigInteger; +import java.util.stream.LongStream; + +import org.apache.commons.math3.util.CombinatoricsUtils; + +import com.google.common.math.BigIntegerMath; + +public class Factorial { + + public long factorialUsingForLoop(int n) { + long fact = 1; + for (int i = 2; i <= n; i++) { + fact = fact * i; + } + return fact; + } + + public long factorialUsingStreams(int n) { + return LongStream.rangeClosed(1, n) + .reduce(1, (long x, long y) -> x * y); + } + + public long factorialUsingRecursion(int n) { + if (n <= 2) { + return n; + } + return n * factorialUsingRecursion(n - 1); + } + + private Long[] factorials = new Long[20]; + + public long factorialUsingMemoize(int n) { + + if (factorials[n] != null) { + return factorials[n]; + } + + if (n <= 2) { + return n; + } + long nthValue = n * factorialUsingMemoize(n - 1); + factorials[n] = nthValue; + return nthValue; + } + + public BigInteger factorialHavingLargeResult(int n) { + BigInteger result = BigInteger.ONE; + for (int i = 2; i <= n; i++) + result = result.multiply(BigInteger.valueOf(i)); + return result; + } + + public long factorialUsingApacheCommons(int n) { + return CombinatoricsUtils.factorial(n); + } + + public BigInteger factorialUsingGuava(int n) { + return BigIntegerMath.factorial(n); + } + +} diff --git a/algorithms-miscellaneous-1/src/main/java/com/baeldung/algorithms/linesintersection/LinesIntersectionService.java b/java-math/src/main/java/com/baeldung/math/linesintersection/LinesIntersectionService.java similarity index 89% rename from algorithms-miscellaneous-1/src/main/java/com/baeldung/algorithms/linesintersection/LinesIntersectionService.java rename to java-math/src/main/java/com/baeldung/math/linesintersection/LinesIntersectionService.java index 35d6c8b424..267d75ae00 100644 --- a/algorithms-miscellaneous-1/src/main/java/com/baeldung/algorithms/linesintersection/LinesIntersectionService.java +++ b/java-math/src/main/java/com/baeldung/math/linesintersection/LinesIntersectionService.java @@ -1,4 +1,4 @@ -package com.baeldung.algorithms.linesintersection; +package com.baeldung.math.linesintersection; import java.awt.Point; import java.util.Optional; diff --git a/algorithms-miscellaneous-2/src/main/java/com/baeldung/algorithms/mercator/EllipticalMercator.java b/java-math/src/main/java/com/baeldung/math/mercator/EllipticalMercator.java similarity index 95% rename from algorithms-miscellaneous-2/src/main/java/com/baeldung/algorithms/mercator/EllipticalMercator.java rename to java-math/src/main/java/com/baeldung/math/mercator/EllipticalMercator.java index e1c41f9518..b3407ef835 100644 --- a/algorithms-miscellaneous-2/src/main/java/com/baeldung/algorithms/mercator/EllipticalMercator.java +++ b/java-math/src/main/java/com/baeldung/math/mercator/EllipticalMercator.java @@ -1,4 +1,4 @@ -package com.baeldung.algorithms.mercator; +package com.baeldung.math.mercator; class EllipticalMercator extends Mercator { diff --git a/algorithms-miscellaneous-2/src/main/java/com/baeldung/algorithms/mercator/Mercator.java b/java-math/src/main/java/com/baeldung/math/mercator/Mercator.java similarity index 84% rename from algorithms-miscellaneous-2/src/main/java/com/baeldung/algorithms/mercator/Mercator.java rename to java-math/src/main/java/com/baeldung/math/mercator/Mercator.java index b289b1839d..b3d3e3a002 100644 --- a/algorithms-miscellaneous-2/src/main/java/com/baeldung/algorithms/mercator/Mercator.java +++ b/java-math/src/main/java/com/baeldung/math/mercator/Mercator.java @@ -1,4 +1,4 @@ -package com.baeldung.algorithms.mercator; +package com.baeldung.math.mercator; abstract class Mercator { final static double RADIUS_MAJOR = 6378137.0; diff --git a/algorithms-miscellaneous-2/src/main/java/com/baeldung/algorithms/mercator/SphericalMercator.java b/java-math/src/main/java/com/baeldung/math/mercator/SphericalMercator.java similarity index 88% rename from algorithms-miscellaneous-2/src/main/java/com/baeldung/algorithms/mercator/SphericalMercator.java rename to java-math/src/main/java/com/baeldung/math/mercator/SphericalMercator.java index 1be976d82e..9374cdab22 100644 --- a/algorithms-miscellaneous-2/src/main/java/com/baeldung/algorithms/mercator/SphericalMercator.java +++ b/java-math/src/main/java/com/baeldung/math/mercator/SphericalMercator.java @@ -1,4 +1,4 @@ -package com.baeldung.algorithms.mercator; +package com.baeldung.math.mercator; public class SphericalMercator extends Mercator { diff --git a/java-numbers/src/main/java/com/baeldung/percentage/PercentageCalculator.java b/java-math/src/main/java/com/baeldung/math/percentage/PercentageCalculator.java similarity index 94% rename from java-numbers/src/main/java/com/baeldung/percentage/PercentageCalculator.java rename to java-math/src/main/java/com/baeldung/math/percentage/PercentageCalculator.java index e74de2cc67..63f47e2712 100644 --- a/java-numbers/src/main/java/com/baeldung/percentage/PercentageCalculator.java +++ b/java-math/src/main/java/com/baeldung/math/percentage/PercentageCalculator.java @@ -1,4 +1,4 @@ -package com.baeldung.percentage; +package com.baeldung.math.percentage; import java.util.Scanner; diff --git a/algorithms-miscellaneous-2/src/main/java/com/baeldung/algorithms/rectanglesoverlap/Point.java b/java-math/src/main/java/com/baeldung/math/rectanglesoverlap/Point.java similarity index 87% rename from algorithms-miscellaneous-2/src/main/java/com/baeldung/algorithms/rectanglesoverlap/Point.java rename to java-math/src/main/java/com/baeldung/math/rectanglesoverlap/Point.java index 68b1e7c594..96dffb272d 100644 --- a/algorithms-miscellaneous-2/src/main/java/com/baeldung/algorithms/rectanglesoverlap/Point.java +++ b/java-math/src/main/java/com/baeldung/math/rectanglesoverlap/Point.java @@ -1,4 +1,4 @@ -package com.baeldung.algorithms.rectanglesoverlap; +package com.baeldung.math.rectanglesoverlap; public class Point { diff --git a/algorithms-miscellaneous-2/src/main/java/com/baeldung/algorithms/rectanglesoverlap/Rectangle.java b/java-math/src/main/java/com/baeldung/math/rectanglesoverlap/Rectangle.java similarity index 95% rename from algorithms-miscellaneous-2/src/main/java/com/baeldung/algorithms/rectanglesoverlap/Rectangle.java rename to java-math/src/main/java/com/baeldung/math/rectanglesoverlap/Rectangle.java index 38f5edec61..e073bca2c9 100644 --- a/algorithms-miscellaneous-2/src/main/java/com/baeldung/algorithms/rectanglesoverlap/Rectangle.java +++ b/java-math/src/main/java/com/baeldung/math/rectanglesoverlap/Rectangle.java @@ -1,4 +1,4 @@ -package com.baeldung.algorithms.rectanglesoverlap; +package com.baeldung.math.rectanglesoverlap; public class Rectangle { diff --git a/algorithms-miscellaneous-2/src/main/java/com/baeldung/algorithms/roundedup/RoundUpToHundred.java b/java-math/src/main/java/com/baeldung/math/roundedup/RoundUpToHundred.java similarity index 90% rename from algorithms-miscellaneous-2/src/main/java/com/baeldung/algorithms/roundedup/RoundUpToHundred.java rename to java-math/src/main/java/com/baeldung/math/roundedup/RoundUpToHundred.java index 333019e294..236110f020 100644 --- a/algorithms-miscellaneous-2/src/main/java/com/baeldung/algorithms/roundedup/RoundUpToHundred.java +++ b/java-math/src/main/java/com/baeldung/math/roundedup/RoundUpToHundred.java @@ -1,4 +1,4 @@ -package com.baeldung.algorithms.roundedup; +package com.baeldung.math.roundedup; import java.util.Scanner; diff --git a/java-math/src/main/resources/logback.xml b/java-math/src/main/resources/logback.xml new file mode 100644 index 0000000000..7d900d8ea8 --- /dev/null +++ b/java-math/src/main/resources/logback.xml @@ -0,0 +1,13 @@ + + + + + %d{HH:mm:ss.SSS} [%thread] %-5level %logger{36} - %msg%n + + + + + + + + \ No newline at end of file diff --git a/java-math/src/test/java/com/baeldung/math/combination/CombinationUnitTest.java b/java-math/src/test/java/com/baeldung/math/combination/CombinationUnitTest.java new file mode 100644 index 0000000000..54c57038a9 --- /dev/null +++ b/java-math/src/test/java/com/baeldung/math/combination/CombinationUnitTest.java @@ -0,0 +1,35 @@ +package com.baeldung.math.combination; + +import static org.junit.jupiter.api.Assertions.assertEquals; + +import java.util.List; + +import org.junit.Test; + +public class CombinationUnitTest { + + private static final int N = 5; + private static final int R = 3; + private static final int nCr = 10; + + @Test + public void givenSetAndSelectionSize_whenCalculatedUsingSetRecursiveAlgorithm_thenExpectedCount() { + SetRecursiveCombinationGenerator generator = new SetRecursiveCombinationGenerator(); + List selection = generator.generate(N, R); + assertEquals(nCr, selection.size()); + } + + @Test + public void givenSetAndSelectionSize_whenCalculatedUsingSelectionRecursiveAlgorithm_thenExpectedCount() { + SelectionRecursiveCombinationGenerator generator = new SelectionRecursiveCombinationGenerator(); + List selection = generator.generate(N, R); + assertEquals(nCr, selection.size()); + } + + @Test + public void givenSetAndSelectionSize_whenCalculatedUsingIterativeAlgorithm_thenExpectedCount() { + IterativeCombinationGenerator generator = new IterativeCombinationGenerator(); + List selection = generator.generate(N, R); + assertEquals(nCr, selection.size()); + } +} diff --git a/algorithms-miscellaneous-2/src/test/java/com/baeldung/algorithms/distancebetweenpoints/DistanceBetweenPointsServiceUnitTest.java b/java-math/src/test/java/com/baeldung/math/distancebetweenpoints/DistanceBetweenPointsServiceUnitTest.java similarity index 89% rename from algorithms-miscellaneous-2/src/test/java/com/baeldung/algorithms/distancebetweenpoints/DistanceBetweenPointsServiceUnitTest.java rename to java-math/src/test/java/com/baeldung/math/distancebetweenpoints/DistanceBetweenPointsServiceUnitTest.java index 785afdbb2b..66ceb01305 100644 --- a/algorithms-miscellaneous-2/src/test/java/com/baeldung/algorithms/distancebetweenpoints/DistanceBetweenPointsServiceUnitTest.java +++ b/java-math/src/test/java/com/baeldung/math/distancebetweenpoints/DistanceBetweenPointsServiceUnitTest.java @@ -1,9 +1,7 @@ -package com.baeldung.algorithms.distancebetweenpoints; +package com.baeldung.math.distancebetweenpoints; import org.junit.Test; -import com.baeldung.algorithms.distancebetweenpoints.DistanceBetweenPointsService; - import static org.junit.Assert.assertEquals; public class DistanceBetweenPointsServiceUnitTest { diff --git a/java-math/src/test/java/com/baeldung/math/factorial/FactorialUnitTest.java b/java-math/src/test/java/com/baeldung/math/factorial/FactorialUnitTest.java new file mode 100644 index 0000000000..654d45747a --- /dev/null +++ b/java-math/src/test/java/com/baeldung/math/factorial/FactorialUnitTest.java @@ -0,0 +1,72 @@ +package com.baeldung.math.factorial; + +import static org.assertj.core.api.Assertions.assertThat; + +import java.math.BigInteger; + +import org.junit.Before; +import org.junit.Test; + +public class FactorialUnitTest { + + Factorial factorial; + + @Before + public void setup() { + factorial = new Factorial(); + } + + @Test + public void whenCalculatingFactorialUsingForLoop_thenCorrect() { + int n = 5; + + assertThat(factorial.factorialUsingForLoop(n)).isEqualTo(120); + } + + @Test + public void whenCalculatingFactorialUsingStreams_thenCorrect() { + int n = 5; + + assertThat(factorial.factorialUsingStreams(n)).isEqualTo(120); + } + + @Test + public void whenCalculatingFactorialUsingRecursion_thenCorrect() { + int n = 5; + + assertThat(factorial.factorialUsingRecursion(n)).isEqualTo(120); + } + + @Test + public void whenCalculatingFactorialUsingMemoize_thenCorrect() { + int n = 5; + + assertThat(factorial.factorialUsingMemoize(n)).isEqualTo(120); + + n = 6; + + assertThat(factorial.factorialUsingMemoize(n)).isEqualTo(720); + } + + @Test + public void whenCalculatingFactorialHavingLargeResult_thenCorrect() { + int n = 22; + + assertThat(factorial.factorialHavingLargeResult(n)).isEqualTo(new BigInteger("1124000727777607680000")); + } + + @Test + public void whenCalculatingFactorialUsingApacheCommons_thenCorrect() { + int n = 5; + + assertThat(factorial.factorialUsingApacheCommons(n)).isEqualTo(120); + } + + @Test + public void whenCalculatingFactorialUsingGuava_thenCorrect() { + int n = 22; + + assertThat(factorial.factorialUsingGuava(n)).isEqualTo(new BigInteger("1124000727777607680000")); + } + +} diff --git a/algorithms-miscellaneous-1/src/test/java/com/baeldung/algorithms/linesintersection/LinesIntersectionServiceUnitTest.java b/java-math/src/test/java/com/baeldung/math/linesintersection/LinesIntersectionServiceUnitTest.java similarity index 95% rename from algorithms-miscellaneous-1/src/test/java/com/baeldung/algorithms/linesintersection/LinesIntersectionServiceUnitTest.java rename to java-math/src/test/java/com/baeldung/math/linesintersection/LinesIntersectionServiceUnitTest.java index 22371107f3..4ae0c42bf1 100644 --- a/algorithms-miscellaneous-1/src/test/java/com/baeldung/algorithms/linesintersection/LinesIntersectionServiceUnitTest.java +++ b/java-math/src/test/java/com/baeldung/math/linesintersection/LinesIntersectionServiceUnitTest.java @@ -1,4 +1,4 @@ -package com.baeldung.algorithms.linesintersection; +package com.baeldung.math.linesintersection; import java.awt.Point; import java.util.Optional; diff --git a/algorithms-miscellaneous-2/src/test/java/com/baeldung/algorithms/mercator/EllipticalMercatorUnitTest.java b/java-math/src/test/java/com/baeldung/math/mercator/EllipticalMercatorUnitTest.java similarity index 94% rename from algorithms-miscellaneous-2/src/test/java/com/baeldung/algorithms/mercator/EllipticalMercatorUnitTest.java rename to java-math/src/test/java/com/baeldung/math/mercator/EllipticalMercatorUnitTest.java index 96b644c46c..668c80bbb0 100644 --- a/algorithms-miscellaneous-2/src/test/java/com/baeldung/algorithms/mercator/EllipticalMercatorUnitTest.java +++ b/java-math/src/test/java/com/baeldung/math/mercator/EllipticalMercatorUnitTest.java @@ -1,4 +1,4 @@ -package com.baeldung.algorithms.mercator; +package com.baeldung.math.mercator; import org.junit.Assert; import org.junit.Test; diff --git a/algorithms-miscellaneous-2/src/test/java/com/baeldung/algorithms/mercator/SphericalMercatorUnitTest.java b/java-math/src/test/java/com/baeldung/math/mercator/SphericalMercatorUnitTest.java similarity index 94% rename from algorithms-miscellaneous-2/src/test/java/com/baeldung/algorithms/mercator/SphericalMercatorUnitTest.java rename to java-math/src/test/java/com/baeldung/math/mercator/SphericalMercatorUnitTest.java index 348c6ad3e4..3f008c6fe7 100644 --- a/algorithms-miscellaneous-2/src/test/java/com/baeldung/algorithms/mercator/SphericalMercatorUnitTest.java +++ b/java-math/src/test/java/com/baeldung/math/mercator/SphericalMercatorUnitTest.java @@ -1,4 +1,4 @@ -package com.baeldung.algorithms.mercator; +package com.baeldung.math.mercator; import org.junit.Assert; import org.junit.Test; diff --git a/java-numbers/src/test/java/com/baeldung/percentage/PercentageCalculatorUnitTest.java b/java-math/src/test/java/com/baeldung/math/percentage/PercentageCalculatorUnitTest.java similarity index 96% rename from java-numbers/src/test/java/com/baeldung/percentage/PercentageCalculatorUnitTest.java rename to java-math/src/test/java/com/baeldung/math/percentage/PercentageCalculatorUnitTest.java index 202d4f8112..42d0108240 100644 --- a/java-numbers/src/test/java/com/baeldung/percentage/PercentageCalculatorUnitTest.java +++ b/java-math/src/test/java/com/baeldung/math/percentage/PercentageCalculatorUnitTest.java @@ -1,4 +1,4 @@ -package com.baeldung.percentage; +package com.baeldung.math.percentage; import org.junit.Assert; import org.junit.Test; diff --git a/algorithms-miscellaneous-2/src/test/java/com/baeldung/algorithms/rectanglesoverlap/RectangleUnitTest.java b/java-math/src/test/java/com/baeldung/math/rectanglesoverlap/RectangleUnitTest.java similarity index 90% rename from algorithms-miscellaneous-2/src/test/java/com/baeldung/algorithms/rectanglesoverlap/RectangleUnitTest.java rename to java-math/src/test/java/com/baeldung/math/rectanglesoverlap/RectangleUnitTest.java index 6707b34477..22ec1e1765 100644 --- a/algorithms-miscellaneous-2/src/test/java/com/baeldung/algorithms/rectanglesoverlap/RectangleUnitTest.java +++ b/java-math/src/test/java/com/baeldung/math/rectanglesoverlap/RectangleUnitTest.java @@ -1,12 +1,9 @@ -package com.baeldung.algorithms.rectanglesoverlap; +package com.baeldung.math.rectanglesoverlap; import static org.junit.Assert.assertTrue; import static org.junit.Assert.assertFalse; import org.junit.Test; -import com.baeldung.algorithms.rectanglesoverlap.Point; -import com.baeldung.algorithms.rectanglesoverlap.Rectangle; - public class RectangleUnitTest { @Test diff --git a/algorithms-miscellaneous-2/src/test/java/com/baeldung/algorithms/roundedup/RoundUpToHundredUnitTest.java b/java-math/src/test/java/com/baeldung/math/roundedup/RoundUpToHundredUnitTest.java similarity index 91% rename from algorithms-miscellaneous-2/src/test/java/com/baeldung/algorithms/roundedup/RoundUpToHundredUnitTest.java rename to java-math/src/test/java/com/baeldung/math/roundedup/RoundUpToHundredUnitTest.java index 5191d65787..290016c2a8 100644 --- a/algorithms-miscellaneous-2/src/test/java/com/baeldung/algorithms/roundedup/RoundUpToHundredUnitTest.java +++ b/java-math/src/test/java/com/baeldung/math/roundedup/RoundUpToHundredUnitTest.java @@ -1,4 +1,4 @@ -package com.baeldung.algorithms.roundedup; +package com.baeldung.math.roundedup; import static org.junit.Assert.assertEquals; diff --git a/java-numbers/src/main/java/com/baeldung/algorithms/primechecker/BigIntegerPrimeChecker.java b/java-numbers/src/main/java/com/baeldung/algorithms/primechecker/BigIntegerPrimeChecker.java index 752e659fa3..70f130dfc7 100644 --- a/java-numbers/src/main/java/com/baeldung/algorithms/primechecker/BigIntegerPrimeChecker.java +++ b/java-numbers/src/main/java/com/baeldung/algorithms/primechecker/BigIntegerPrimeChecker.java @@ -1,4 +1,4 @@ -package com.baeldung.algorithms.primechecker; +package com.baeldung.math.primechecker; import java.math.BigInteger; diff --git a/java-numbers/src/main/java/com/baeldung/algorithms/primechecker/BruteForcePrimeChecker.java b/java-numbers/src/main/java/com/baeldung/algorithms/primechecker/BruteForcePrimeChecker.java index 68382c26ea..d910c2149f 100644 --- a/java-numbers/src/main/java/com/baeldung/algorithms/primechecker/BruteForcePrimeChecker.java +++ b/java-numbers/src/main/java/com/baeldung/algorithms/primechecker/BruteForcePrimeChecker.java @@ -1,4 +1,4 @@ -package com.baeldung.algorithms.primechecker; +package com.baeldung.math.primechecker; import java.util.stream.IntStream; diff --git a/java-numbers/src/main/java/com/baeldung/algorithms/primechecker/OptimisedPrimeChecker.java b/java-numbers/src/main/java/com/baeldung/algorithms/primechecker/OptimisedPrimeChecker.java index 3dc372ad22..6e3296aa45 100644 --- a/java-numbers/src/main/java/com/baeldung/algorithms/primechecker/OptimisedPrimeChecker.java +++ b/java-numbers/src/main/java/com/baeldung/algorithms/primechecker/OptimisedPrimeChecker.java @@ -1,4 +1,4 @@ -package com.baeldung.algorithms.primechecker; +package com.baeldung.math.primechecker; import java.util.stream.IntStream; diff --git a/java-numbers/src/main/java/com/baeldung/algorithms/primechecker/PrimeChecker.java b/java-numbers/src/main/java/com/baeldung/algorithms/primechecker/PrimeChecker.java index 5f7a15a939..f73164d2c7 100644 --- a/java-numbers/src/main/java/com/baeldung/algorithms/primechecker/PrimeChecker.java +++ b/java-numbers/src/main/java/com/baeldung/algorithms/primechecker/PrimeChecker.java @@ -1,4 +1,4 @@ -package com.baeldung.algorithms.primechecker; +package com.baeldung.math.primechecker; public interface PrimeChecker { diff --git a/java-numbers/src/main/java/com/baeldung/algorithms/primechecker/PrimesPrimeChecker.java b/java-numbers/src/main/java/com/baeldung/algorithms/primechecker/PrimesPrimeChecker.java index 08b095cb79..b411214198 100644 --- a/java-numbers/src/main/java/com/baeldung/algorithms/primechecker/PrimesPrimeChecker.java +++ b/java-numbers/src/main/java/com/baeldung/algorithms/primechecker/PrimesPrimeChecker.java @@ -1,4 +1,4 @@ -package com.baeldung.algorithms.primechecker; +package com.baeldung.math.primechecker; import org.apache.commons.math3.primes.Primes; diff --git a/java-numbers/src/test/java/com/baeldung/algorithms/primechecker/PrimeCheckerUnitTest.java b/java-numbers/src/test/java/com/baeldung/algorithms/primechecker/PrimeCheckerUnitTest.java index 9f8ba8defd..23aafb009f 100644 --- a/java-numbers/src/test/java/com/baeldung/algorithms/primechecker/PrimeCheckerUnitTest.java +++ b/java-numbers/src/test/java/com/baeldung/algorithms/primechecker/PrimeCheckerUnitTest.java @@ -1,4 +1,4 @@ -package com.baeldung.algorithms.primechecker; +package com.baeldung.math.primechecker; import org.junit.Test; From 64bc79b290d464055950b8b6f3a84ecc49b2e333 Mon Sep 17 00:00:00 2001 From: "anilkivilcim.eray" Date: Thu, 4 Apr 2019 15:50:39 +0300 Subject: [PATCH 2/7] BAEL-2797 wrong renaming fixed on algorithms package --- .../automata/FiniteStateMachine.java | 2 +- .../automata/RtFiniteStateMachine.java | 2 +- .../{math => algorithms}/automata/RtState.java | 2 +- .../{math => algorithms}/automata/RtTransition.java | 2 +- .../{math => algorithms}/automata/State.java | 2 +- .../{math => algorithms}/automata/Transition.java | 2 +- .../binarysearch/BinarySearch.java | 2 +- .../ApacheCommonsCombinationGenerator.java | 2 +- .../CombinatoricsLibCombinationGenerator.java | 2 +- .../combination/GuavaCombinationsGenerator.java | 2 +- .../combination/IterativeCombinationGenerator.java | 2 +- .../SelectionRecursiveCombinationGenerator.java | 2 +- .../SetRecursiveCombinationGenerator.java | 2 +- .../enumstatemachine/LeaveRequestState.java | 2 +- .../{math => algorithms}/factorial/Factorial.java | 2 +- .../hillclimbing/HillClimbing.java | 2 +- .../{math => algorithms}/hillclimbing/State.java | 2 +- .../kthlargest/FindKthLargest.java | 2 +- .../mcts/montecarlo/MonteCarloTreeSearch.java | 8 ++++---- .../{math => algorithms}/mcts/montecarlo/State.java | 6 +++--- .../{math => algorithms}/mcts/montecarlo/UCT.java | 4 ++-- .../{math => algorithms}/mcts/tictactoe/Board.java | 2 +- .../mcts/tictactoe/Position.java | 2 +- .../{math => algorithms}/mcts/tree/Node.java | 4 ++-- .../{math => algorithms}/mcts/tree/Tree.java | 2 +- .../middleelementlookup/MiddleElementLookup.java | 2 +- .../middleelementlookup/Node.java | 2 +- .../{math => algorithms}/minimax/GameOfBones.java | 2 +- .../{math => algorithms}/minimax/MiniMax.java | 2 +- .../baeldung/{math => algorithms}/minimax/Node.java | 2 +- .../baeldung/{math => algorithms}/minimax/Tree.java | 2 +- .../{math => algorithms}/multiswarm/Constants.java | 2 +- .../multiswarm/FitnessFunction.java | 2 +- .../{math => algorithms}/multiswarm/Multiswarm.java | 2 +- .../{math => algorithms}/multiswarm/Particle.java | 2 +- .../{math => algorithms}/multiswarm/Swarm.java | 2 +- .../permutation/Permutation.java | 2 +- .../string/EnglishAlphabetLetters.java | 2 +- .../LongestSubstringNonRepeatingCharacters.java | 2 +- .../string/SubstringPalindrome.java | 2 +- .../string/search/StringSearchAlgorithms.java | 2 +- .../twopointertechnique/LinkedListFindMiddle.java | 2 +- .../twopointertechnique/MyNode.java | 2 +- .../twopointertechnique/RotateArray.java | 2 +- .../twopointertechnique/TwoSum.java | 2 +- .../baeldung/math/HillClimbingAlgorithmUnitTest.java | 4 ++-- .../baeldung/math/MiddleElementLookupUnitTest.java | 4 ++-- .../RtFiniteStateMachineLongRunningUnitTest.java | 2 +- .../math/StringSearchAlgorithmsUnitTest.java | 2 +- .../math/binarysearch/BinarySearchUnitTest.java | 1 + .../math/combination/CombinationUnitTest.java | 3 +++ .../enumstatemachine/LeaveRequestStateUnitTest.java | 1 + .../baeldung/math/factorial/FactorialUnitTest.java | 1 + .../math/kthlargest/FindKthLargestUnitTest.java | 1 + .../java/com/baeldung/math/mcts/MCTSUnitTest.java | 12 ++++++------ .../com/baeldung/math/minimax/MinimaxUnitTest.java | 2 ++ .../baeldung/math/multiswarm/LolFitnessFunction.java | 2 ++ .../baeldung/math/multiswarm/MultiswarmUnitTest.java | 1 + .../math/string/EnglishAlphabetLettersUnitTest.java | 1 + ...ngestSubstringNonRepeatingCharactersUnitTest.java | 4 ++-- .../math/string/SubstringPalindromeUnitTest.java | 2 ++ .../LinkedListFindMiddleUnitTest.java | 2 ++ .../twopointertechnique/RotateArrayUnitTest.java | 1 + .../math/twopointertechnique/TwoSumUnitTest.java | 1 + 64 files changed, 85 insertions(+), 66 deletions(-) rename algorithms-miscellaneous-1/src/main/java/com/baeldung/{math => algorithms}/automata/FiniteStateMachine.java (90%) rename algorithms-miscellaneous-1/src/main/java/com/baeldung/{math => algorithms}/automata/RtFiniteStateMachine.java (93%) rename algorithms-miscellaneous-1/src/main/java/com/baeldung/{math => algorithms}/automata/RtState.java (95%) rename algorithms-miscellaneous-1/src/main/java/com/baeldung/{math => algorithms}/automata/RtTransition.java (93%) rename algorithms-miscellaneous-1/src/main/java/com/baeldung/{math => algorithms}/automata/State.java (93%) rename algorithms-miscellaneous-1/src/main/java/com/baeldung/{math => algorithms}/automata/Transition.java (89%) rename algorithms-miscellaneous-1/src/main/java/com/baeldung/{math => algorithms}/binarysearch/BinarySearch.java (93%) rename algorithms-miscellaneous-1/src/main/java/com/baeldung/{math => algorithms}/combination/ApacheCommonsCombinationGenerator.java (94%) rename algorithms-miscellaneous-1/src/main/java/com/baeldung/{math => algorithms}/combination/CombinatoricsLibCombinationGenerator.java (86%) rename algorithms-miscellaneous-1/src/main/java/com/baeldung/{math => algorithms}/combination/GuavaCombinationsGenerator.java (90%) rename algorithms-miscellaneous-1/src/main/java/com/baeldung/{math => algorithms}/combination/IterativeCombinationGenerator.java (97%) rename algorithms-miscellaneous-1/src/main/java/com/baeldung/{math => algorithms}/combination/SelectionRecursiveCombinationGenerator.java (97%) rename algorithms-miscellaneous-1/src/main/java/com/baeldung/{math => algorithms}/combination/SetRecursiveCombinationGenerator.java (97%) rename algorithms-miscellaneous-1/src/main/java/com/baeldung/{math => algorithms}/enumstatemachine/LeaveRequestState.java (95%) rename algorithms-miscellaneous-1/src/main/java/com/baeldung/{math => algorithms}/factorial/Factorial.java (97%) rename algorithms-miscellaneous-1/src/main/java/com/baeldung/{math => algorithms}/hillclimbing/HillClimbing.java (99%) rename algorithms-miscellaneous-1/src/main/java/com/baeldung/{math => algorithms}/hillclimbing/State.java (95%) rename algorithms-miscellaneous-1/src/main/java/com/baeldung/{math => algorithms}/kthlargest/FindKthLargest.java (98%) rename algorithms-miscellaneous-1/src/main/java/com/baeldung/{math => algorithms}/mcts/montecarlo/MonteCarloTreeSearch.java (94%) rename algorithms-miscellaneous-1/src/main/java/com/baeldung/{math => algorithms}/mcts/montecarlo/State.java (93%) rename algorithms-miscellaneous-1/src/main/java/com/baeldung/{math => algorithms}/mcts/montecarlo/UCT.java (87%) rename algorithms-miscellaneous-1/src/main/java/com/baeldung/{math => algorithms}/mcts/tictactoe/Board.java (98%) rename algorithms-miscellaneous-1/src/main/java/com/baeldung/{math => algorithms}/mcts/tictactoe/Position.java (88%) rename algorithms-miscellaneous-1/src/main/java/com/baeldung/{math => algorithms}/mcts/tree/Node.java (94%) rename algorithms-miscellaneous-1/src/main/java/com/baeldung/{math => algorithms}/mcts/tree/Tree.java (89%) rename algorithms-miscellaneous-1/src/main/java/com/baeldung/{math => algorithms}/middleelementlookup/MiddleElementLookup.java (97%) rename algorithms-miscellaneous-1/src/main/java/com/baeldung/{math => algorithms}/middleelementlookup/Node.java (90%) rename algorithms-miscellaneous-1/src/main/java/com/baeldung/{math => algorithms}/minimax/GameOfBones.java (90%) rename algorithms-miscellaneous-1/src/main/java/com/baeldung/{math => algorithms}/minimax/MiniMax.java (97%) rename algorithms-miscellaneous-1/src/main/java/com/baeldung/{math => algorithms}/minimax/Node.java (94%) rename algorithms-miscellaneous-1/src/main/java/com/baeldung/{math => algorithms}/minimax/Tree.java (81%) rename algorithms-miscellaneous-1/src/main/java/com/baeldung/{math => algorithms}/multiswarm/Constants.java (96%) rename algorithms-miscellaneous-1/src/main/java/com/baeldung/{math => algorithms}/multiswarm/FitnessFunction.java (90%) rename algorithms-miscellaneous-1/src/main/java/com/baeldung/{math => algorithms}/multiswarm/Multiswarm.java (99%) rename algorithms-miscellaneous-1/src/main/java/com/baeldung/{math => algorithms}/multiswarm/Particle.java (98%) rename algorithms-miscellaneous-1/src/main/java/com/baeldung/{math => algorithms}/multiswarm/Swarm.java (98%) rename algorithms-miscellaneous-1/src/main/java/com/baeldung/{math => algorithms}/permutation/Permutation.java (98%) rename algorithms-miscellaneous-1/src/main/java/com/baeldung/{math => algorithms}/string/EnglishAlphabetLetters.java (96%) rename algorithms-miscellaneous-1/src/main/java/com/baeldung/{math => algorithms}/string/LongestSubstringNonRepeatingCharacters.java (94%) rename algorithms-miscellaneous-1/src/main/java/com/baeldung/{math => algorithms}/string/SubstringPalindrome.java (98%) rename algorithms-miscellaneous-1/src/main/java/com/baeldung/{math => algorithms}/string/search/StringSearchAlgorithms.java (95%) rename algorithms-miscellaneous-1/src/main/java/com/baeldung/{math => algorithms}/twopointertechnique/LinkedListFindMiddle.java (87%) rename algorithms-miscellaneous-1/src/main/java/com/baeldung/{math => algorithms}/twopointertechnique/MyNode.java (84%) rename algorithms-miscellaneous-1/src/main/java/com/baeldung/{math => algorithms}/twopointertechnique/RotateArray.java (90%) rename algorithms-miscellaneous-1/src/main/java/com/baeldung/{math => algorithms}/twopointertechnique/TwoSum.java (94%) diff --git a/algorithms-miscellaneous-1/src/main/java/com/baeldung/math/automata/FiniteStateMachine.java b/algorithms-miscellaneous-1/src/main/java/com/baeldung/algorithms/automata/FiniteStateMachine.java similarity index 90% rename from algorithms-miscellaneous-1/src/main/java/com/baeldung/math/automata/FiniteStateMachine.java rename to algorithms-miscellaneous-1/src/main/java/com/baeldung/algorithms/automata/FiniteStateMachine.java index 704f5999f9..0cb11f5138 100644 --- a/algorithms-miscellaneous-1/src/main/java/com/baeldung/math/automata/FiniteStateMachine.java +++ b/algorithms-miscellaneous-1/src/main/java/com/baeldung/algorithms/automata/FiniteStateMachine.java @@ -1,4 +1,4 @@ -package com.baeldung.math.automata; +package com.baeldung.algorithms.automata; /** * Finite state machine. diff --git a/algorithms-miscellaneous-1/src/main/java/com/baeldung/math/automata/RtFiniteStateMachine.java b/algorithms-miscellaneous-1/src/main/java/com/baeldung/algorithms/automata/RtFiniteStateMachine.java similarity index 93% rename from algorithms-miscellaneous-1/src/main/java/com/baeldung/math/automata/RtFiniteStateMachine.java rename to algorithms-miscellaneous-1/src/main/java/com/baeldung/algorithms/automata/RtFiniteStateMachine.java index 4fb233e9ff..1cf06c04b5 100644 --- a/algorithms-miscellaneous-1/src/main/java/com/baeldung/math/automata/RtFiniteStateMachine.java +++ b/algorithms-miscellaneous-1/src/main/java/com/baeldung/algorithms/automata/RtFiniteStateMachine.java @@ -1,4 +1,4 @@ -package com.baeldung.math.automata; +package com.baeldung.algorithms.automata; /** * Default implementation of a finite state machine. diff --git a/algorithms-miscellaneous-1/src/main/java/com/baeldung/math/automata/RtState.java b/algorithms-miscellaneous-1/src/main/java/com/baeldung/algorithms/automata/RtState.java similarity index 95% rename from algorithms-miscellaneous-1/src/main/java/com/baeldung/math/automata/RtState.java rename to algorithms-miscellaneous-1/src/main/java/com/baeldung/algorithms/automata/RtState.java index c6f9f6a1a2..31cb9b577e 100644 --- a/algorithms-miscellaneous-1/src/main/java/com/baeldung/math/automata/RtState.java +++ b/algorithms-miscellaneous-1/src/main/java/com/baeldung/algorithms/automata/RtState.java @@ -1,4 +1,4 @@ -package com.baeldung.math.automata; +package com.baeldung.algorithms.automata; import java.util.ArrayList; import java.util.List; diff --git a/algorithms-miscellaneous-1/src/main/java/com/baeldung/math/automata/RtTransition.java b/algorithms-miscellaneous-1/src/main/java/com/baeldung/algorithms/automata/RtTransition.java similarity index 93% rename from algorithms-miscellaneous-1/src/main/java/com/baeldung/math/automata/RtTransition.java rename to algorithms-miscellaneous-1/src/main/java/com/baeldung/algorithms/automata/RtTransition.java index e7c534df8b..cb205deacb 100644 --- a/algorithms-miscellaneous-1/src/main/java/com/baeldung/math/automata/RtTransition.java +++ b/algorithms-miscellaneous-1/src/main/java/com/baeldung/algorithms/automata/RtTransition.java @@ -1,4 +1,4 @@ -package com.baeldung.math.automata; +package com.baeldung.algorithms.automata; /** diff --git a/algorithms-miscellaneous-1/src/main/java/com/baeldung/math/automata/State.java b/algorithms-miscellaneous-1/src/main/java/com/baeldung/algorithms/automata/State.java similarity index 93% rename from algorithms-miscellaneous-1/src/main/java/com/baeldung/math/automata/State.java rename to algorithms-miscellaneous-1/src/main/java/com/baeldung/algorithms/automata/State.java index 10a1d9d697..1889c4c7f6 100644 --- a/algorithms-miscellaneous-1/src/main/java/com/baeldung/math/automata/State.java +++ b/algorithms-miscellaneous-1/src/main/java/com/baeldung/algorithms/automata/State.java @@ -1,4 +1,4 @@ -package com.baeldung.math.automata; +package com.baeldung.algorithms.automata; /** * State. Part of a finite state machine. diff --git a/algorithms-miscellaneous-1/src/main/java/com/baeldung/math/automata/Transition.java b/algorithms-miscellaneous-1/src/main/java/com/baeldung/algorithms/automata/Transition.java similarity index 89% rename from algorithms-miscellaneous-1/src/main/java/com/baeldung/math/automata/Transition.java rename to algorithms-miscellaneous-1/src/main/java/com/baeldung/algorithms/automata/Transition.java index 34d2b0b0bb..68177ba7dd 100644 --- a/algorithms-miscellaneous-1/src/main/java/com/baeldung/math/automata/Transition.java +++ b/algorithms-miscellaneous-1/src/main/java/com/baeldung/algorithms/automata/Transition.java @@ -1,4 +1,4 @@ -package com.baeldung.math.automata; +package com.baeldung.algorithms.automata; /** * Transition in a finite State machine. diff --git a/algorithms-miscellaneous-1/src/main/java/com/baeldung/math/binarysearch/BinarySearch.java b/algorithms-miscellaneous-1/src/main/java/com/baeldung/algorithms/binarysearch/BinarySearch.java similarity index 93% rename from algorithms-miscellaneous-1/src/main/java/com/baeldung/math/binarysearch/BinarySearch.java rename to algorithms-miscellaneous-1/src/main/java/com/baeldung/algorithms/binarysearch/BinarySearch.java index 0a92153ec2..5b2ac49d4e 100644 --- a/algorithms-miscellaneous-1/src/main/java/com/baeldung/math/binarysearch/BinarySearch.java +++ b/algorithms-miscellaneous-1/src/main/java/com/baeldung/algorithms/binarysearch/BinarySearch.java @@ -1,4 +1,4 @@ -package com.baeldung.math.binarysearch; +package com.baeldung.algorithms.binarysearch; import java.util.Arrays; import java.util.Collections; diff --git a/algorithms-miscellaneous-1/src/main/java/com/baeldung/math/combination/ApacheCommonsCombinationGenerator.java b/algorithms-miscellaneous-1/src/main/java/com/baeldung/algorithms/combination/ApacheCommonsCombinationGenerator.java similarity index 94% rename from algorithms-miscellaneous-1/src/main/java/com/baeldung/math/combination/ApacheCommonsCombinationGenerator.java rename to algorithms-miscellaneous-1/src/main/java/com/baeldung/algorithms/combination/ApacheCommonsCombinationGenerator.java index c3806a46a2..40142ce940 100644 --- a/algorithms-miscellaneous-1/src/main/java/com/baeldung/math/combination/ApacheCommonsCombinationGenerator.java +++ b/algorithms-miscellaneous-1/src/main/java/com/baeldung/algorithms/combination/ApacheCommonsCombinationGenerator.java @@ -1,4 +1,4 @@ -package com.baeldung.math.combination; +package com.baeldung.algorithms.combination; import java.util.Arrays; import java.util.Iterator; diff --git a/algorithms-miscellaneous-1/src/main/java/com/baeldung/math/combination/CombinatoricsLibCombinationGenerator.java b/algorithms-miscellaneous-1/src/main/java/com/baeldung/algorithms/combination/CombinatoricsLibCombinationGenerator.java similarity index 86% rename from algorithms-miscellaneous-1/src/main/java/com/baeldung/math/combination/CombinatoricsLibCombinationGenerator.java rename to algorithms-miscellaneous-1/src/main/java/com/baeldung/algorithms/combination/CombinatoricsLibCombinationGenerator.java index 5de6e11b93..0afdeefb8b 100644 --- a/algorithms-miscellaneous-1/src/main/java/com/baeldung/math/combination/CombinatoricsLibCombinationGenerator.java +++ b/algorithms-miscellaneous-1/src/main/java/com/baeldung/algorithms/combination/CombinatoricsLibCombinationGenerator.java @@ -1,4 +1,4 @@ -package com.baeldung.math.combination; +package com.baeldung.algorithms.combination; import org.paukov.combinatorics3.Generator; diff --git a/algorithms-miscellaneous-1/src/main/java/com/baeldung/math/combination/GuavaCombinationsGenerator.java b/algorithms-miscellaneous-1/src/main/java/com/baeldung/algorithms/combination/GuavaCombinationsGenerator.java similarity index 90% rename from algorithms-miscellaneous-1/src/main/java/com/baeldung/math/combination/GuavaCombinationsGenerator.java rename to algorithms-miscellaneous-1/src/main/java/com/baeldung/algorithms/combination/GuavaCombinationsGenerator.java index 1865c5c38a..d2783881ba 100644 --- a/algorithms-miscellaneous-1/src/main/java/com/baeldung/math/combination/GuavaCombinationsGenerator.java +++ b/algorithms-miscellaneous-1/src/main/java/com/baeldung/algorithms/combination/GuavaCombinationsGenerator.java @@ -1,4 +1,4 @@ -package com.baeldung.math.combination; +package com.baeldung.algorithms.combination; import java.util.Arrays; import java.util.Set; diff --git a/algorithms-miscellaneous-1/src/main/java/com/baeldung/math/combination/IterativeCombinationGenerator.java b/algorithms-miscellaneous-1/src/main/java/com/baeldung/algorithms/combination/IterativeCombinationGenerator.java similarity index 97% rename from algorithms-miscellaneous-1/src/main/java/com/baeldung/math/combination/IterativeCombinationGenerator.java rename to algorithms-miscellaneous-1/src/main/java/com/baeldung/algorithms/combination/IterativeCombinationGenerator.java index bb63aca213..676d2f41e3 100644 --- a/algorithms-miscellaneous-1/src/main/java/com/baeldung/math/combination/IterativeCombinationGenerator.java +++ b/algorithms-miscellaneous-1/src/main/java/com/baeldung/algorithms/combination/IterativeCombinationGenerator.java @@ -1,4 +1,4 @@ -package com.baeldung.math.combination; +package com.baeldung.algorithms.combination; import java.util.ArrayList; import java.util.Arrays; diff --git a/algorithms-miscellaneous-1/src/main/java/com/baeldung/math/combination/SelectionRecursiveCombinationGenerator.java b/algorithms-miscellaneous-1/src/main/java/com/baeldung/algorithms/combination/SelectionRecursiveCombinationGenerator.java similarity index 97% rename from algorithms-miscellaneous-1/src/main/java/com/baeldung/math/combination/SelectionRecursiveCombinationGenerator.java rename to algorithms-miscellaneous-1/src/main/java/com/baeldung/algorithms/combination/SelectionRecursiveCombinationGenerator.java index 2be408c502..52305b8c2f 100644 --- a/algorithms-miscellaneous-1/src/main/java/com/baeldung/math/combination/SelectionRecursiveCombinationGenerator.java +++ b/algorithms-miscellaneous-1/src/main/java/com/baeldung/algorithms/combination/SelectionRecursiveCombinationGenerator.java @@ -1,4 +1,4 @@ -package com.baeldung.math.combination; +package com.baeldung.algorithms.combination; import java.util.ArrayList; import java.util.Arrays; diff --git a/algorithms-miscellaneous-1/src/main/java/com/baeldung/math/combination/SetRecursiveCombinationGenerator.java b/algorithms-miscellaneous-1/src/main/java/com/baeldung/algorithms/combination/SetRecursiveCombinationGenerator.java similarity index 97% rename from algorithms-miscellaneous-1/src/main/java/com/baeldung/math/combination/SetRecursiveCombinationGenerator.java rename to algorithms-miscellaneous-1/src/main/java/com/baeldung/algorithms/combination/SetRecursiveCombinationGenerator.java index 5f15b0ac65..a73447b31d 100644 --- a/algorithms-miscellaneous-1/src/main/java/com/baeldung/math/combination/SetRecursiveCombinationGenerator.java +++ b/algorithms-miscellaneous-1/src/main/java/com/baeldung/algorithms/combination/SetRecursiveCombinationGenerator.java @@ -1,4 +1,4 @@ -package com.baeldung.math.combination; +package com.baeldung.algorithms.combination; import java.util.ArrayList; import java.util.Arrays; diff --git a/algorithms-miscellaneous-1/src/main/java/com/baeldung/math/enumstatemachine/LeaveRequestState.java b/algorithms-miscellaneous-1/src/main/java/com/baeldung/algorithms/enumstatemachine/LeaveRequestState.java similarity index 95% rename from algorithms-miscellaneous-1/src/main/java/com/baeldung/math/enumstatemachine/LeaveRequestState.java rename to algorithms-miscellaneous-1/src/main/java/com/baeldung/algorithms/enumstatemachine/LeaveRequestState.java index 77a626be82..5153c2e18e 100644 --- a/algorithms-miscellaneous-1/src/main/java/com/baeldung/math/enumstatemachine/LeaveRequestState.java +++ b/algorithms-miscellaneous-1/src/main/java/com/baeldung/algorithms/enumstatemachine/LeaveRequestState.java @@ -1,4 +1,4 @@ -package com.baeldung.math.enumstatemachine; +package com.baeldung.algorithms.enumstatemachine; public enum LeaveRequestState { diff --git a/algorithms-miscellaneous-1/src/main/java/com/baeldung/math/factorial/Factorial.java b/algorithms-miscellaneous-1/src/main/java/com/baeldung/algorithms/factorial/Factorial.java similarity index 97% rename from algorithms-miscellaneous-1/src/main/java/com/baeldung/math/factorial/Factorial.java rename to algorithms-miscellaneous-1/src/main/java/com/baeldung/algorithms/factorial/Factorial.java index 41cc08afd1..43d2221773 100644 --- a/algorithms-miscellaneous-1/src/main/java/com/baeldung/math/factorial/Factorial.java +++ b/algorithms-miscellaneous-1/src/main/java/com/baeldung/algorithms/factorial/Factorial.java @@ -1,4 +1,4 @@ -package com.baeldung.math.factorial; +package com.baeldung.algorithms.factorial; import java.math.BigInteger; import java.util.stream.LongStream; diff --git a/algorithms-miscellaneous-1/src/main/java/com/baeldung/math/hillclimbing/HillClimbing.java b/algorithms-miscellaneous-1/src/main/java/com/baeldung/algorithms/hillclimbing/HillClimbing.java similarity index 99% rename from algorithms-miscellaneous-1/src/main/java/com/baeldung/math/hillclimbing/HillClimbing.java rename to algorithms-miscellaneous-1/src/main/java/com/baeldung/algorithms/hillclimbing/HillClimbing.java index 39e2a99ae8..77089636c8 100644 --- a/algorithms-miscellaneous-1/src/main/java/com/baeldung/math/hillclimbing/HillClimbing.java +++ b/algorithms-miscellaneous-1/src/main/java/com/baeldung/algorithms/hillclimbing/HillClimbing.java @@ -1,4 +1,4 @@ -package com.baeldung.math.hillclimbing; +package com.baeldung.algorithms.hillclimbing; import java.util.ArrayList; import java.util.List; diff --git a/algorithms-miscellaneous-1/src/main/java/com/baeldung/math/hillclimbing/State.java b/algorithms-miscellaneous-1/src/main/java/com/baeldung/algorithms/hillclimbing/State.java similarity index 95% rename from algorithms-miscellaneous-1/src/main/java/com/baeldung/math/hillclimbing/State.java rename to algorithms-miscellaneous-1/src/main/java/com/baeldung/algorithms/hillclimbing/State.java index cdf81b1460..9180b33b5b 100644 --- a/algorithms-miscellaneous-1/src/main/java/com/baeldung/math/hillclimbing/State.java +++ b/algorithms-miscellaneous-1/src/main/java/com/baeldung/algorithms/hillclimbing/State.java @@ -1,4 +1,4 @@ -package com.baeldung.math.hillclimbing; +package com.baeldung.algorithms.hillclimbing; import java.util.ArrayList; import java.util.List; diff --git a/algorithms-miscellaneous-1/src/main/java/com/baeldung/math/kthlargest/FindKthLargest.java b/algorithms-miscellaneous-1/src/main/java/com/baeldung/algorithms/kthlargest/FindKthLargest.java similarity index 98% rename from algorithms-miscellaneous-1/src/main/java/com/baeldung/math/kthlargest/FindKthLargest.java rename to algorithms-miscellaneous-1/src/main/java/com/baeldung/algorithms/kthlargest/FindKthLargest.java index 4448e56f7d..7054979ada 100644 --- a/algorithms-miscellaneous-1/src/main/java/com/baeldung/math/kthlargest/FindKthLargest.java +++ b/algorithms-miscellaneous-1/src/main/java/com/baeldung/algorithms/kthlargest/FindKthLargest.java @@ -1,4 +1,4 @@ -package com.baeldung.math.kthlargest; +package com.baeldung.algorithms.kthlargest; import java.util.Arrays; import java.util.Collections; diff --git a/algorithms-miscellaneous-1/src/main/java/com/baeldung/math/mcts/montecarlo/MonteCarloTreeSearch.java b/algorithms-miscellaneous-1/src/main/java/com/baeldung/algorithms/mcts/montecarlo/MonteCarloTreeSearch.java similarity index 94% rename from algorithms-miscellaneous-1/src/main/java/com/baeldung/math/mcts/montecarlo/MonteCarloTreeSearch.java rename to algorithms-miscellaneous-1/src/main/java/com/baeldung/algorithms/mcts/montecarlo/MonteCarloTreeSearch.java index e07ae99489..9835e5f534 100644 --- a/algorithms-miscellaneous-1/src/main/java/com/baeldung/math/mcts/montecarlo/MonteCarloTreeSearch.java +++ b/algorithms-miscellaneous-1/src/main/java/com/baeldung/algorithms/mcts/montecarlo/MonteCarloTreeSearch.java @@ -1,10 +1,10 @@ -package com.baeldung.math.mcts.montecarlo; +package com.baeldung.algorithms.mcts.montecarlo; import java.util.List; -import com.baeldung.math.mcts.tictactoe.Board; -import com.baeldung.math.mcts.tree.Node; -import com.baeldung.math.mcts.tree.Tree; +import com.baeldung.algorithms.mcts.tree.Node; +import com.baeldung.algorithms.mcts.tree.Tree; +import com.baeldung.algorithms.mcts.tictactoe.Board; public class MonteCarloTreeSearch { diff --git a/algorithms-miscellaneous-1/src/main/java/com/baeldung/math/mcts/montecarlo/State.java b/algorithms-miscellaneous-1/src/main/java/com/baeldung/algorithms/mcts/montecarlo/State.java similarity index 93% rename from algorithms-miscellaneous-1/src/main/java/com/baeldung/math/mcts/montecarlo/State.java rename to algorithms-miscellaneous-1/src/main/java/com/baeldung/algorithms/mcts/montecarlo/State.java index 44a44fdc94..5d4b265500 100644 --- a/algorithms-miscellaneous-1/src/main/java/com/baeldung/math/mcts/montecarlo/State.java +++ b/algorithms-miscellaneous-1/src/main/java/com/baeldung/algorithms/mcts/montecarlo/State.java @@ -1,10 +1,10 @@ -package com.baeldung.math.mcts.montecarlo; +package com.baeldung.algorithms.mcts.montecarlo; import java.util.ArrayList; import java.util.List; -import com.baeldung.math.mcts.tictactoe.Board; -import com.baeldung.math.mcts.tictactoe.Position; +import com.baeldung.algorithms.mcts.tictactoe.Board; +import com.baeldung.algorithms.mcts.tictactoe.Position; public class State { private Board board; diff --git a/algorithms-miscellaneous-1/src/main/java/com/baeldung/math/mcts/montecarlo/UCT.java b/algorithms-miscellaneous-1/src/main/java/com/baeldung/algorithms/mcts/montecarlo/UCT.java similarity index 87% rename from algorithms-miscellaneous-1/src/main/java/com/baeldung/math/mcts/montecarlo/UCT.java rename to algorithms-miscellaneous-1/src/main/java/com/baeldung/algorithms/mcts/montecarlo/UCT.java index adb447fa2b..b345bbec09 100644 --- a/algorithms-miscellaneous-1/src/main/java/com/baeldung/math/mcts/montecarlo/UCT.java +++ b/algorithms-miscellaneous-1/src/main/java/com/baeldung/algorithms/mcts/montecarlo/UCT.java @@ -1,9 +1,9 @@ -package com.baeldung.math.mcts.montecarlo; +package com.baeldung.algorithms.mcts.montecarlo; import java.util.Collections; import java.util.Comparator; -import com.baeldung.math.mcts.tree.Node; +import com.baeldung.algorithms.mcts.tree.Node; public class UCT { diff --git a/algorithms-miscellaneous-1/src/main/java/com/baeldung/math/mcts/tictactoe/Board.java b/algorithms-miscellaneous-1/src/main/java/com/baeldung/algorithms/mcts/tictactoe/Board.java similarity index 98% rename from algorithms-miscellaneous-1/src/main/java/com/baeldung/math/mcts/tictactoe/Board.java rename to algorithms-miscellaneous-1/src/main/java/com/baeldung/algorithms/mcts/tictactoe/Board.java index 3a1393b66f..1402c5e22d 100644 --- a/algorithms-miscellaneous-1/src/main/java/com/baeldung/math/mcts/tictactoe/Board.java +++ b/algorithms-miscellaneous-1/src/main/java/com/baeldung/algorithms/mcts/tictactoe/Board.java @@ -1,4 +1,4 @@ -package com.baeldung.math.mcts.tictactoe; +package com.baeldung.algorithms.mcts.tictactoe; import java.util.ArrayList; import java.util.List; diff --git a/algorithms-miscellaneous-1/src/main/java/com/baeldung/math/mcts/tictactoe/Position.java b/algorithms-miscellaneous-1/src/main/java/com/baeldung/algorithms/mcts/tictactoe/Position.java similarity index 88% rename from algorithms-miscellaneous-1/src/main/java/com/baeldung/math/mcts/tictactoe/Position.java rename to algorithms-miscellaneous-1/src/main/java/com/baeldung/algorithms/mcts/tictactoe/Position.java index 6e39184ddf..94ead4288d 100644 --- a/algorithms-miscellaneous-1/src/main/java/com/baeldung/math/mcts/tictactoe/Position.java +++ b/algorithms-miscellaneous-1/src/main/java/com/baeldung/algorithms/mcts/tictactoe/Position.java @@ -1,4 +1,4 @@ -package com.baeldung.math.mcts.tictactoe; +package com.baeldung.algorithms.mcts.tictactoe; public class Position { int x; diff --git a/algorithms-miscellaneous-1/src/main/java/com/baeldung/math/mcts/tree/Node.java b/algorithms-miscellaneous-1/src/main/java/com/baeldung/algorithms/mcts/tree/Node.java similarity index 94% rename from algorithms-miscellaneous-1/src/main/java/com/baeldung/math/mcts/tree/Node.java rename to algorithms-miscellaneous-1/src/main/java/com/baeldung/algorithms/mcts/tree/Node.java index ff83e52c4e..0ad6510e50 100644 --- a/algorithms-miscellaneous-1/src/main/java/com/baeldung/math/mcts/tree/Node.java +++ b/algorithms-miscellaneous-1/src/main/java/com/baeldung/algorithms/mcts/tree/Node.java @@ -1,11 +1,11 @@ -package com.baeldung.math.mcts.tree; +package com.baeldung.algorithms.mcts.tree; import java.util.ArrayList; import java.util.Collections; import java.util.Comparator; import java.util.List; -import com.baeldung.math.mcts.montecarlo.State; +import com.baeldung.algorithms.mcts.montecarlo.State; public class Node { State state; diff --git a/algorithms-miscellaneous-1/src/main/java/com/baeldung/math/mcts/tree/Tree.java b/algorithms-miscellaneous-1/src/main/java/com/baeldung/algorithms/mcts/tree/Tree.java similarity index 89% rename from algorithms-miscellaneous-1/src/main/java/com/baeldung/math/mcts/tree/Tree.java rename to algorithms-miscellaneous-1/src/main/java/com/baeldung/algorithms/mcts/tree/Tree.java index 3e91f22396..c5543c0ed4 100644 --- a/algorithms-miscellaneous-1/src/main/java/com/baeldung/math/mcts/tree/Tree.java +++ b/algorithms-miscellaneous-1/src/main/java/com/baeldung/algorithms/mcts/tree/Tree.java @@ -1,4 +1,4 @@ -package com.baeldung.math.mcts.tree; +package com.baeldung.algorithms.mcts.tree; public class Tree { Node root; diff --git a/algorithms-miscellaneous-1/src/main/java/com/baeldung/math/middleelementlookup/MiddleElementLookup.java b/algorithms-miscellaneous-1/src/main/java/com/baeldung/algorithms/middleelementlookup/MiddleElementLookup.java similarity index 97% rename from algorithms-miscellaneous-1/src/main/java/com/baeldung/math/middleelementlookup/MiddleElementLookup.java rename to algorithms-miscellaneous-1/src/main/java/com/baeldung/algorithms/middleelementlookup/MiddleElementLookup.java index 4e847b1e11..7e25e0456b 100644 --- a/algorithms-miscellaneous-1/src/main/java/com/baeldung/math/middleelementlookup/MiddleElementLookup.java +++ b/algorithms-miscellaneous-1/src/main/java/com/baeldung/algorithms/middleelementlookup/MiddleElementLookup.java @@ -1,4 +1,4 @@ -package com.baeldung.math.middleelementlookup; +package com.baeldung.algorithms.middleelementlookup; import java.util.LinkedList; import java.util.Optional; diff --git a/algorithms-miscellaneous-1/src/main/java/com/baeldung/math/middleelementlookup/Node.java b/algorithms-miscellaneous-1/src/main/java/com/baeldung/algorithms/middleelementlookup/Node.java similarity index 90% rename from algorithms-miscellaneous-1/src/main/java/com/baeldung/math/middleelementlookup/Node.java rename to algorithms-miscellaneous-1/src/main/java/com/baeldung/algorithms/middleelementlookup/Node.java index 987e8663ec..2a594937e3 100644 --- a/algorithms-miscellaneous-1/src/main/java/com/baeldung/math/middleelementlookup/Node.java +++ b/algorithms-miscellaneous-1/src/main/java/com/baeldung/algorithms/middleelementlookup/Node.java @@ -1,4 +1,4 @@ -package com.baeldung.math.middleelementlookup; +package com.baeldung.algorithms.middleelementlookup; public class Node { private Node next; diff --git a/algorithms-miscellaneous-1/src/main/java/com/baeldung/math/minimax/GameOfBones.java b/algorithms-miscellaneous-1/src/main/java/com/baeldung/algorithms/minimax/GameOfBones.java similarity index 90% rename from algorithms-miscellaneous-1/src/main/java/com/baeldung/math/minimax/GameOfBones.java rename to algorithms-miscellaneous-1/src/main/java/com/baeldung/algorithms/minimax/GameOfBones.java index 6f1ace9d54..8e14afcf7a 100644 --- a/algorithms-miscellaneous-1/src/main/java/com/baeldung/math/minimax/GameOfBones.java +++ b/algorithms-miscellaneous-1/src/main/java/com/baeldung/algorithms/minimax/GameOfBones.java @@ -1,4 +1,4 @@ -package com.baeldung.math.minimax; +package com.baeldung.algorithms.minimax; import java.util.List; import java.util.stream.Collectors; diff --git a/algorithms-miscellaneous-1/src/main/java/com/baeldung/math/minimax/MiniMax.java b/algorithms-miscellaneous-1/src/main/java/com/baeldung/algorithms/minimax/MiniMax.java similarity index 97% rename from algorithms-miscellaneous-1/src/main/java/com/baeldung/math/minimax/MiniMax.java rename to algorithms-miscellaneous-1/src/main/java/com/baeldung/algorithms/minimax/MiniMax.java index e656b133f3..fed4ebed48 100644 --- a/algorithms-miscellaneous-1/src/main/java/com/baeldung/math/minimax/MiniMax.java +++ b/algorithms-miscellaneous-1/src/main/java/com/baeldung/algorithms/minimax/MiniMax.java @@ -1,4 +1,4 @@ -package com.baeldung.math.minimax; +package com.baeldung.algorithms.minimax; import java.util.Comparator; import java.util.List; diff --git a/algorithms-miscellaneous-1/src/main/java/com/baeldung/math/minimax/Node.java b/algorithms-miscellaneous-1/src/main/java/com/baeldung/algorithms/minimax/Node.java similarity index 94% rename from algorithms-miscellaneous-1/src/main/java/com/baeldung/math/minimax/Node.java rename to algorithms-miscellaneous-1/src/main/java/com/baeldung/algorithms/minimax/Node.java index ff41caee9f..4ceef0073d 100644 --- a/algorithms-miscellaneous-1/src/main/java/com/baeldung/math/minimax/Node.java +++ b/algorithms-miscellaneous-1/src/main/java/com/baeldung/algorithms/minimax/Node.java @@ -1,4 +1,4 @@ -package com.baeldung.math.minimax; +package com.baeldung.algorithms.minimax; import java.util.ArrayList; import java.util.List; diff --git a/algorithms-miscellaneous-1/src/main/java/com/baeldung/math/minimax/Tree.java b/algorithms-miscellaneous-1/src/main/java/com/baeldung/algorithms/minimax/Tree.java similarity index 81% rename from algorithms-miscellaneous-1/src/main/java/com/baeldung/math/minimax/Tree.java rename to algorithms-miscellaneous-1/src/main/java/com/baeldung/algorithms/minimax/Tree.java index 52716d244a..34c56cdd58 100644 --- a/algorithms-miscellaneous-1/src/main/java/com/baeldung/math/minimax/Tree.java +++ b/algorithms-miscellaneous-1/src/main/java/com/baeldung/algorithms/minimax/Tree.java @@ -1,4 +1,4 @@ -package com.baeldung.math.minimax; +package com.baeldung.algorithms.minimax; public class Tree { private Node root; diff --git a/algorithms-miscellaneous-1/src/main/java/com/baeldung/math/multiswarm/Constants.java b/algorithms-miscellaneous-1/src/main/java/com/baeldung/algorithms/multiswarm/Constants.java similarity index 96% rename from algorithms-miscellaneous-1/src/main/java/com/baeldung/math/multiswarm/Constants.java rename to algorithms-miscellaneous-1/src/main/java/com/baeldung/algorithms/multiswarm/Constants.java index 784ac56848..b646c686b2 100644 --- a/algorithms-miscellaneous-1/src/main/java/com/baeldung/math/multiswarm/Constants.java +++ b/algorithms-miscellaneous-1/src/main/java/com/baeldung/algorithms/multiswarm/Constants.java @@ -1,4 +1,4 @@ -package com.baeldung.math.multiswarm; +package com.baeldung.algorithms.multiswarm; /** * Constants used by the Multi-swarm optimization algorithms. diff --git a/algorithms-miscellaneous-1/src/main/java/com/baeldung/math/multiswarm/FitnessFunction.java b/algorithms-miscellaneous-1/src/main/java/com/baeldung/algorithms/multiswarm/FitnessFunction.java similarity index 90% rename from algorithms-miscellaneous-1/src/main/java/com/baeldung/math/multiswarm/FitnessFunction.java rename to algorithms-miscellaneous-1/src/main/java/com/baeldung/algorithms/multiswarm/FitnessFunction.java index 289ae82352..2d86ec8d94 100644 --- a/algorithms-miscellaneous-1/src/main/java/com/baeldung/math/multiswarm/FitnessFunction.java +++ b/algorithms-miscellaneous-1/src/main/java/com/baeldung/algorithms/multiswarm/FitnessFunction.java @@ -1,4 +1,4 @@ -package com.baeldung.math.multiswarm; +package com.baeldung.algorithms.multiswarm; /** * Interface for a fitness function, used to decouple the main algorithm logic diff --git a/algorithms-miscellaneous-1/src/main/java/com/baeldung/math/multiswarm/Multiswarm.java b/algorithms-miscellaneous-1/src/main/java/com/baeldung/algorithms/multiswarm/Multiswarm.java similarity index 99% rename from algorithms-miscellaneous-1/src/main/java/com/baeldung/math/multiswarm/Multiswarm.java rename to algorithms-miscellaneous-1/src/main/java/com/baeldung/algorithms/multiswarm/Multiswarm.java index f616c92dd5..ef60726278 100644 --- a/algorithms-miscellaneous-1/src/main/java/com/baeldung/math/multiswarm/Multiswarm.java +++ b/algorithms-miscellaneous-1/src/main/java/com/baeldung/algorithms/multiswarm/Multiswarm.java @@ -1,4 +1,4 @@ -package com.baeldung.math.multiswarm; +package com.baeldung.algorithms.multiswarm; import java.util.Arrays; import java.util.Random; diff --git a/algorithms-miscellaneous-1/src/main/java/com/baeldung/math/multiswarm/Particle.java b/algorithms-miscellaneous-1/src/main/java/com/baeldung/algorithms/multiswarm/Particle.java similarity index 98% rename from algorithms-miscellaneous-1/src/main/java/com/baeldung/math/multiswarm/Particle.java rename to algorithms-miscellaneous-1/src/main/java/com/baeldung/algorithms/multiswarm/Particle.java index df25b1a14f..5930a94267 100644 --- a/algorithms-miscellaneous-1/src/main/java/com/baeldung/math/multiswarm/Particle.java +++ b/algorithms-miscellaneous-1/src/main/java/com/baeldung/algorithms/multiswarm/Particle.java @@ -1,4 +1,4 @@ -package com.baeldung.math.multiswarm; +package com.baeldung.algorithms.multiswarm; import java.util.Arrays; diff --git a/algorithms-miscellaneous-1/src/main/java/com/baeldung/math/multiswarm/Swarm.java b/algorithms-miscellaneous-1/src/main/java/com/baeldung/algorithms/multiswarm/Swarm.java similarity index 98% rename from algorithms-miscellaneous-1/src/main/java/com/baeldung/math/multiswarm/Swarm.java rename to algorithms-miscellaneous-1/src/main/java/com/baeldung/algorithms/multiswarm/Swarm.java index efa98b2628..e6d37bb7e6 100644 --- a/algorithms-miscellaneous-1/src/main/java/com/baeldung/math/multiswarm/Swarm.java +++ b/algorithms-miscellaneous-1/src/main/java/com/baeldung/algorithms/multiswarm/Swarm.java @@ -1,4 +1,4 @@ -package com.baeldung.math.multiswarm; +package com.baeldung.algorithms.multiswarm; import java.util.Arrays; import java.util.Random; diff --git a/algorithms-miscellaneous-1/src/main/java/com/baeldung/math/permutation/Permutation.java b/algorithms-miscellaneous-1/src/main/java/com/baeldung/algorithms/permutation/Permutation.java similarity index 98% rename from algorithms-miscellaneous-1/src/main/java/com/baeldung/math/permutation/Permutation.java rename to algorithms-miscellaneous-1/src/main/java/com/baeldung/algorithms/permutation/Permutation.java index a574adc937..7fedd78ffb 100644 --- a/algorithms-miscellaneous-1/src/main/java/com/baeldung/math/permutation/Permutation.java +++ b/algorithms-miscellaneous-1/src/main/java/com/baeldung/algorithms/permutation/Permutation.java @@ -1,4 +1,4 @@ -package com.baeldung.math.permutation; +package com.baeldung.algorithms.permutation; import java.util.Arrays; import java.util.Collections; diff --git a/algorithms-miscellaneous-1/src/main/java/com/baeldung/math/string/EnglishAlphabetLetters.java b/algorithms-miscellaneous-1/src/main/java/com/baeldung/algorithms/string/EnglishAlphabetLetters.java similarity index 96% rename from algorithms-miscellaneous-1/src/main/java/com/baeldung/math/string/EnglishAlphabetLetters.java rename to algorithms-miscellaneous-1/src/main/java/com/baeldung/algorithms/string/EnglishAlphabetLetters.java index ea9181a633..2dd1fdcb75 100644 --- a/algorithms-miscellaneous-1/src/main/java/com/baeldung/math/string/EnglishAlphabetLetters.java +++ b/algorithms-miscellaneous-1/src/main/java/com/baeldung/algorithms/string/EnglishAlphabetLetters.java @@ -1,4 +1,4 @@ -package com.baeldung.math.string; +package com.baeldung.algorithms.string; public class EnglishAlphabetLetters { diff --git a/algorithms-miscellaneous-1/src/main/java/com/baeldung/math/string/LongestSubstringNonRepeatingCharacters.java b/algorithms-miscellaneous-1/src/main/java/com/baeldung/algorithms/string/LongestSubstringNonRepeatingCharacters.java similarity index 94% rename from algorithms-miscellaneous-1/src/main/java/com/baeldung/math/string/LongestSubstringNonRepeatingCharacters.java rename to algorithms-miscellaneous-1/src/main/java/com/baeldung/algorithms/string/LongestSubstringNonRepeatingCharacters.java index 527a5720bb..cd1f3e94d5 100644 --- a/algorithms-miscellaneous-1/src/main/java/com/baeldung/math/string/LongestSubstringNonRepeatingCharacters.java +++ b/algorithms-miscellaneous-1/src/main/java/com/baeldung/algorithms/string/LongestSubstringNonRepeatingCharacters.java @@ -1,4 +1,4 @@ -package com.baeldung.math.string; +package com.baeldung.algorithms.string; import java.util.HashMap; import java.util.HashSet; diff --git a/algorithms-miscellaneous-1/src/main/java/com/baeldung/math/string/SubstringPalindrome.java b/algorithms-miscellaneous-1/src/main/java/com/baeldung/algorithms/string/SubstringPalindrome.java similarity index 98% rename from algorithms-miscellaneous-1/src/main/java/com/baeldung/math/string/SubstringPalindrome.java rename to algorithms-miscellaneous-1/src/main/java/com/baeldung/algorithms/string/SubstringPalindrome.java index 9c490c70e9..b3d142eb07 100644 --- a/algorithms-miscellaneous-1/src/main/java/com/baeldung/math/string/SubstringPalindrome.java +++ b/algorithms-miscellaneous-1/src/main/java/com/baeldung/algorithms/string/SubstringPalindrome.java @@ -1,4 +1,4 @@ -package com.baeldung.math.string; +package com.baeldung.algorithms.string; import java.util.HashSet; import java.util.Set; diff --git a/algorithms-miscellaneous-1/src/main/java/com/baeldung/math/string/search/StringSearchAlgorithms.java b/algorithms-miscellaneous-1/src/main/java/com/baeldung/algorithms/string/search/StringSearchAlgorithms.java similarity index 95% rename from algorithms-miscellaneous-1/src/main/java/com/baeldung/math/string/search/StringSearchAlgorithms.java rename to algorithms-miscellaneous-1/src/main/java/com/baeldung/algorithms/string/search/StringSearchAlgorithms.java index d53817332c..45ac53e039 100755 --- a/algorithms-miscellaneous-1/src/main/java/com/baeldung/math/string/search/StringSearchAlgorithms.java +++ b/algorithms-miscellaneous-1/src/main/java/com/baeldung/algorithms/string/search/StringSearchAlgorithms.java @@ -1,4 +1,4 @@ -package com.baeldung.math.string.search; +package com.baeldung.algorithms.string.search; import java.math.BigInteger; import java.util.Random; diff --git a/algorithms-miscellaneous-1/src/main/java/com/baeldung/math/twopointertechnique/LinkedListFindMiddle.java b/algorithms-miscellaneous-1/src/main/java/com/baeldung/algorithms/twopointertechnique/LinkedListFindMiddle.java similarity index 87% rename from algorithms-miscellaneous-1/src/main/java/com/baeldung/math/twopointertechnique/LinkedListFindMiddle.java rename to algorithms-miscellaneous-1/src/main/java/com/baeldung/algorithms/twopointertechnique/LinkedListFindMiddle.java index 39d612001d..a7031f4fba 100644 --- a/algorithms-miscellaneous-1/src/main/java/com/baeldung/math/twopointertechnique/LinkedListFindMiddle.java +++ b/algorithms-miscellaneous-1/src/main/java/com/baeldung/algorithms/twopointertechnique/LinkedListFindMiddle.java @@ -1,4 +1,4 @@ -package com.baeldung.math.twopointertechnique; +package com.baeldung.algorithms.twopointertechnique; public class LinkedListFindMiddle { diff --git a/algorithms-miscellaneous-1/src/main/java/com/baeldung/math/twopointertechnique/MyNode.java b/algorithms-miscellaneous-1/src/main/java/com/baeldung/algorithms/twopointertechnique/MyNode.java similarity index 84% rename from algorithms-miscellaneous-1/src/main/java/com/baeldung/math/twopointertechnique/MyNode.java rename to algorithms-miscellaneous-1/src/main/java/com/baeldung/algorithms/twopointertechnique/MyNode.java index 9fc227d7f1..7d93f03ef9 100644 --- a/algorithms-miscellaneous-1/src/main/java/com/baeldung/math/twopointertechnique/MyNode.java +++ b/algorithms-miscellaneous-1/src/main/java/com/baeldung/algorithms/twopointertechnique/MyNode.java @@ -1,4 +1,4 @@ -package com.baeldung.math.twopointertechnique; +package com.baeldung.algorithms.twopointertechnique; public class MyNode { MyNode next; diff --git a/algorithms-miscellaneous-1/src/main/java/com/baeldung/math/twopointertechnique/RotateArray.java b/algorithms-miscellaneous-1/src/main/java/com/baeldung/algorithms/twopointertechnique/RotateArray.java similarity index 90% rename from algorithms-miscellaneous-1/src/main/java/com/baeldung/math/twopointertechnique/RotateArray.java rename to algorithms-miscellaneous-1/src/main/java/com/baeldung/algorithms/twopointertechnique/RotateArray.java index 6fddec6d7b..b4e3698c01 100644 --- a/algorithms-miscellaneous-1/src/main/java/com/baeldung/math/twopointertechnique/RotateArray.java +++ b/algorithms-miscellaneous-1/src/main/java/com/baeldung/algorithms/twopointertechnique/RotateArray.java @@ -1,4 +1,4 @@ -package com.baeldung.math.twopointertechnique; +package com.baeldung.algorithms.twopointertechnique; public class RotateArray { diff --git a/algorithms-miscellaneous-1/src/main/java/com/baeldung/math/twopointertechnique/TwoSum.java b/algorithms-miscellaneous-1/src/main/java/com/baeldung/algorithms/twopointertechnique/TwoSum.java similarity index 94% rename from algorithms-miscellaneous-1/src/main/java/com/baeldung/math/twopointertechnique/TwoSum.java rename to algorithms-miscellaneous-1/src/main/java/com/baeldung/algorithms/twopointertechnique/TwoSum.java index 46e6ba7439..14eceaa1bd 100644 --- a/algorithms-miscellaneous-1/src/main/java/com/baeldung/math/twopointertechnique/TwoSum.java +++ b/algorithms-miscellaneous-1/src/main/java/com/baeldung/algorithms/twopointertechnique/TwoSum.java @@ -1,4 +1,4 @@ -package com.baeldung.math.twopointertechnique; +package com.baeldung.algorithms.twopointertechnique; public class TwoSum { diff --git a/algorithms-miscellaneous-1/src/test/java/com/baeldung/math/HillClimbingAlgorithmUnitTest.java b/algorithms-miscellaneous-1/src/test/java/com/baeldung/math/HillClimbingAlgorithmUnitTest.java index c11a223b3e..15d8585157 100644 --- a/algorithms-miscellaneous-1/src/test/java/com/baeldung/math/HillClimbingAlgorithmUnitTest.java +++ b/algorithms-miscellaneous-1/src/test/java/com/baeldung/math/HillClimbingAlgorithmUnitTest.java @@ -1,7 +1,7 @@ package com.baeldung.math; -import com.baeldung.math.hillclimbing.HillClimbing; -import com.baeldung.math.hillclimbing.State; +import com.baeldung.algorithms.hillclimbing.HillClimbing; +import com.baeldung.algorithms.hillclimbing.State; import org.junit.Before; import org.junit.Test; diff --git a/algorithms-miscellaneous-1/src/test/java/com/baeldung/math/MiddleElementLookupUnitTest.java b/algorithms-miscellaneous-1/src/test/java/com/baeldung/math/MiddleElementLookupUnitTest.java index e2ea92d9dd..97bbc6aeaa 100644 --- a/algorithms-miscellaneous-1/src/test/java/com/baeldung/math/MiddleElementLookupUnitTest.java +++ b/algorithms-miscellaneous-1/src/test/java/com/baeldung/math/MiddleElementLookupUnitTest.java @@ -1,7 +1,7 @@ package com.baeldung.math; -import com.baeldung.math.middleelementlookup.MiddleElementLookup; -import com.baeldung.math.middleelementlookup.Node; +import com.baeldung.algorithms.middleelementlookup.MiddleElementLookup; +import com.baeldung.algorithms.middleelementlookup.Node; import org.junit.Test; import java.util.LinkedList; diff --git a/algorithms-miscellaneous-1/src/test/java/com/baeldung/math/RtFiniteStateMachineLongRunningUnitTest.java b/algorithms-miscellaneous-1/src/test/java/com/baeldung/math/RtFiniteStateMachineLongRunningUnitTest.java index 637842717c..bee90459e2 100644 --- a/algorithms-miscellaneous-1/src/test/java/com/baeldung/math/RtFiniteStateMachineLongRunningUnitTest.java +++ b/algorithms-miscellaneous-1/src/test/java/com/baeldung/math/RtFiniteStateMachineLongRunningUnitTest.java @@ -1,6 +1,6 @@ package com.baeldung.math; -import com.baeldung.math.automata.*; +import com.baeldung.algorithms.automata.*; import org.junit.Test; import static org.junit.Assert.assertTrue; diff --git a/algorithms-miscellaneous-1/src/test/java/com/baeldung/math/StringSearchAlgorithmsUnitTest.java b/algorithms-miscellaneous-1/src/test/java/com/baeldung/math/StringSearchAlgorithmsUnitTest.java index bd69f0085d..9de282331a 100755 --- a/algorithms-miscellaneous-1/src/test/java/com/baeldung/math/StringSearchAlgorithmsUnitTest.java +++ b/algorithms-miscellaneous-1/src/test/java/com/baeldung/math/StringSearchAlgorithmsUnitTest.java @@ -4,7 +4,7 @@ package com.baeldung.math; import org.junit.Assert; import org.junit.Test; -import com.baeldung.math.string.search.StringSearchAlgorithms; +import com.baeldung.algorithms.string.search.StringSearchAlgorithms; public class StringSearchAlgorithmsUnitTest { diff --git a/algorithms-miscellaneous-1/src/test/java/com/baeldung/math/binarysearch/BinarySearchUnitTest.java b/algorithms-miscellaneous-1/src/test/java/com/baeldung/math/binarysearch/BinarySearchUnitTest.java index 61c6a838d8..15ecaa2d6a 100644 --- a/algorithms-miscellaneous-1/src/test/java/com/baeldung/math/binarysearch/BinarySearchUnitTest.java +++ b/algorithms-miscellaneous-1/src/test/java/com/baeldung/math/binarysearch/BinarySearchUnitTest.java @@ -3,6 +3,7 @@ package com.baeldung.math.binarysearch; import java.util.Arrays; import java.util.List; +import com.baeldung.algorithms.binarysearch.BinarySearch; import org.junit.Assert; import org.junit.Test; diff --git a/algorithms-miscellaneous-1/src/test/java/com/baeldung/math/combination/CombinationUnitTest.java b/algorithms-miscellaneous-1/src/test/java/com/baeldung/math/combination/CombinationUnitTest.java index 54c57038a9..878a08c00f 100644 --- a/algorithms-miscellaneous-1/src/test/java/com/baeldung/math/combination/CombinationUnitTest.java +++ b/algorithms-miscellaneous-1/src/test/java/com/baeldung/math/combination/CombinationUnitTest.java @@ -4,6 +4,9 @@ import static org.junit.jupiter.api.Assertions.assertEquals; import java.util.List; +import com.baeldung.algorithms.combination.IterativeCombinationGenerator; +import com.baeldung.algorithms.combination.SelectionRecursiveCombinationGenerator; +import com.baeldung.algorithms.combination.SetRecursiveCombinationGenerator; import org.junit.Test; public class CombinationUnitTest { diff --git a/algorithms-miscellaneous-1/src/test/java/com/baeldung/math/enumstatemachine/LeaveRequestStateUnitTest.java b/algorithms-miscellaneous-1/src/test/java/com/baeldung/math/enumstatemachine/LeaveRequestStateUnitTest.java index 558ce0a0b2..feaf27c7c5 100644 --- a/algorithms-miscellaneous-1/src/test/java/com/baeldung/math/enumstatemachine/LeaveRequestStateUnitTest.java +++ b/algorithms-miscellaneous-1/src/test/java/com/baeldung/math/enumstatemachine/LeaveRequestStateUnitTest.java @@ -2,6 +2,7 @@ package com.baeldung.math.enumstatemachine; import static org.junit.Assert.assertEquals; +import com.baeldung.algorithms.enumstatemachine.LeaveRequestState; import org.junit.Test; public class LeaveRequestStateUnitTest { diff --git a/algorithms-miscellaneous-1/src/test/java/com/baeldung/math/factorial/FactorialUnitTest.java b/algorithms-miscellaneous-1/src/test/java/com/baeldung/math/factorial/FactorialUnitTest.java index 654d45747a..22cd0a156c 100644 --- a/algorithms-miscellaneous-1/src/test/java/com/baeldung/math/factorial/FactorialUnitTest.java +++ b/algorithms-miscellaneous-1/src/test/java/com/baeldung/math/factorial/FactorialUnitTest.java @@ -4,6 +4,7 @@ import static org.assertj.core.api.Assertions.assertThat; import java.math.BigInteger; +import com.baeldung.algorithms.factorial.Factorial; import org.junit.Before; import org.junit.Test; diff --git a/algorithms-miscellaneous-1/src/test/java/com/baeldung/math/kthlargest/FindKthLargestUnitTest.java b/algorithms-miscellaneous-1/src/test/java/com/baeldung/math/kthlargest/FindKthLargestUnitTest.java index 47d18fd02a..542b7e9c92 100644 --- a/algorithms-miscellaneous-1/src/test/java/com/baeldung/math/kthlargest/FindKthLargestUnitTest.java +++ b/algorithms-miscellaneous-1/src/test/java/com/baeldung/math/kthlargest/FindKthLargestUnitTest.java @@ -2,6 +2,7 @@ package com.baeldung.math.kthlargest; import static org.assertj.core.api.Assertions.*; +import com.baeldung.algorithms.kthlargest.FindKthLargest; import org.junit.Before; import org.junit.Test; diff --git a/algorithms-miscellaneous-1/src/test/java/com/baeldung/math/mcts/MCTSUnitTest.java b/algorithms-miscellaneous-1/src/test/java/com/baeldung/math/mcts/MCTSUnitTest.java index 56c8b1fb5a..263233c876 100644 --- a/algorithms-miscellaneous-1/src/test/java/com/baeldung/math/mcts/MCTSUnitTest.java +++ b/algorithms-miscellaneous-1/src/test/java/com/baeldung/math/mcts/MCTSUnitTest.java @@ -8,12 +8,12 @@ import java.util.List; import org.junit.Before; import org.junit.Test; -import com.baeldung.math.mcts.montecarlo.MonteCarloTreeSearch; -import com.baeldung.math.mcts.montecarlo.State; -import com.baeldung.math.mcts.montecarlo.UCT; -import com.baeldung.math.mcts.tictactoe.Board; -import com.baeldung.math.mcts.tictactoe.Position; -import com.baeldung.math.mcts.tree.Tree; +import com.baeldung.algorithms.mcts.montecarlo.MonteCarloTreeSearch; +import com.baeldung.algorithms.mcts.montecarlo.State; +import com.baeldung.algorithms.mcts.montecarlo.UCT; +import com.baeldung.algorithms.mcts.tictactoe.Board; +import com.baeldung.algorithms.mcts.tictactoe.Position; +import com.baeldung.algorithms.mcts.tree.Tree; public class MCTSUnitTest { private Tree gameTree; diff --git a/algorithms-miscellaneous-1/src/test/java/com/baeldung/math/minimax/MinimaxUnitTest.java b/algorithms-miscellaneous-1/src/test/java/com/baeldung/math/minimax/MinimaxUnitTest.java index bcf03780c5..60b3e7fd6f 100644 --- a/algorithms-miscellaneous-1/src/test/java/com/baeldung/math/minimax/MinimaxUnitTest.java +++ b/algorithms-miscellaneous-1/src/test/java/com/baeldung/math/minimax/MinimaxUnitTest.java @@ -1,5 +1,7 @@ package com.baeldung.math.minimax; +import com.baeldung.algorithms.minimax.MiniMax; +import com.baeldung.algorithms.minimax.Tree; import org.junit.Before; import org.junit.Test; diff --git a/algorithms-miscellaneous-1/src/test/java/com/baeldung/math/multiswarm/LolFitnessFunction.java b/algorithms-miscellaneous-1/src/test/java/com/baeldung/math/multiswarm/LolFitnessFunction.java index b8c047a287..5ef8ecbb65 100644 --- a/algorithms-miscellaneous-1/src/test/java/com/baeldung/math/multiswarm/LolFitnessFunction.java +++ b/algorithms-miscellaneous-1/src/test/java/com/baeldung/math/multiswarm/LolFitnessFunction.java @@ -1,5 +1,7 @@ package com.baeldung.math.multiswarm; +import com.baeldung.algorithms.multiswarm.FitnessFunction; + /** * Specific fitness function implementation to solve the League of Legends * problem. This is the problem statement:
diff --git a/algorithms-miscellaneous-1/src/test/java/com/baeldung/math/multiswarm/MultiswarmUnitTest.java b/algorithms-miscellaneous-1/src/test/java/com/baeldung/math/multiswarm/MultiswarmUnitTest.java index 2c464a9bab..09b3c3d36e 100644 --- a/algorithms-miscellaneous-1/src/test/java/com/baeldung/math/multiswarm/MultiswarmUnitTest.java +++ b/algorithms-miscellaneous-1/src/test/java/com/baeldung/math/multiswarm/MultiswarmUnitTest.java @@ -1,5 +1,6 @@ package com.baeldung.math.multiswarm; +import com.baeldung.algorithms.multiswarm.Multiswarm; import org.junit.Assert; import org.junit.Rule; import org.junit.Test; diff --git a/algorithms-miscellaneous-1/src/test/java/com/baeldung/math/string/EnglishAlphabetLettersUnitTest.java b/algorithms-miscellaneous-1/src/test/java/com/baeldung/math/string/EnglishAlphabetLettersUnitTest.java index c4d6263d2b..090a37bd45 100644 --- a/algorithms-miscellaneous-1/src/test/java/com/baeldung/math/string/EnglishAlphabetLettersUnitTest.java +++ b/algorithms-miscellaneous-1/src/test/java/com/baeldung/math/string/EnglishAlphabetLettersUnitTest.java @@ -1,5 +1,6 @@ package com.baeldung.math.string; +import com.baeldung.algorithms.string.EnglishAlphabetLetters; import org.junit.jupiter.api.Assertions; import org.junit.jupiter.api.Test; diff --git a/algorithms-miscellaneous-1/src/test/java/com/baeldung/math/string/LongestSubstringNonRepeatingCharactersUnitTest.java b/algorithms-miscellaneous-1/src/test/java/com/baeldung/math/string/LongestSubstringNonRepeatingCharactersUnitTest.java index ffce33dd4c..afb3f63d57 100644 --- a/algorithms-miscellaneous-1/src/test/java/com/baeldung/math/string/LongestSubstringNonRepeatingCharactersUnitTest.java +++ b/algorithms-miscellaneous-1/src/test/java/com/baeldung/math/string/LongestSubstringNonRepeatingCharactersUnitTest.java @@ -3,8 +3,8 @@ package com.baeldung.math.string; import org.junit.jupiter.api.Test; import static org.junit.jupiter.api.Assertions.assertEquals; -import static com.baeldung.math.string.LongestSubstringNonRepeatingCharacters.getUniqueCharacterSubstring; -import static com.baeldung.math.string.LongestSubstringNonRepeatingCharacters.getUniqueCharacterSubstringBruteForce; +import static com.baeldung.algorithms.string.LongestSubstringNonRepeatingCharacters.getUniqueCharacterSubstring; +import static com.baeldung.algorithms.string.LongestSubstringNonRepeatingCharacters.getUniqueCharacterSubstringBruteForce; public class LongestSubstringNonRepeatingCharactersUnitTest { diff --git a/algorithms-miscellaneous-1/src/test/java/com/baeldung/math/string/SubstringPalindromeUnitTest.java b/algorithms-miscellaneous-1/src/test/java/com/baeldung/math/string/SubstringPalindromeUnitTest.java index f8767c86f8..f7fad04b0d 100644 --- a/algorithms-miscellaneous-1/src/test/java/com/baeldung/math/string/SubstringPalindromeUnitTest.java +++ b/algorithms-miscellaneous-1/src/test/java/com/baeldung/math/string/SubstringPalindromeUnitTest.java @@ -3,6 +3,8 @@ package com.baeldung.math.string; import static org.junit.Assert.assertEquals; import java.util.HashSet; import java.util.Set; + +import com.baeldung.algorithms.string.SubstringPalindrome; import org.junit.Test; public class SubstringPalindromeUnitTest { diff --git a/algorithms-miscellaneous-1/src/test/java/com/baeldung/math/twopointertechnique/LinkedListFindMiddleUnitTest.java b/algorithms-miscellaneous-1/src/test/java/com/baeldung/math/twopointertechnique/LinkedListFindMiddleUnitTest.java index 54077282c7..ec390a9b36 100644 --- a/algorithms-miscellaneous-1/src/test/java/com/baeldung/math/twopointertechnique/LinkedListFindMiddleUnitTest.java +++ b/algorithms-miscellaneous-1/src/test/java/com/baeldung/math/twopointertechnique/LinkedListFindMiddleUnitTest.java @@ -2,6 +2,8 @@ package com.baeldung.math.twopointertechnique; import static org.assertj.core.api.Assertions.assertThat; +import com.baeldung.algorithms.twopointertechnique.LinkedListFindMiddle; +import com.baeldung.algorithms.twopointertechnique.MyNode; import org.junit.Test; public class LinkedListFindMiddleUnitTest { diff --git a/algorithms-miscellaneous-1/src/test/java/com/baeldung/math/twopointertechnique/RotateArrayUnitTest.java b/algorithms-miscellaneous-1/src/test/java/com/baeldung/math/twopointertechnique/RotateArrayUnitTest.java index 60b86dd213..2cf5b0fcb4 100644 --- a/algorithms-miscellaneous-1/src/test/java/com/baeldung/math/twopointertechnique/RotateArrayUnitTest.java +++ b/algorithms-miscellaneous-1/src/test/java/com/baeldung/math/twopointertechnique/RotateArrayUnitTest.java @@ -2,6 +2,7 @@ package com.baeldung.math.twopointertechnique; import static org.assertj.core.api.Assertions.assertThat; +import com.baeldung.algorithms.twopointertechnique.RotateArray; import org.junit.Test; public class RotateArrayUnitTest { diff --git a/algorithms-miscellaneous-1/src/test/java/com/baeldung/math/twopointertechnique/TwoSumUnitTest.java b/algorithms-miscellaneous-1/src/test/java/com/baeldung/math/twopointertechnique/TwoSumUnitTest.java index 3529e4a1ee..48983b22e8 100644 --- a/algorithms-miscellaneous-1/src/test/java/com/baeldung/math/twopointertechnique/TwoSumUnitTest.java +++ b/algorithms-miscellaneous-1/src/test/java/com/baeldung/math/twopointertechnique/TwoSumUnitTest.java @@ -3,6 +3,7 @@ package com.baeldung.math.twopointertechnique; import static org.junit.Assert.assertFalse; import static org.junit.Assert.assertTrue; +import com.baeldung.algorithms.twopointertechnique.TwoSum; import org.junit.Test; public class TwoSumUnitTest { From 2069c7f4a16b34dd57d0f0f0db3eaf90379c6eb8 Mon Sep 17 00:00:00 2001 From: "anilkivilcim.eray" Date: Thu, 4 Apr 2019 16:10:31 +0300 Subject: [PATCH 3/7] BAEL-2797 wrongly renamed algorithms-2 package fixed --- .../com/baeldung/algorithms/RunAlgorithm.java | 10 +++++----- .../algorithms/ga/annealing/City.java | 2 +- .../ga/annealing/SimulatedAnnealing.java | 2 +- .../algorithms/ga/annealing/Travel.java | 2 +- .../algorithms/ga/ant_colony/Ant.java | 2 +- .../ga/ant_colony/AntColonyOptimization.java | 2 +- .../algorithms/ga/binary/Individual.java | 2 +- .../algorithms/ga/binary/Population.java | 2 +- .../ga/binary/SimpleGeneticAlgorithm.java | 2 +- .../algorithms/ga/jenetics/Knapsack.java | 2 +- .../algorithms/ga/jenetics/KnapsackFF.java | 2 +- .../algorithms/ga/jenetics/KnapsackItem.java | 2 +- .../ga/jenetics/SimpleGeneticAlgorithm.java | 2 +- .../ga/jenetics/SpringsteenProblem.java | 2 +- .../ga/jenetics/SpringsteenRecord.java | 2 +- .../algorithms/ga/jenetics/SubsetSum.java | 2 +- .../ga/jenetics/TravelingSalesman.java | 2 +- ...ColonyOptimizationLongRunningUnitTest.java | 4 ++-- ...ryGeneticAlgorithmLongRunningUnitTest.java | 4 ++-- ...SimulatedAnnealingLongRunningUnitTest.java | 4 ++-- .../com/baeldung/algorithms/RunAlgorithm.java | 4 ++-- .../conversion/HexStringConverter.java | 2 +- .../editdistance/EditDistanceBase.java | 2 +- .../EditDistanceDynamicProgramming.java | 2 +- .../editdistance/EditDistanceRecursive.java | 2 +- .../algorithms/ga/dijkstra/Dijkstra.java | 2 +- .../algorithms/ga/dijkstra/Graph.java | 2 +- .../baeldung/algorithms/ga/dijkstra/Node.java | 2 +- .../linkedlist/CycleDetectionBruteForce.java | 2 +- .../CycleDetectionByFastAndSlowIterators.java | 2 +- .../linkedlist/CycleDetectionByHashing.java | 2 +- .../linkedlist/CycleDetectionResult.java | 2 +- .../linkedlist/CycleRemovalBruteForce.java | 2 +- .../CycleRemovalByCountingLoopNodes.java | 2 +- .../CycleRemovalWithoutCountingLoopNodes.java | 2 +- .../baeldung/algorithms/linkedlist/Node.java | 2 +- .../algorithms/maze/solver/BFSMazeSolver.java | 2 +- .../algorithms/maze/solver/Coordinate.java | 2 +- .../algorithms/maze/solver/DFSMazeSolver.java | 2 +- .../baeldung/algorithms/maze/solver/Maze.java | 2 +- .../algorithms/maze/solver/MazeDriver.java | 2 +- .../NumberWordConverter.java | 2 +- .../relativelyprime/RelativelyPrime.java | 2 +- .../algorithms/reversingtree/TreeNode.java | 2 +- .../reversingtree/TreeReverser.java | 2 +- .../romannumerals/RomanArabicConverter.java | 2 +- .../romannumerals/RomanNumeral.java | 2 +- .../algorithms/slope_one/InputData.java | 2 +- .../baeldung/algorithms/slope_one/Item.java | 2 +- .../algorithms/slope_one/SlopeOne.java | 2 +- .../baeldung/algorithms/slope_one/User.java | 2 +- .../sudoku/BacktrackingAlgorithm.java | 2 +- .../algorithms/sudoku/ColumnNode.java | 2 +- .../algorithms/sudoku/DancingLinks.java | 2 +- .../sudoku/DancingLinksAlgorithm.java | 2 +- .../algorithms/sudoku/DancingNode.java | 2 +- .../DijkstraAlgorithmLongRunningUnitTest.java | 8 ++++---- .../analysis/AnalysisRunnerLiveTest.java | 2 +- .../ByteArrayConverterUnitTest.java | 4 +--- .../EditDistanceDataProvider.java | 2 +- .../editdistance/EditDistanceUnitTest.java | 2 +- .../CycleDetectionBruteForceUnitTest.java | 2 +- ...tectionByFastAndSlowIteratorsUnitTest.java | 2 +- .../CycleDetectionByHashingUnitTest.java | 2 +- .../linkedlist/CycleDetectionTestBase.java | 2 +- .../CycleRemovalBruteForceUnitTest.java | 2 +- ...cleRemovalByCountingLoopNodesUnitTest.java | 2 +- ...movalWithoutCountingLoopNodesUnitTest.java | 2 +- .../NumberWordConverterUnitTest.java | 4 ++-- .../RelativelyPrimeUnitTest.java | 4 ++-- .../reversingtree/TreeReverserUnitTest.java | 2 +- .../RomanArabicConverterUnitTest.java | 2 +- .../src/test/resources/graph.png | Bin 9637 -> 10403 bytes 73 files changed, 85 insertions(+), 87 deletions(-) diff --git a/algorithms-genetic/src/main/java/com/baeldung/algorithms/RunAlgorithm.java b/algorithms-genetic/src/main/java/com/baeldung/algorithms/RunAlgorithm.java index 49a1b7e50d..133c58ce61 100644 --- a/algorithms-genetic/src/main/java/com/baeldung/algorithms/RunAlgorithm.java +++ b/algorithms-genetic/src/main/java/com/baeldung/algorithms/RunAlgorithm.java @@ -1,11 +1,11 @@ -package com.baeldung.math; +package com.baeldung.algorithms; + +import com.baeldung.algorithms.ga.annealing.SimulatedAnnealing; +import com.baeldung.algorithms.ga.ant_colony.AntColonyOptimization; +import com.baeldung.algorithms.ga.binary.SimpleGeneticAlgorithm; import java.util.Scanner; -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 { public static void main(String[] args) throws InstantiationException, IllegalAccessException { diff --git a/algorithms-genetic/src/main/java/com/baeldung/algorithms/ga/annealing/City.java b/algorithms-genetic/src/main/java/com/baeldung/algorithms/ga/annealing/City.java index 3713012270..cb5647f4d2 100644 --- a/algorithms-genetic/src/main/java/com/baeldung/algorithms/ga/annealing/City.java +++ b/algorithms-genetic/src/main/java/com/baeldung/algorithms/ga/annealing/City.java @@ -1,4 +1,4 @@ -package com.baeldung.math.ga.annealing; +package com.baeldung.algorithms.ga.annealing; import lombok.Data; diff --git a/algorithms-genetic/src/main/java/com/baeldung/algorithms/ga/annealing/SimulatedAnnealing.java b/algorithms-genetic/src/main/java/com/baeldung/algorithms/ga/annealing/SimulatedAnnealing.java index e59aa290c2..bff64fc239 100644 --- a/algorithms-genetic/src/main/java/com/baeldung/algorithms/ga/annealing/SimulatedAnnealing.java +++ b/algorithms-genetic/src/main/java/com/baeldung/algorithms/ga/annealing/SimulatedAnnealing.java @@ -1,4 +1,4 @@ -package com.baeldung.math.ga.annealing; +package com.baeldung.algorithms.ga.annealing; public class SimulatedAnnealing { diff --git a/algorithms-genetic/src/main/java/com/baeldung/algorithms/ga/annealing/Travel.java b/algorithms-genetic/src/main/java/com/baeldung/algorithms/ga/annealing/Travel.java index 5f57e31591..3139b49586 100644 --- a/algorithms-genetic/src/main/java/com/baeldung/algorithms/ga/annealing/Travel.java +++ b/algorithms-genetic/src/main/java/com/baeldung/algorithms/ga/annealing/Travel.java @@ -1,4 +1,4 @@ -package com.baeldung.math.ga.annealing; +package com.baeldung.algorithms.ga.annealing; import java.util.ArrayList; import java.util.Collections; diff --git a/algorithms-genetic/src/main/java/com/baeldung/algorithms/ga/ant_colony/Ant.java b/algorithms-genetic/src/main/java/com/baeldung/algorithms/ga/ant_colony/Ant.java index bb7ece4f5b..4ea23b799f 100644 --- a/algorithms-genetic/src/main/java/com/baeldung/algorithms/ga/ant_colony/Ant.java +++ b/algorithms-genetic/src/main/java/com/baeldung/algorithms/ga/ant_colony/Ant.java @@ -1,4 +1,4 @@ -package com.baeldung.math.ga.ant_colony; +package com.baeldung.algorithms.ga.ant_colony; public class Ant { diff --git a/algorithms-genetic/src/main/java/com/baeldung/algorithms/ga/ant_colony/AntColonyOptimization.java b/algorithms-genetic/src/main/java/com/baeldung/algorithms/ga/ant_colony/AntColonyOptimization.java index 5bdf896946..62e124d3f3 100644 --- a/algorithms-genetic/src/main/java/com/baeldung/algorithms/ga/ant_colony/AntColonyOptimization.java +++ b/algorithms-genetic/src/main/java/com/baeldung/algorithms/ga/ant_colony/AntColonyOptimization.java @@ -1,4 +1,4 @@ -package com.baeldung.math.ga.ant_colony; +package com.baeldung.algorithms.ga.ant_colony; import java.util.ArrayList; import java.util.Arrays; diff --git a/algorithms-genetic/src/main/java/com/baeldung/algorithms/ga/binary/Individual.java b/algorithms-genetic/src/main/java/com/baeldung/algorithms/ga/binary/Individual.java index 31944ae192..2a740777f3 100644 --- a/algorithms-genetic/src/main/java/com/baeldung/algorithms/ga/binary/Individual.java +++ b/algorithms-genetic/src/main/java/com/baeldung/algorithms/ga/binary/Individual.java @@ -1,4 +1,4 @@ -package com.baeldung.math.ga.binary; +package com.baeldung.algorithms.ga.binary; import lombok.Data; diff --git a/algorithms-genetic/src/main/java/com/baeldung/algorithms/ga/binary/Population.java b/algorithms-genetic/src/main/java/com/baeldung/algorithms/ga/binary/Population.java index f62c6af97c..47677d7d88 100644 --- a/algorithms-genetic/src/main/java/com/baeldung/algorithms/ga/binary/Population.java +++ b/algorithms-genetic/src/main/java/com/baeldung/algorithms/ga/binary/Population.java @@ -1,4 +1,4 @@ -package com.baeldung.math.ga.binary; +package com.baeldung.algorithms.ga.binary; import java.util.ArrayList; import java.util.List; diff --git a/algorithms-genetic/src/main/java/com/baeldung/algorithms/ga/binary/SimpleGeneticAlgorithm.java b/algorithms-genetic/src/main/java/com/baeldung/algorithms/ga/binary/SimpleGeneticAlgorithm.java index 63067285e7..e62eab0d57 100644 --- a/algorithms-genetic/src/main/java/com/baeldung/algorithms/ga/binary/SimpleGeneticAlgorithm.java +++ b/algorithms-genetic/src/main/java/com/baeldung/algorithms/ga/binary/SimpleGeneticAlgorithm.java @@ -1,4 +1,4 @@ -package com.baeldung.math.ga.binary; +package com.baeldung.algorithms.ga.binary; import lombok.Data; diff --git a/algorithms-genetic/src/main/java/com/baeldung/algorithms/ga/jenetics/Knapsack.java b/algorithms-genetic/src/main/java/com/baeldung/algorithms/ga/jenetics/Knapsack.java index 39b8dcbf06..cc99ccf204 100644 --- a/algorithms-genetic/src/main/java/com/baeldung/algorithms/ga/jenetics/Knapsack.java +++ b/algorithms-genetic/src/main/java/com/baeldung/algorithms/ga/jenetics/Knapsack.java @@ -1,4 +1,4 @@ -package com.baeldung.math.ga.jenetics; +package com.baeldung.algorithms.ga.jenetics; import static org.jenetics.engine.EvolutionResult.toBestPhenotype; import static org.jenetics.engine.limit.bySteadyFitness; diff --git a/algorithms-genetic/src/main/java/com/baeldung/algorithms/ga/jenetics/KnapsackFF.java b/algorithms-genetic/src/main/java/com/baeldung/algorithms/ga/jenetics/KnapsackFF.java index 86cfbbe366..e3e06d301a 100644 --- a/algorithms-genetic/src/main/java/com/baeldung/algorithms/ga/jenetics/KnapsackFF.java +++ b/algorithms-genetic/src/main/java/com/baeldung/algorithms/ga/jenetics/KnapsackFF.java @@ -1,4 +1,4 @@ -package com.baeldung.math.ga.jenetics; +package com.baeldung.algorithms.ga.jenetics; import java.util.function.Function; diff --git a/algorithms-genetic/src/main/java/com/baeldung/algorithms/ga/jenetics/KnapsackItem.java b/algorithms-genetic/src/main/java/com/baeldung/algorithms/ga/jenetics/KnapsackItem.java index 19c80d1c03..876df0ba25 100644 --- a/algorithms-genetic/src/main/java/com/baeldung/algorithms/ga/jenetics/KnapsackItem.java +++ b/algorithms-genetic/src/main/java/com/baeldung/algorithms/ga/jenetics/KnapsackItem.java @@ -1,4 +1,4 @@ -package com.baeldung.math.ga.jenetics; +package com.baeldung.algorithms.ga.jenetics; import java.util.Random; import java.util.stream.Collector; diff --git a/algorithms-genetic/src/main/java/com/baeldung/algorithms/ga/jenetics/SimpleGeneticAlgorithm.java b/algorithms-genetic/src/main/java/com/baeldung/algorithms/ga/jenetics/SimpleGeneticAlgorithm.java index 3becac2e0f..845e11b349 100644 --- a/algorithms-genetic/src/main/java/com/baeldung/algorithms/ga/jenetics/SimpleGeneticAlgorithm.java +++ b/algorithms-genetic/src/main/java/com/baeldung/algorithms/ga/jenetics/SimpleGeneticAlgorithm.java @@ -1,4 +1,4 @@ -package com.baeldung.math.ga.jenetics; +package com.baeldung.algorithms.ga.jenetics; import org.jenetics.BitChromosome; import org.jenetics.BitGene; diff --git a/algorithms-genetic/src/main/java/com/baeldung/algorithms/ga/jenetics/SpringsteenProblem.java b/algorithms-genetic/src/main/java/com/baeldung/algorithms/ga/jenetics/SpringsteenProblem.java index c9f5e1660d..55f2f7af0a 100644 --- a/algorithms-genetic/src/main/java/com/baeldung/algorithms/ga/jenetics/SpringsteenProblem.java +++ b/algorithms-genetic/src/main/java/com/baeldung/algorithms/ga/jenetics/SpringsteenProblem.java @@ -1,4 +1,4 @@ -package com.baeldung.math.ga.jenetics; +package com.baeldung.algorithms.ga.jenetics; import static java.util.Objects.requireNonNull; diff --git a/algorithms-genetic/src/main/java/com/baeldung/algorithms/ga/jenetics/SpringsteenRecord.java b/algorithms-genetic/src/main/java/com/baeldung/algorithms/ga/jenetics/SpringsteenRecord.java index 7b1b80f8de..b49709e7f5 100644 --- a/algorithms-genetic/src/main/java/com/baeldung/algorithms/ga/jenetics/SpringsteenRecord.java +++ b/algorithms-genetic/src/main/java/com/baeldung/algorithms/ga/jenetics/SpringsteenRecord.java @@ -1,4 +1,4 @@ -package com.baeldung.math.ga.jenetics; +package com.baeldung.algorithms.ga.jenetics; import static java.util.Objects.requireNonNull; diff --git a/algorithms-genetic/src/main/java/com/baeldung/algorithms/ga/jenetics/SubsetSum.java b/algorithms-genetic/src/main/java/com/baeldung/algorithms/ga/jenetics/SubsetSum.java index 89bb4b2c4a..db1e11239f 100644 --- a/algorithms-genetic/src/main/java/com/baeldung/algorithms/ga/jenetics/SubsetSum.java +++ b/algorithms-genetic/src/main/java/com/baeldung/algorithms/ga/jenetics/SubsetSum.java @@ -1,4 +1,4 @@ -package com.baeldung.math.ga.jenetics; +package com.baeldung.algorithms.ga.jenetics; import static java.util.Objects.requireNonNull; diff --git a/algorithms-genetic/src/main/java/com/baeldung/algorithms/ga/jenetics/TravelingSalesman.java b/algorithms-genetic/src/main/java/com/baeldung/algorithms/ga/jenetics/TravelingSalesman.java index 7fdce89b48..80ede0f8c5 100644 --- a/algorithms-genetic/src/main/java/com/baeldung/algorithms/ga/jenetics/TravelingSalesman.java +++ b/algorithms-genetic/src/main/java/com/baeldung/algorithms/ga/jenetics/TravelingSalesman.java @@ -1,4 +1,4 @@ -package com.baeldung.math.ga.jenetics; +package com.baeldung.algorithms.ga.jenetics; import static java.lang.Math.PI; import static java.lang.Math.abs; diff --git a/algorithms-genetic/src/test/java/com/baeldung/algorithms/AntColonyOptimizationLongRunningUnitTest.java b/algorithms-genetic/src/test/java/com/baeldung/algorithms/AntColonyOptimizationLongRunningUnitTest.java index 2a427591fc..24f6d04496 100644 --- a/algorithms-genetic/src/test/java/com/baeldung/algorithms/AntColonyOptimizationLongRunningUnitTest.java +++ b/algorithms-genetic/src/test/java/com/baeldung/algorithms/AntColonyOptimizationLongRunningUnitTest.java @@ -1,9 +1,9 @@ -package com.baeldung.math; +package com.baeldung.algorithms; +import com.baeldung.algorithms.ga.ant_colony.AntColonyOptimization; import org.junit.Assert; import org.junit.Test; -import com.baeldung.math.ga.ant_colony.AntColonyOptimization; public class AntColonyOptimizationLongRunningUnitTest { diff --git a/algorithms-genetic/src/test/java/com/baeldung/algorithms/BinaryGeneticAlgorithmLongRunningUnitTest.java b/algorithms-genetic/src/test/java/com/baeldung/algorithms/BinaryGeneticAlgorithmLongRunningUnitTest.java index db21d801e5..57a3e33e4f 100644 --- a/algorithms-genetic/src/test/java/com/baeldung/algorithms/BinaryGeneticAlgorithmLongRunningUnitTest.java +++ b/algorithms-genetic/src/test/java/com/baeldung/algorithms/BinaryGeneticAlgorithmLongRunningUnitTest.java @@ -1,9 +1,9 @@ -package com.baeldung.math; +package com.baeldung.algorithms; +import com.baeldung.algorithms.ga.binary.SimpleGeneticAlgorithm; import org.junit.Assert; import org.junit.Test; -import com.baeldung.math.ga.binary.SimpleGeneticAlgorithm; public class BinaryGeneticAlgorithmLongRunningUnitTest { diff --git a/algorithms-genetic/src/test/java/com/baeldung/algorithms/SimulatedAnnealingLongRunningUnitTest.java b/algorithms-genetic/src/test/java/com/baeldung/algorithms/SimulatedAnnealingLongRunningUnitTest.java index c14b57b71f..c5f7e154e2 100644 --- a/algorithms-genetic/src/test/java/com/baeldung/algorithms/SimulatedAnnealingLongRunningUnitTest.java +++ b/algorithms-genetic/src/test/java/com/baeldung/algorithms/SimulatedAnnealingLongRunningUnitTest.java @@ -1,9 +1,9 @@ -package com.baeldung.math; +package com.baeldung.algorithms; +import com.baeldung.algorithms.ga.annealing.SimulatedAnnealing; import org.junit.Assert; import org.junit.Test; -import com.baeldung.math.ga.annealing.SimulatedAnnealing; public class SimulatedAnnealingLongRunningUnitTest { diff --git a/algorithms-miscellaneous-2/src/main/java/com/baeldung/algorithms/RunAlgorithm.java b/algorithms-miscellaneous-2/src/main/java/com/baeldung/algorithms/RunAlgorithm.java index fbf55f53a1..a1a096bc30 100644 --- a/algorithms-miscellaneous-2/src/main/java/com/baeldung/algorithms/RunAlgorithm.java +++ b/algorithms-miscellaneous-2/src/main/java/com/baeldung/algorithms/RunAlgorithm.java @@ -1,8 +1,8 @@ -package com.baeldung.math; +package com.baeldung.algorithms; import java.util.Scanner; -import com.baeldung.math.slope_one.SlopeOne; +import com.baeldung.algorithms.slope_one.SlopeOne; public class RunAlgorithm { diff --git a/algorithms-miscellaneous-2/src/main/java/com/baeldung/algorithms/conversion/HexStringConverter.java b/algorithms-miscellaneous-2/src/main/java/com/baeldung/algorithms/conversion/HexStringConverter.java index 149191895f..d3e251d3fd 100644 --- a/algorithms-miscellaneous-2/src/main/java/com/baeldung/algorithms/conversion/HexStringConverter.java +++ b/algorithms-miscellaneous-2/src/main/java/com/baeldung/algorithms/conversion/HexStringConverter.java @@ -1,4 +1,4 @@ -package com.baeldung.math.conversion; +package com.baeldung.algorithms.conversion; import java.math.BigInteger; diff --git a/algorithms-miscellaneous-2/src/main/java/com/baeldung/algorithms/editdistance/EditDistanceBase.java b/algorithms-miscellaneous-2/src/main/java/com/baeldung/algorithms/editdistance/EditDistanceBase.java index be0bc670a1..4df1de9994 100644 --- a/algorithms-miscellaneous-2/src/main/java/com/baeldung/algorithms/editdistance/EditDistanceBase.java +++ b/algorithms-miscellaneous-2/src/main/java/com/baeldung/algorithms/editdistance/EditDistanceBase.java @@ -1,4 +1,4 @@ -package com.baeldung.math.editdistance; +package com.baeldung.algorithms.editdistance; import java.util.Arrays; diff --git a/algorithms-miscellaneous-2/src/main/java/com/baeldung/algorithms/editdistance/EditDistanceDynamicProgramming.java b/algorithms-miscellaneous-2/src/main/java/com/baeldung/algorithms/editdistance/EditDistanceDynamicProgramming.java index 45d7302148..10ce43bf5f 100644 --- a/algorithms-miscellaneous-2/src/main/java/com/baeldung/algorithms/editdistance/EditDistanceDynamicProgramming.java +++ b/algorithms-miscellaneous-2/src/main/java/com/baeldung/algorithms/editdistance/EditDistanceDynamicProgramming.java @@ -1,4 +1,4 @@ -package com.baeldung.math.editdistance; +package com.baeldung.algorithms.editdistance; public class EditDistanceDynamicProgramming extends EditDistanceBase { diff --git a/algorithms-miscellaneous-2/src/main/java/com/baeldung/algorithms/editdistance/EditDistanceRecursive.java b/algorithms-miscellaneous-2/src/main/java/com/baeldung/algorithms/editdistance/EditDistanceRecursive.java index ca26a84262..fc907c45f8 100644 --- a/algorithms-miscellaneous-2/src/main/java/com/baeldung/algorithms/editdistance/EditDistanceRecursive.java +++ b/algorithms-miscellaneous-2/src/main/java/com/baeldung/algorithms/editdistance/EditDistanceRecursive.java @@ -1,4 +1,4 @@ -package com.baeldung.math.editdistance; +package com.baeldung.algorithms.editdistance; public class EditDistanceRecursive extends EditDistanceBase { diff --git a/algorithms-miscellaneous-2/src/main/java/com/baeldung/algorithms/ga/dijkstra/Dijkstra.java b/algorithms-miscellaneous-2/src/main/java/com/baeldung/algorithms/ga/dijkstra/Dijkstra.java index ed357bb275..0b01e9b48b 100644 --- a/algorithms-miscellaneous-2/src/main/java/com/baeldung/algorithms/ga/dijkstra/Dijkstra.java +++ b/algorithms-miscellaneous-2/src/main/java/com/baeldung/algorithms/ga/dijkstra/Dijkstra.java @@ -1,4 +1,4 @@ -package com.baeldung.math.ga.dijkstra; +package com.baeldung.algorithms.ga.dijkstra; import java.util.HashSet; import java.util.LinkedList; diff --git a/algorithms-miscellaneous-2/src/main/java/com/baeldung/algorithms/ga/dijkstra/Graph.java b/algorithms-miscellaneous-2/src/main/java/com/baeldung/algorithms/ga/dijkstra/Graph.java index c61d580f72..76694ed76e 100644 --- a/algorithms-miscellaneous-2/src/main/java/com/baeldung/algorithms/ga/dijkstra/Graph.java +++ b/algorithms-miscellaneous-2/src/main/java/com/baeldung/algorithms/ga/dijkstra/Graph.java @@ -1,4 +1,4 @@ -package com.baeldung.math.ga.dijkstra; +package com.baeldung.algorithms.ga.dijkstra; import java.util.HashSet; import java.util.Set; diff --git a/algorithms-miscellaneous-2/src/main/java/com/baeldung/algorithms/ga/dijkstra/Node.java b/algorithms-miscellaneous-2/src/main/java/com/baeldung/algorithms/ga/dijkstra/Node.java index b2d2b80445..ac34bfadd1 100644 --- a/algorithms-miscellaneous-2/src/main/java/com/baeldung/algorithms/ga/dijkstra/Node.java +++ b/algorithms-miscellaneous-2/src/main/java/com/baeldung/algorithms/ga/dijkstra/Node.java @@ -1,4 +1,4 @@ -package com.baeldung.math.ga.dijkstra; +package com.baeldung.algorithms.ga.dijkstra; import java.util.HashMap; import java.util.LinkedList; diff --git a/algorithms-miscellaneous-2/src/main/java/com/baeldung/algorithms/linkedlist/CycleDetectionBruteForce.java b/algorithms-miscellaneous-2/src/main/java/com/baeldung/algorithms/linkedlist/CycleDetectionBruteForce.java index d578cbea26..907bd9042d 100644 --- a/algorithms-miscellaneous-2/src/main/java/com/baeldung/algorithms/linkedlist/CycleDetectionBruteForce.java +++ b/algorithms-miscellaneous-2/src/main/java/com/baeldung/algorithms/linkedlist/CycleDetectionBruteForce.java @@ -1,4 +1,4 @@ -package com.baeldung.math.linkedlist; +package com.baeldung.algorithms.linkedlist; public class CycleDetectionBruteForce { diff --git a/algorithms-miscellaneous-2/src/main/java/com/baeldung/algorithms/linkedlist/CycleDetectionByFastAndSlowIterators.java b/algorithms-miscellaneous-2/src/main/java/com/baeldung/algorithms/linkedlist/CycleDetectionByFastAndSlowIterators.java index 84ebb1ab01..2817f6f783 100644 --- a/algorithms-miscellaneous-2/src/main/java/com/baeldung/algorithms/linkedlist/CycleDetectionByFastAndSlowIterators.java +++ b/algorithms-miscellaneous-2/src/main/java/com/baeldung/algorithms/linkedlist/CycleDetectionByFastAndSlowIterators.java @@ -1,4 +1,4 @@ -package com.baeldung.math.linkedlist; +package com.baeldung.algorithms.linkedlist; public class CycleDetectionByFastAndSlowIterators { diff --git a/algorithms-miscellaneous-2/src/main/java/com/baeldung/algorithms/linkedlist/CycleDetectionByHashing.java b/algorithms-miscellaneous-2/src/main/java/com/baeldung/algorithms/linkedlist/CycleDetectionByHashing.java index 23b322b50a..fba4cad2e6 100644 --- a/algorithms-miscellaneous-2/src/main/java/com/baeldung/algorithms/linkedlist/CycleDetectionByHashing.java +++ b/algorithms-miscellaneous-2/src/main/java/com/baeldung/algorithms/linkedlist/CycleDetectionByHashing.java @@ -1,4 +1,4 @@ -package com.baeldung.math.linkedlist; +package com.baeldung.algorithms.linkedlist; import java.util.HashSet; import java.util.Set; diff --git a/algorithms-miscellaneous-2/src/main/java/com/baeldung/algorithms/linkedlist/CycleDetectionResult.java b/algorithms-miscellaneous-2/src/main/java/com/baeldung/algorithms/linkedlist/CycleDetectionResult.java index 8da593564f..4e258ec2ef 100644 --- a/algorithms-miscellaneous-2/src/main/java/com/baeldung/algorithms/linkedlist/CycleDetectionResult.java +++ b/algorithms-miscellaneous-2/src/main/java/com/baeldung/algorithms/linkedlist/CycleDetectionResult.java @@ -1,4 +1,4 @@ -package com.baeldung.math.linkedlist; +package com.baeldung.algorithms.linkedlist; public class CycleDetectionResult { boolean cycleExists; diff --git a/algorithms-miscellaneous-2/src/main/java/com/baeldung/algorithms/linkedlist/CycleRemovalBruteForce.java b/algorithms-miscellaneous-2/src/main/java/com/baeldung/algorithms/linkedlist/CycleRemovalBruteForce.java index 450c8b8b49..216ebcdde3 100644 --- a/algorithms-miscellaneous-2/src/main/java/com/baeldung/algorithms/linkedlist/CycleRemovalBruteForce.java +++ b/algorithms-miscellaneous-2/src/main/java/com/baeldung/algorithms/linkedlist/CycleRemovalBruteForce.java @@ -1,4 +1,4 @@ -package com.baeldung.math.linkedlist; +package com.baeldung.algorithms.linkedlist; public class CycleRemovalBruteForce { diff --git a/algorithms-miscellaneous-2/src/main/java/com/baeldung/algorithms/linkedlist/CycleRemovalByCountingLoopNodes.java b/algorithms-miscellaneous-2/src/main/java/com/baeldung/algorithms/linkedlist/CycleRemovalByCountingLoopNodes.java index 9767089f2b..f961feb97d 100644 --- a/algorithms-miscellaneous-2/src/main/java/com/baeldung/algorithms/linkedlist/CycleRemovalByCountingLoopNodes.java +++ b/algorithms-miscellaneous-2/src/main/java/com/baeldung/algorithms/linkedlist/CycleRemovalByCountingLoopNodes.java @@ -1,4 +1,4 @@ -package com.baeldung.math.linkedlist; +package com.baeldung.algorithms.linkedlist; public class CycleRemovalByCountingLoopNodes { diff --git a/algorithms-miscellaneous-2/src/main/java/com/baeldung/algorithms/linkedlist/CycleRemovalWithoutCountingLoopNodes.java b/algorithms-miscellaneous-2/src/main/java/com/baeldung/algorithms/linkedlist/CycleRemovalWithoutCountingLoopNodes.java index 7232bc7984..1e41c832db 100644 --- a/algorithms-miscellaneous-2/src/main/java/com/baeldung/algorithms/linkedlist/CycleRemovalWithoutCountingLoopNodes.java +++ b/algorithms-miscellaneous-2/src/main/java/com/baeldung/algorithms/linkedlist/CycleRemovalWithoutCountingLoopNodes.java @@ -1,4 +1,4 @@ -package com.baeldung.math.linkedlist; +package com.baeldung.algorithms.linkedlist; public class CycleRemovalWithoutCountingLoopNodes { diff --git a/algorithms-miscellaneous-2/src/main/java/com/baeldung/algorithms/linkedlist/Node.java b/algorithms-miscellaneous-2/src/main/java/com/baeldung/algorithms/linkedlist/Node.java index 4699853d8e..9573bcd981 100644 --- a/algorithms-miscellaneous-2/src/main/java/com/baeldung/algorithms/linkedlist/Node.java +++ b/algorithms-miscellaneous-2/src/main/java/com/baeldung/algorithms/linkedlist/Node.java @@ -1,4 +1,4 @@ -package com.baeldung.math.linkedlist; +package com.baeldung.algorithms.linkedlist; public class Node { T data; diff --git a/algorithms-miscellaneous-2/src/main/java/com/baeldung/algorithms/maze/solver/BFSMazeSolver.java b/algorithms-miscellaneous-2/src/main/java/com/baeldung/algorithms/maze/solver/BFSMazeSolver.java index ff8ed4d96e..0e3101925c 100644 --- a/algorithms-miscellaneous-2/src/main/java/com/baeldung/algorithms/maze/solver/BFSMazeSolver.java +++ b/algorithms-miscellaneous-2/src/main/java/com/baeldung/algorithms/maze/solver/BFSMazeSolver.java @@ -1,4 +1,4 @@ -package com.baeldung.math.maze.solver; +package com.baeldung.algorithms.maze.solver; import java.util.ArrayList; import java.util.Collections; diff --git a/algorithms-miscellaneous-2/src/main/java/com/baeldung/algorithms/maze/solver/Coordinate.java b/algorithms-miscellaneous-2/src/main/java/com/baeldung/algorithms/maze/solver/Coordinate.java index 418e370d71..8202c89076 100644 --- a/algorithms-miscellaneous-2/src/main/java/com/baeldung/algorithms/maze/solver/Coordinate.java +++ b/algorithms-miscellaneous-2/src/main/java/com/baeldung/algorithms/maze/solver/Coordinate.java @@ -1,4 +1,4 @@ -package com.baeldung.math.maze.solver; +package com.baeldung.algorithms.maze.solver; public class Coordinate { int x; diff --git a/algorithms-miscellaneous-2/src/main/java/com/baeldung/algorithms/maze/solver/DFSMazeSolver.java b/algorithms-miscellaneous-2/src/main/java/com/baeldung/algorithms/maze/solver/DFSMazeSolver.java index bbdd53d16b..ee821631db 100644 --- a/algorithms-miscellaneous-2/src/main/java/com/baeldung/algorithms/maze/solver/DFSMazeSolver.java +++ b/algorithms-miscellaneous-2/src/main/java/com/baeldung/algorithms/maze/solver/DFSMazeSolver.java @@ -1,4 +1,4 @@ -package com.baeldung.math.maze.solver; +package com.baeldung.algorithms.maze.solver; import java.util.ArrayList; import java.util.Collections; diff --git a/algorithms-miscellaneous-2/src/main/java/com/baeldung/algorithms/maze/solver/Maze.java b/algorithms-miscellaneous-2/src/main/java/com/baeldung/algorithms/maze/solver/Maze.java index 741b81ac48..d0a0ed65d9 100644 --- a/algorithms-miscellaneous-2/src/main/java/com/baeldung/algorithms/maze/solver/Maze.java +++ b/algorithms-miscellaneous-2/src/main/java/com/baeldung/algorithms/maze/solver/Maze.java @@ -1,4 +1,4 @@ -package com.baeldung.math.maze.solver; +package com.baeldung.algorithms.maze.solver; import java.io.File; import java.io.FileNotFoundException; diff --git a/algorithms-miscellaneous-2/src/main/java/com/baeldung/algorithms/maze/solver/MazeDriver.java b/algorithms-miscellaneous-2/src/main/java/com/baeldung/algorithms/maze/solver/MazeDriver.java index 767513ce62..a47c3c8581 100644 --- a/algorithms-miscellaneous-2/src/main/java/com/baeldung/algorithms/maze/solver/MazeDriver.java +++ b/algorithms-miscellaneous-2/src/main/java/com/baeldung/algorithms/maze/solver/MazeDriver.java @@ -1,4 +1,4 @@ -package com.baeldung.math.maze.solver; +package com.baeldung.algorithms.maze.solver; import java.io.File; import java.util.List; diff --git a/algorithms-miscellaneous-2/src/main/java/com/baeldung/algorithms/numberwordconverter/NumberWordConverter.java b/algorithms-miscellaneous-2/src/main/java/com/baeldung/algorithms/numberwordconverter/NumberWordConverter.java index c46d50bf72..0fe2960f96 100644 --- a/algorithms-miscellaneous-2/src/main/java/com/baeldung/algorithms/numberwordconverter/NumberWordConverter.java +++ b/algorithms-miscellaneous-2/src/main/java/com/baeldung/algorithms/numberwordconverter/NumberWordConverter.java @@ -1,4 +1,4 @@ -package com.baeldung.math.numberwordconverter; +package com.baeldung.algorithms.numberwordconverter; import java.math.BigDecimal; diff --git a/algorithms-miscellaneous-2/src/main/java/com/baeldung/algorithms/relativelyprime/RelativelyPrime.java b/algorithms-miscellaneous-2/src/main/java/com/baeldung/algorithms/relativelyprime/RelativelyPrime.java index c3978fcc36..fbea87be30 100644 --- a/algorithms-miscellaneous-2/src/main/java/com/baeldung/algorithms/relativelyprime/RelativelyPrime.java +++ b/algorithms-miscellaneous-2/src/main/java/com/baeldung/algorithms/relativelyprime/RelativelyPrime.java @@ -1,4 +1,4 @@ -package com.baeldung.math.relativelyprime; +package com.baeldung.algorithms.relativelyprime; import java.math.BigInteger; diff --git a/algorithms-miscellaneous-2/src/main/java/com/baeldung/algorithms/reversingtree/TreeNode.java b/algorithms-miscellaneous-2/src/main/java/com/baeldung/algorithms/reversingtree/TreeNode.java index eb8af2648d..7905b752a9 100644 --- a/algorithms-miscellaneous-2/src/main/java/com/baeldung/algorithms/reversingtree/TreeNode.java +++ b/algorithms-miscellaneous-2/src/main/java/com/baeldung/algorithms/reversingtree/TreeNode.java @@ -1,4 +1,4 @@ -package com.baeldung.math.reversingtree; +package com.baeldung.algorithms.reversingtree; public class TreeNode { diff --git a/algorithms-miscellaneous-2/src/main/java/com/baeldung/algorithms/reversingtree/TreeReverser.java b/algorithms-miscellaneous-2/src/main/java/com/baeldung/algorithms/reversingtree/TreeReverser.java index af56692ac8..6d3a9ddd31 100644 --- a/algorithms-miscellaneous-2/src/main/java/com/baeldung/algorithms/reversingtree/TreeReverser.java +++ b/algorithms-miscellaneous-2/src/main/java/com/baeldung/algorithms/reversingtree/TreeReverser.java @@ -1,4 +1,4 @@ -package com.baeldung.math.reversingtree; +package com.baeldung.algorithms.reversingtree; import java.util.LinkedList; diff --git a/algorithms-miscellaneous-2/src/main/java/com/baeldung/algorithms/romannumerals/RomanArabicConverter.java b/algorithms-miscellaneous-2/src/main/java/com/baeldung/algorithms/romannumerals/RomanArabicConverter.java index 5623dde48f..acd275e609 100644 --- a/algorithms-miscellaneous-2/src/main/java/com/baeldung/algorithms/romannumerals/RomanArabicConverter.java +++ b/algorithms-miscellaneous-2/src/main/java/com/baeldung/algorithms/romannumerals/RomanArabicConverter.java @@ -1,4 +1,4 @@ -package com.baeldung.math.romannumerals; +package com.baeldung.algorithms.romannumerals; import java.util.List; diff --git a/algorithms-miscellaneous-2/src/main/java/com/baeldung/algorithms/romannumerals/RomanNumeral.java b/algorithms-miscellaneous-2/src/main/java/com/baeldung/algorithms/romannumerals/RomanNumeral.java index 66e20ce135..2ee5bb6d75 100644 --- a/algorithms-miscellaneous-2/src/main/java/com/baeldung/algorithms/romannumerals/RomanNumeral.java +++ b/algorithms-miscellaneous-2/src/main/java/com/baeldung/algorithms/romannumerals/RomanNumeral.java @@ -1,4 +1,4 @@ -package com.baeldung.math.romannumerals; +package com.baeldung.algorithms.romannumerals; import java.util.Arrays; import java.util.Comparator; diff --git a/algorithms-miscellaneous-2/src/main/java/com/baeldung/algorithms/slope_one/InputData.java b/algorithms-miscellaneous-2/src/main/java/com/baeldung/algorithms/slope_one/InputData.java index 1257640278..68a0f11b62 100644 --- a/algorithms-miscellaneous-2/src/main/java/com/baeldung/algorithms/slope_one/InputData.java +++ b/algorithms-miscellaneous-2/src/main/java/com/baeldung/algorithms/slope_one/InputData.java @@ -1,4 +1,4 @@ -package com.baeldung.math.slope_one; +package com.baeldung.algorithms.slope_one; import java.util.Arrays; import java.util.HashMap; diff --git a/algorithms-miscellaneous-2/src/main/java/com/baeldung/algorithms/slope_one/Item.java b/algorithms-miscellaneous-2/src/main/java/com/baeldung/algorithms/slope_one/Item.java index 916bbdf1dd..dec1eb9e2c 100644 --- a/algorithms-miscellaneous-2/src/main/java/com/baeldung/algorithms/slope_one/Item.java +++ b/algorithms-miscellaneous-2/src/main/java/com/baeldung/algorithms/slope_one/Item.java @@ -1,4 +1,4 @@ -package com.baeldung.math.slope_one; +package com.baeldung.algorithms.slope_one; import lombok.AllArgsConstructor; import lombok.Data; diff --git a/algorithms-miscellaneous-2/src/main/java/com/baeldung/algorithms/slope_one/SlopeOne.java b/algorithms-miscellaneous-2/src/main/java/com/baeldung/algorithms/slope_one/SlopeOne.java index 8726bc6eec..d5eea279de 100644 --- a/algorithms-miscellaneous-2/src/main/java/com/baeldung/algorithms/slope_one/SlopeOne.java +++ b/algorithms-miscellaneous-2/src/main/java/com/baeldung/algorithms/slope_one/SlopeOne.java @@ -1,4 +1,4 @@ -package com.baeldung.math.slope_one; +package com.baeldung.algorithms.slope_one; import java.text.DecimalFormat; import java.text.NumberFormat; diff --git a/algorithms-miscellaneous-2/src/main/java/com/baeldung/algorithms/slope_one/User.java b/algorithms-miscellaneous-2/src/main/java/com/baeldung/algorithms/slope_one/User.java index 83daacc50b..32bbe84d17 100644 --- a/algorithms-miscellaneous-2/src/main/java/com/baeldung/algorithms/slope_one/User.java +++ b/algorithms-miscellaneous-2/src/main/java/com/baeldung/algorithms/slope_one/User.java @@ -1,4 +1,4 @@ -package com.baeldung.math.slope_one; +package com.baeldung.algorithms.slope_one; import lombok.AllArgsConstructor; import lombok.Data; diff --git a/algorithms-miscellaneous-2/src/main/java/com/baeldung/algorithms/sudoku/BacktrackingAlgorithm.java b/algorithms-miscellaneous-2/src/main/java/com/baeldung/algorithms/sudoku/BacktrackingAlgorithm.java index 7960873583..4b37558aab 100644 --- a/algorithms-miscellaneous-2/src/main/java/com/baeldung/algorithms/sudoku/BacktrackingAlgorithm.java +++ b/algorithms-miscellaneous-2/src/main/java/com/baeldung/algorithms/sudoku/BacktrackingAlgorithm.java @@ -1,4 +1,4 @@ -package com.baeldung.math.sudoku; +package com.baeldung.algorithms.sudoku; import java.util.stream.IntStream; diff --git a/algorithms-miscellaneous-2/src/main/java/com/baeldung/algorithms/sudoku/ColumnNode.java b/algorithms-miscellaneous-2/src/main/java/com/baeldung/algorithms/sudoku/ColumnNode.java index b716ad4e4e..46995ca42f 100644 --- a/algorithms-miscellaneous-2/src/main/java/com/baeldung/algorithms/sudoku/ColumnNode.java +++ b/algorithms-miscellaneous-2/src/main/java/com/baeldung/algorithms/sudoku/ColumnNode.java @@ -1,4 +1,4 @@ -package com.baeldung.math.sudoku; +package com.baeldung.algorithms.sudoku; class ColumnNode extends DancingNode { int size; diff --git a/algorithms-miscellaneous-2/src/main/java/com/baeldung/algorithms/sudoku/DancingLinks.java b/algorithms-miscellaneous-2/src/main/java/com/baeldung/algorithms/sudoku/DancingLinks.java index 7717bb4e49..d3cbb2bd02 100644 --- a/algorithms-miscellaneous-2/src/main/java/com/baeldung/algorithms/sudoku/DancingLinks.java +++ b/algorithms-miscellaneous-2/src/main/java/com/baeldung/algorithms/sudoku/DancingLinks.java @@ -1,4 +1,4 @@ -package com.baeldung.math.sudoku; +package com.baeldung.algorithms.sudoku; import java.util.ArrayList; import java.util.LinkedList; diff --git a/algorithms-miscellaneous-2/src/main/java/com/baeldung/algorithms/sudoku/DancingLinksAlgorithm.java b/algorithms-miscellaneous-2/src/main/java/com/baeldung/algorithms/sudoku/DancingLinksAlgorithm.java index 7bb45a76dc..df02ff3d11 100644 --- a/algorithms-miscellaneous-2/src/main/java/com/baeldung/algorithms/sudoku/DancingLinksAlgorithm.java +++ b/algorithms-miscellaneous-2/src/main/java/com/baeldung/algorithms/sudoku/DancingLinksAlgorithm.java @@ -1,4 +1,4 @@ -package com.baeldung.math.sudoku; +package com.baeldung.algorithms.sudoku; import java.util.Arrays; diff --git a/algorithms-miscellaneous-2/src/main/java/com/baeldung/algorithms/sudoku/DancingNode.java b/algorithms-miscellaneous-2/src/main/java/com/baeldung/algorithms/sudoku/DancingNode.java index 735ac8926e..2422ff0dff 100644 --- a/algorithms-miscellaneous-2/src/main/java/com/baeldung/algorithms/sudoku/DancingNode.java +++ b/algorithms-miscellaneous-2/src/main/java/com/baeldung/algorithms/sudoku/DancingNode.java @@ -1,4 +1,4 @@ -package com.baeldung.math.sudoku; +package com.baeldung.algorithms.sudoku; class DancingNode { DancingNode L, R, U, D; diff --git a/algorithms-miscellaneous-2/src/test/java/com/baeldung/algorithms/DijkstraAlgorithmLongRunningUnitTest.java b/algorithms-miscellaneous-2/src/test/java/com/baeldung/algorithms/DijkstraAlgorithmLongRunningUnitTest.java index 051f85d45b..bbc4d4f398 100644 --- a/algorithms-miscellaneous-2/src/test/java/com/baeldung/algorithms/DijkstraAlgorithmLongRunningUnitTest.java +++ b/algorithms-miscellaneous-2/src/test/java/com/baeldung/algorithms/DijkstraAlgorithmLongRunningUnitTest.java @@ -1,10 +1,10 @@ -package com.baeldung.math; +package com.baeldung.algorithms; import org.junit.Test; -import com.baeldung.math.ga.dijkstra.Dijkstra; -import com.baeldung.math.ga.dijkstra.Graph; -import com.baeldung.math.ga.dijkstra.Node; +import com.baeldung.algorithms.ga.dijkstra.Dijkstra; +import com.baeldung.algorithms.ga.dijkstra.Graph; +import com.baeldung.algorithms.ga.dijkstra.Node; import java.util.Arrays; import java.util.List; diff --git a/algorithms-miscellaneous-2/src/test/java/com/baeldung/algorithms/analysis/AnalysisRunnerLiveTest.java b/algorithms-miscellaneous-2/src/test/java/com/baeldung/algorithms/analysis/AnalysisRunnerLiveTest.java index a1525e1353..1e9188f726 100644 --- a/algorithms-miscellaneous-2/src/test/java/com/baeldung/algorithms/analysis/AnalysisRunnerLiveTest.java +++ b/algorithms-miscellaneous-2/src/test/java/com/baeldung/algorithms/analysis/AnalysisRunnerLiveTest.java @@ -1,4 +1,4 @@ -package com.baeldung.math.analysis; +package com.baeldung.algorithms.analysis; import org.junit.Test; diff --git a/algorithms-miscellaneous-2/src/test/java/com/baeldung/algorithms/conversion/ByteArrayConverterUnitTest.java b/algorithms-miscellaneous-2/src/test/java/com/baeldung/algorithms/conversion/ByteArrayConverterUnitTest.java index aea4c39edd..7bb57ca07f 100644 --- a/algorithms-miscellaneous-2/src/test/java/com/baeldung/algorithms/conversion/ByteArrayConverterUnitTest.java +++ b/algorithms-miscellaneous-2/src/test/java/com/baeldung/algorithms/conversion/ByteArrayConverterUnitTest.java @@ -1,7 +1,6 @@ -package com.baeldung.math.conversion; +package com.baeldung.algorithms.conversion; import static org.junit.Assert.assertArrayEquals; -import static org.junit.Assert.assertEquals; import static org.junit.Assert.assertThat; import org.apache.commons.codec.DecoderException; @@ -9,7 +8,6 @@ import org.hamcrest.text.IsEqualIgnoringCase; import org.junit.Before; import org.junit.Test; -import com.baeldung.math.conversion.HexStringConverter; public class ByteArrayConverterUnitTest { diff --git a/algorithms-miscellaneous-2/src/test/java/com/baeldung/algorithms/editdistance/EditDistanceDataProvider.java b/algorithms-miscellaneous-2/src/test/java/com/baeldung/algorithms/editdistance/EditDistanceDataProvider.java index 52acf7f1a1..d11da61191 100644 --- a/algorithms-miscellaneous-2/src/test/java/com/baeldung/algorithms/editdistance/EditDistanceDataProvider.java +++ b/algorithms-miscellaneous-2/src/test/java/com/baeldung/algorithms/editdistance/EditDistanceDataProvider.java @@ -1,4 +1,4 @@ -package com.baeldung.math.editdistance; +package com.baeldung.algorithms.editdistance; import org.junit.runners.Parameterized.Parameters; diff --git a/algorithms-miscellaneous-2/src/test/java/com/baeldung/algorithms/editdistance/EditDistanceUnitTest.java b/algorithms-miscellaneous-2/src/test/java/com/baeldung/algorithms/editdistance/EditDistanceUnitTest.java index 2fa77ddfb7..3dd63e86ab 100644 --- a/algorithms-miscellaneous-2/src/test/java/com/baeldung/algorithms/editdistance/EditDistanceUnitTest.java +++ b/algorithms-miscellaneous-2/src/test/java/com/baeldung/algorithms/editdistance/EditDistanceUnitTest.java @@ -1,4 +1,4 @@ -package com.baeldung.math.editdistance; +package com.baeldung.algorithms.editdistance; import org.junit.Test; import org.junit.runner.RunWith; diff --git a/algorithms-miscellaneous-2/src/test/java/com/baeldung/algorithms/linkedlist/CycleDetectionBruteForceUnitTest.java b/algorithms-miscellaneous-2/src/test/java/com/baeldung/algorithms/linkedlist/CycleDetectionBruteForceUnitTest.java index a0d619a16a..33889fbec6 100644 --- a/algorithms-miscellaneous-2/src/test/java/com/baeldung/algorithms/linkedlist/CycleDetectionBruteForceUnitTest.java +++ b/algorithms-miscellaneous-2/src/test/java/com/baeldung/algorithms/linkedlist/CycleDetectionBruteForceUnitTest.java @@ -1,4 +1,4 @@ -package com.baeldung.math.linkedlist; +package com.baeldung.algorithms.linkedlist; import org.junit.Assert; import org.junit.Test; diff --git a/algorithms-miscellaneous-2/src/test/java/com/baeldung/algorithms/linkedlist/CycleDetectionByFastAndSlowIteratorsUnitTest.java b/algorithms-miscellaneous-2/src/test/java/com/baeldung/algorithms/linkedlist/CycleDetectionByFastAndSlowIteratorsUnitTest.java index 1332fd5df3..1496840771 100644 --- a/algorithms-miscellaneous-2/src/test/java/com/baeldung/algorithms/linkedlist/CycleDetectionByFastAndSlowIteratorsUnitTest.java +++ b/algorithms-miscellaneous-2/src/test/java/com/baeldung/algorithms/linkedlist/CycleDetectionByFastAndSlowIteratorsUnitTest.java @@ -1,4 +1,4 @@ -package com.baeldung.math.linkedlist; +package com.baeldung.algorithms.linkedlist; import org.junit.Assert; import org.junit.Test; diff --git a/algorithms-miscellaneous-2/src/test/java/com/baeldung/algorithms/linkedlist/CycleDetectionByHashingUnitTest.java b/algorithms-miscellaneous-2/src/test/java/com/baeldung/algorithms/linkedlist/CycleDetectionByHashingUnitTest.java index ed2518dfae..136f55f834 100644 --- a/algorithms-miscellaneous-2/src/test/java/com/baeldung/algorithms/linkedlist/CycleDetectionByHashingUnitTest.java +++ b/algorithms-miscellaneous-2/src/test/java/com/baeldung/algorithms/linkedlist/CycleDetectionByHashingUnitTest.java @@ -1,4 +1,4 @@ -package com.baeldung.math.linkedlist; +package com.baeldung.algorithms.linkedlist; import org.junit.Assert; import org.junit.Test; diff --git a/algorithms-miscellaneous-2/src/test/java/com/baeldung/algorithms/linkedlist/CycleDetectionTestBase.java b/algorithms-miscellaneous-2/src/test/java/com/baeldung/algorithms/linkedlist/CycleDetectionTestBase.java index af8f05ffcc..1c6f56b20d 100644 --- a/algorithms-miscellaneous-2/src/test/java/com/baeldung/algorithms/linkedlist/CycleDetectionTestBase.java +++ b/algorithms-miscellaneous-2/src/test/java/com/baeldung/algorithms/linkedlist/CycleDetectionTestBase.java @@ -1,4 +1,4 @@ -package com.baeldung.math.linkedlist; +package com.baeldung.algorithms.linkedlist; import java.util.Arrays; import java.util.Collection; diff --git a/algorithms-miscellaneous-2/src/test/java/com/baeldung/algorithms/linkedlist/CycleRemovalBruteForceUnitTest.java b/algorithms-miscellaneous-2/src/test/java/com/baeldung/algorithms/linkedlist/CycleRemovalBruteForceUnitTest.java index 28bddca52a..36f08d2b76 100644 --- a/algorithms-miscellaneous-2/src/test/java/com/baeldung/algorithms/linkedlist/CycleRemovalBruteForceUnitTest.java +++ b/algorithms-miscellaneous-2/src/test/java/com/baeldung/algorithms/linkedlist/CycleRemovalBruteForceUnitTest.java @@ -1,4 +1,4 @@ -package com.baeldung.math.linkedlist; +package com.baeldung.algorithms.linkedlist; import org.junit.Assert; import org.junit.Test; diff --git a/algorithms-miscellaneous-2/src/test/java/com/baeldung/algorithms/linkedlist/CycleRemovalByCountingLoopNodesUnitTest.java b/algorithms-miscellaneous-2/src/test/java/com/baeldung/algorithms/linkedlist/CycleRemovalByCountingLoopNodesUnitTest.java index c262e2ee5f..cc7589c53d 100644 --- a/algorithms-miscellaneous-2/src/test/java/com/baeldung/algorithms/linkedlist/CycleRemovalByCountingLoopNodesUnitTest.java +++ b/algorithms-miscellaneous-2/src/test/java/com/baeldung/algorithms/linkedlist/CycleRemovalByCountingLoopNodesUnitTest.java @@ -1,4 +1,4 @@ -package com.baeldung.math.linkedlist; +package com.baeldung.algorithms.linkedlist; import org.junit.Assert; import org.junit.Test; diff --git a/algorithms-miscellaneous-2/src/test/java/com/baeldung/algorithms/linkedlist/CycleRemovalWithoutCountingLoopNodesUnitTest.java b/algorithms-miscellaneous-2/src/test/java/com/baeldung/algorithms/linkedlist/CycleRemovalWithoutCountingLoopNodesUnitTest.java index 448b4df58e..350e63dcc3 100644 --- a/algorithms-miscellaneous-2/src/test/java/com/baeldung/algorithms/linkedlist/CycleRemovalWithoutCountingLoopNodesUnitTest.java +++ b/algorithms-miscellaneous-2/src/test/java/com/baeldung/algorithms/linkedlist/CycleRemovalWithoutCountingLoopNodesUnitTest.java @@ -1,4 +1,4 @@ -package com.baeldung.math.linkedlist; +package com.baeldung.algorithms.linkedlist; import org.junit.Assert; import org.junit.Test; diff --git a/algorithms-miscellaneous-2/src/test/java/com/baeldung/algorithms/moneywords/NumberWordConverterUnitTest.java b/algorithms-miscellaneous-2/src/test/java/com/baeldung/algorithms/moneywords/NumberWordConverterUnitTest.java index 8752fc4633..26643e9c1e 100644 --- a/algorithms-miscellaneous-2/src/test/java/com/baeldung/algorithms/moneywords/NumberWordConverterUnitTest.java +++ b/algorithms-miscellaneous-2/src/test/java/com/baeldung/algorithms/moneywords/NumberWordConverterUnitTest.java @@ -1,10 +1,10 @@ -package com.baeldung.math.moneywords; +package com.baeldung.algorithms.moneywords; import static org.junit.Assert.assertEquals; import org.junit.Test; -import com.baeldung.math.numberwordconverter.NumberWordConverter; +import com.baeldung.algorithms.numberwordconverter.NumberWordConverter; public class NumberWordConverterUnitTest { diff --git a/algorithms-miscellaneous-2/src/test/java/com/baeldung/algorithms/relativelyprime/RelativelyPrimeUnitTest.java b/algorithms-miscellaneous-2/src/test/java/com/baeldung/algorithms/relativelyprime/RelativelyPrimeUnitTest.java index e3b8b6e542..84bb2620af 100644 --- a/algorithms-miscellaneous-2/src/test/java/com/baeldung/algorithms/relativelyprime/RelativelyPrimeUnitTest.java +++ b/algorithms-miscellaneous-2/src/test/java/com/baeldung/algorithms/relativelyprime/RelativelyPrimeUnitTest.java @@ -1,8 +1,8 @@ -package com.baeldung.math.relativelyprime; +package com.baeldung.algorithms.relativelyprime; import org.junit.Test; -import static com.baeldung.math.relativelyprime.RelativelyPrime.*; +import static com.baeldung.algorithms.relativelyprime.RelativelyPrime.*; import static org.assertj.core.api.Assertions.assertThat; public class RelativelyPrimeUnitTest { diff --git a/algorithms-miscellaneous-2/src/test/java/com/baeldung/algorithms/reversingtree/TreeReverserUnitTest.java b/algorithms-miscellaneous-2/src/test/java/com/baeldung/algorithms/reversingtree/TreeReverserUnitTest.java index 9a1cf4ee92..cbc265fae1 100644 --- a/algorithms-miscellaneous-2/src/test/java/com/baeldung/algorithms/reversingtree/TreeReverserUnitTest.java +++ b/algorithms-miscellaneous-2/src/test/java/com/baeldung/algorithms/reversingtree/TreeReverserUnitTest.java @@ -1,4 +1,4 @@ -package com.baeldung.math.reversingtree; +package com.baeldung.algorithms.reversingtree; import static org.junit.jupiter.api.Assertions.assertEquals; diff --git a/algorithms-miscellaneous-2/src/test/java/com/baeldung/algorithms/romannumerals/RomanArabicConverterUnitTest.java b/algorithms-miscellaneous-2/src/test/java/com/baeldung/algorithms/romannumerals/RomanArabicConverterUnitTest.java index dbaada355f..9043cfe9cc 100644 --- a/algorithms-miscellaneous-2/src/test/java/com/baeldung/algorithms/romannumerals/RomanArabicConverterUnitTest.java +++ b/algorithms-miscellaneous-2/src/test/java/com/baeldung/algorithms/romannumerals/RomanArabicConverterUnitTest.java @@ -1,4 +1,4 @@ -package com.baeldung.math.romannumerals; +package com.baeldung.algorithms.romannumerals; import static org.assertj.core.api.Assertions.assertThat; diff --git a/algorithms-miscellaneous-2/src/test/resources/graph.png b/algorithms-miscellaneous-2/src/test/resources/graph.png index 7165a517824fec3ed31dea351d9b37dc4176b875..c4b7531ee913a4e6659728e4cc33419ec67ecb62 100644 GIT binary patch literal 10403 zcmaKSXH*kW*KX)tdJ)8cLAoF!AT1P;P(-9xL3%GLO$-E--U3KbP>|k1I)d~LLIkAu zCLIEVPRJd6-*2t^<9_!?*2>JB*=L_!p0oEeC;a&{7!^4yIS2%zQdLpX27&N`fu8{> zK5(b4wo@7e;&oJ2Qqc98+WGoc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=f3-!IAhrz0>Ge!g;qa`7q6)#BLZIG~Q*c)bYxlC zt%xE8-iGkR6;X8HY(5E2pYljVsyqnLOzg(z@$SQX>K8^OK$i(*o;%w*J9lK13i|SaVS_Tz zhC*daLG-KAE)&pZOaBIlZxR)iyhZ!5;KYyE9cEP60z{MdBVa!v7vtvE@X^({e^I!j zThh4hHHQe8uofXx3od*f3gr~5)WHOfZ)`mU>XeMJZvT7~l55>-00CNBGr=E%;-i{d zb&0Pkn|GW$)x`u#E<<~T8itsGS^D|OX?wrt;*Cm@=x>VZ2+c)YHmNk;egF+pVE- z+&h$HyVqH7ez&ARau#8CvZ^3Z;%8@P$E@F?}1)|y z1LyiE;&*owW6iF2NQ}=3s_dK+$TMH-@ah7gk^%Ird{T2@F5tMz1u22!{g|?RQ0N*) zbH|whh{FGTDa0Z;4}W&}an>Vgxa0ix;1VwY@TqaGn!ZY3M>I{a2hI@!OIB;rZ{B(0)!$rd!t^eR{rb2At(n0m;?Cl3F#sU z%K6`C(mZT8tbAd+D6!U_`N6xB!*kf^{9v`re_z^xO2z$qvpo7)ix3?e%x z7J)a!A%T4H6gu5RDBbJJ%+|5g)!188kFhw*@x6PeO3KDq`{)8`!Nt2^Tf^haEoUrz zt9sh8>OK7pVM!djEs5r11rId+lK#p50>cK9T;E14QE)1)2EuQKdPA;Ccq)9FvC_EUX?T$!x~N*Db93p1*CM zG;hq*0<;$cf68pQ+~I73i#YFea9-zL;HLX0q!hNPZ!X=54F5q4e(1rB;zn$|RPyK%e z|9SF1U;gvt|1}v2gWtSqO0MYZ*#;tM8ZQlBE{r8v Date: Thu, 4 Apr 2019 16:13:27 +0300 Subject: [PATCH 4/7] BAEL-2797 wrongly renamed Algorithms-1 package fixed --- .../{math => algorithms}/HillClimbingAlgorithmUnitTest.java | 2 +- .../{math => algorithms}/MiddleElementLookupUnitTest.java | 2 +- .../RtFiniteStateMachineLongRunningUnitTest.java | 2 +- .../{math => algorithms}/StringSearchAlgorithmsUnitTest.java | 2 +- .../binarysearch/BinarySearchUnitTest.java | 3 +-- .../algorithms}/combination/CombinationUnitTest.java | 2 +- .../enumstatemachine/LeaveRequestStateUnitTest.java | 3 +-- .../baeldung/algorithms}/factorial/FactorialUnitTest.java | 2 +- .../kthlargest/FindKthLargestUnitTest.java | 3 +-- .../com/baeldung/{math => algorithms}/mcts/MCTSUnitTest.java | 2 +- .../{math => algorithms}/minimax/MinimaxUnitTest.java | 4 +--- .../{math => algorithms}/multiswarm/LolFitnessFunction.java | 4 +--- .../{math => algorithms}/multiswarm/MultiswarmUnitTest.java | 5 ++--- .../string/EnglishAlphabetLettersUnitTest.java | 3 +-- .../LongestSubstringNonRepeatingCharactersUnitTest.java | 2 +- .../string/SubstringPalindromeUnitTest.java | 3 +-- .../baeldung/{math => algorithms}/support/MayFailRule.java | 2 +- .../twopointertechnique/LinkedListFindMiddleUnitTest.java | 4 +--- .../twopointertechnique/RotateArrayUnitTest.java | 3 +-- .../twopointertechnique/TwoSumUnitTest.java | 3 +-- .../java/com/baeldung/algorithms/bubblesort/BubbleSort.java | 2 +- .../src/main/java/com/baeldung/algorithms/heapsort/Heap.java | 2 +- .../com/baeldung/algorithms/insertionsort/InsertionSort.java | 2 +- .../java/com/baeldung/algorithms/mergesort/MergeSort.java | 2 +- .../java/com/baeldung/algorithms/quicksort/QuickSort.java | 2 +- .../com/baeldung/algorithms/quicksort/ThreeWayQuickSort.java | 2 +- .../baeldung/algorithms/bubblesort/BubbleSortUnitTest.java | 2 +- .../java/com/baeldung/algorithms/heapsort/HeapUnitTest.java | 2 +- .../algorithms/insertionsort/InsertionSortUnitTest.java | 4 ++-- .../com/baeldung/algorithms/mergesort/MergeSortUnitTest.java | 2 +- .../com/baeldung/algorithms/quicksort/QuickSortUnitTest.java | 4 ++-- .../algorithms/quicksort/ThreeWayQuickSortUnitTest.java | 2 +- .../test/java/com/baeldung/math/MathNewMethodsUnitTest.java | 2 +- .../combination/ApacheCommonsCombinationGenerator.java | 2 +- .../combination/CombinatoricsLibCombinationGenerator.java | 2 +- .../combination/GuavaCombinationsGenerator.java | 2 +- .../combination/IterativeCombinationGenerator.java | 2 +- .../combination/SelectionRecursiveCombinationGenerator.java | 2 +- .../combination/SetRecursiveCombinationGenerator.java | 2 +- .../distancebetweenpoints/DistanceBetweenPointsService.java | 2 +- .../baeldung/{math => algorithms}/factorial/Factorial.java | 2 +- .../linesintersection/LinesIntersectionService.java | 2 +- .../{math => algorithms}/mercator/EllipticalMercator.java | 2 +- .../com/baeldung/{math => algorithms}/mercator/Mercator.java | 2 +- .../{math => algorithms}/mercator/SphericalMercator.java | 2 +- .../percentage/PercentageCalculator.java | 2 +- .../{math => algorithms}/rectanglesoverlap/Point.java | 2 +- .../{math => algorithms}/rectanglesoverlap/Rectangle.java | 2 +- .../{math => algorithms}/roundedup/RoundUpToHundred.java | 2 +- .../algorithms}/combination/CombinationUnitTest.java | 5 +---- .../DistanceBetweenPointsServiceUnitTest.java | 2 +- .../baeldung/algorithms}/factorial/FactorialUnitTest.java | 3 +-- .../linesintersection/LinesIntersectionServiceUnitTest.java | 2 +- .../mercator/EllipticalMercatorUnitTest.java | 2 +- .../mercator/SphericalMercatorUnitTest.java | 2 +- .../percentage/PercentageCalculatorUnitTest.java | 2 +- .../rectanglesoverlap/RectangleUnitTest.java | 2 +- .../roundedup/RoundUpToHundredUnitTest.java | 2 +- .../algorithms/primechecker/BigIntegerPrimeChecker.java | 2 +- .../algorithms/primechecker/BruteForcePrimeChecker.java | 2 +- .../algorithms/primechecker/OptimisedPrimeChecker.java | 2 +- .../com/baeldung/algorithms/primechecker/PrimeChecker.java | 2 +- .../baeldung/algorithms/primechecker/PrimesPrimeChecker.java | 2 +- .../algorithms/primechecker/PrimeCheckerUnitTest.java | 2 +- 64 files changed, 67 insertions(+), 85 deletions(-) rename algorithms-miscellaneous-1/src/test/java/com/baeldung/{math => algorithms}/HillClimbingAlgorithmUnitTest.java (98%) rename algorithms-miscellaneous-1/src/test/java/com/baeldung/{math => algorithms}/MiddleElementLookupUnitTest.java (99%) rename algorithms-miscellaneous-1/src/test/java/com/baeldung/{math => algorithms}/RtFiniteStateMachineLongRunningUnitTest.java (98%) rename algorithms-miscellaneous-1/src/test/java/com/baeldung/{math => algorithms}/StringSearchAlgorithmsUnitTest.java (94%) rename algorithms-miscellaneous-1/src/test/java/com/baeldung/{math => algorithms}/binarysearch/BinarySearchUnitTest.java (92%) rename {java-math/src/test/java/com/baeldung/math => algorithms-miscellaneous-1/src/test/java/com/baeldung/algorithms}/combination/CombinationUnitTest.java (96%) rename algorithms-miscellaneous-1/src/test/java/com/baeldung/{math => algorithms}/enumstatemachine/LeaveRequestStateUnitTest.java (90%) rename {java-math/src/test/java/com/baeldung/math => algorithms-miscellaneous-1/src/test/java/com/baeldung/algorithms}/factorial/FactorialUnitTest.java (97%) rename algorithms-miscellaneous-1/src/test/java/com/baeldung/{math => algorithms}/kthlargest/FindKthLargestUnitTest.java (94%) rename algorithms-miscellaneous-1/src/test/java/com/baeldung/{math => algorithms}/mcts/MCTSUnitTest.java (98%) rename algorithms-miscellaneous-1/src/test/java/com/baeldung/{math => algorithms}/minimax/MinimaxUnitTest.java (85%) rename algorithms-miscellaneous-1/src/test/java/com/baeldung/{math => algorithms}/multiswarm/LolFitnessFunction.java (93%) rename algorithms-miscellaneous-1/src/test/java/com/baeldung/{math => algorithms}/multiswarm/MultiswarmUnitTest.java (92%) rename algorithms-miscellaneous-1/src/test/java/com/baeldung/{math => algorithms}/string/EnglishAlphabetLettersUnitTest.java (87%) rename algorithms-miscellaneous-1/src/test/java/com/baeldung/{math => algorithms}/string/LongestSubstringNonRepeatingCharactersUnitTest.java (95%) rename algorithms-miscellaneous-1/src/test/java/com/baeldung/{math => algorithms}/string/SubstringPalindromeUnitTest.java (96%) rename algorithms-miscellaneous-1/src/test/java/com/baeldung/{math => algorithms}/support/MayFailRule.java (95%) rename algorithms-miscellaneous-1/src/test/java/com/baeldung/{math => algorithms}/twopointertechnique/LinkedListFindMiddleUnitTest.java (83%) rename algorithms-miscellaneous-1/src/test/java/com/baeldung/{math => algorithms}/twopointertechnique/RotateArrayUnitTest.java (82%) rename algorithms-miscellaneous-1/src/test/java/com/baeldung/{math => algorithms}/twopointertechnique/TwoSumUnitTest.java (92%) rename java-math/src/main/java/com/baeldung/{math => algorithms}/combination/ApacheCommonsCombinationGenerator.java (94%) rename java-math/src/main/java/com/baeldung/{math => algorithms}/combination/CombinatoricsLibCombinationGenerator.java (86%) rename java-math/src/main/java/com/baeldung/{math => algorithms}/combination/GuavaCombinationsGenerator.java (90%) rename java-math/src/main/java/com/baeldung/{math => algorithms}/combination/IterativeCombinationGenerator.java (97%) rename java-math/src/main/java/com/baeldung/{math => algorithms}/combination/SelectionRecursiveCombinationGenerator.java (97%) rename java-math/src/main/java/com/baeldung/{math => algorithms}/combination/SetRecursiveCombinationGenerator.java (97%) rename java-math/src/main/java/com/baeldung/{math => algorithms}/distancebetweenpoints/DistanceBetweenPointsService.java (93%) rename java-math/src/main/java/com/baeldung/{math => algorithms}/factorial/Factorial.java (97%) rename java-math/src/main/java/com/baeldung/{math => algorithms}/linesintersection/LinesIntersectionService.java (89%) rename java-math/src/main/java/com/baeldung/{math => algorithms}/mercator/EllipticalMercator.java (95%) rename java-math/src/main/java/com/baeldung/{math => algorithms}/mercator/Mercator.java (84%) rename java-math/src/main/java/com/baeldung/{math => algorithms}/mercator/SphericalMercator.java (88%) rename java-math/src/main/java/com/baeldung/{math => algorithms}/percentage/PercentageCalculator.java (93%) rename java-math/src/main/java/com/baeldung/{math => algorithms}/rectanglesoverlap/Point.java (87%) rename java-math/src/main/java/com/baeldung/{math => algorithms}/rectanglesoverlap/Rectangle.java (95%) rename java-math/src/main/java/com/baeldung/{math => algorithms}/roundedup/RoundUpToHundred.java (90%) rename {algorithms-miscellaneous-1/src/test/java/com/baeldung/math => java-math/src/test/java/com/baeldung/algorithms}/combination/CombinationUnitTest.java (81%) rename java-math/src/test/java/com/baeldung/{math => algorithms}/distancebetweenpoints/DistanceBetweenPointsServiceUnitTest.java (95%) rename {algorithms-miscellaneous-1/src/test/java/com/baeldung/math => java-math/src/test/java/com/baeldung/algorithms}/factorial/FactorialUnitTest.java (95%) rename java-math/src/test/java/com/baeldung/{math => algorithms}/linesintersection/LinesIntersectionServiceUnitTest.java (95%) rename java-math/src/test/java/com/baeldung/{math => algorithms}/mercator/EllipticalMercatorUnitTest.java (94%) rename java-math/src/test/java/com/baeldung/{math => algorithms}/mercator/SphericalMercatorUnitTest.java (94%) rename java-math/src/test/java/com/baeldung/{math => algorithms}/percentage/PercentageCalculatorUnitTest.java (95%) rename java-math/src/test/java/com/baeldung/{math => algorithms}/rectanglesoverlap/RectangleUnitTest.java (96%) rename java-math/src/test/java/com/baeldung/{math => algorithms}/roundedup/RoundUpToHundredUnitTest.java (91%) diff --git a/algorithms-miscellaneous-1/src/test/java/com/baeldung/math/HillClimbingAlgorithmUnitTest.java b/algorithms-miscellaneous-1/src/test/java/com/baeldung/algorithms/HillClimbingAlgorithmUnitTest.java similarity index 98% rename from algorithms-miscellaneous-1/src/test/java/com/baeldung/math/HillClimbingAlgorithmUnitTest.java rename to algorithms-miscellaneous-1/src/test/java/com/baeldung/algorithms/HillClimbingAlgorithmUnitTest.java index 15d8585157..e817d195b3 100644 --- a/algorithms-miscellaneous-1/src/test/java/com/baeldung/math/HillClimbingAlgorithmUnitTest.java +++ b/algorithms-miscellaneous-1/src/test/java/com/baeldung/algorithms/HillClimbingAlgorithmUnitTest.java @@ -1,4 +1,4 @@ -package com.baeldung.math; +package com.baeldung.algorithms; import com.baeldung.algorithms.hillclimbing.HillClimbing; import com.baeldung.algorithms.hillclimbing.State; diff --git a/algorithms-miscellaneous-1/src/test/java/com/baeldung/math/MiddleElementLookupUnitTest.java b/algorithms-miscellaneous-1/src/test/java/com/baeldung/algorithms/MiddleElementLookupUnitTest.java similarity index 99% rename from algorithms-miscellaneous-1/src/test/java/com/baeldung/math/MiddleElementLookupUnitTest.java rename to algorithms-miscellaneous-1/src/test/java/com/baeldung/algorithms/MiddleElementLookupUnitTest.java index 97bbc6aeaa..2cda0ccb36 100644 --- a/algorithms-miscellaneous-1/src/test/java/com/baeldung/math/MiddleElementLookupUnitTest.java +++ b/algorithms-miscellaneous-1/src/test/java/com/baeldung/algorithms/MiddleElementLookupUnitTest.java @@ -1,4 +1,4 @@ -package com.baeldung.math; +package com.baeldung.algorithms; import com.baeldung.algorithms.middleelementlookup.MiddleElementLookup; import com.baeldung.algorithms.middleelementlookup.Node; diff --git a/algorithms-miscellaneous-1/src/test/java/com/baeldung/math/RtFiniteStateMachineLongRunningUnitTest.java b/algorithms-miscellaneous-1/src/test/java/com/baeldung/algorithms/RtFiniteStateMachineLongRunningUnitTest.java similarity index 98% rename from algorithms-miscellaneous-1/src/test/java/com/baeldung/math/RtFiniteStateMachineLongRunningUnitTest.java rename to algorithms-miscellaneous-1/src/test/java/com/baeldung/algorithms/RtFiniteStateMachineLongRunningUnitTest.java index bee90459e2..fddccfcd9f 100644 --- a/algorithms-miscellaneous-1/src/test/java/com/baeldung/math/RtFiniteStateMachineLongRunningUnitTest.java +++ b/algorithms-miscellaneous-1/src/test/java/com/baeldung/algorithms/RtFiniteStateMachineLongRunningUnitTest.java @@ -1,4 +1,4 @@ -package com.baeldung.math; +package com.baeldung.algorithms; import com.baeldung.algorithms.automata.*; import org.junit.Test; diff --git a/algorithms-miscellaneous-1/src/test/java/com/baeldung/math/StringSearchAlgorithmsUnitTest.java b/algorithms-miscellaneous-1/src/test/java/com/baeldung/algorithms/StringSearchAlgorithmsUnitTest.java similarity index 94% rename from algorithms-miscellaneous-1/src/test/java/com/baeldung/math/StringSearchAlgorithmsUnitTest.java rename to algorithms-miscellaneous-1/src/test/java/com/baeldung/algorithms/StringSearchAlgorithmsUnitTest.java index 9de282331a..dfe015aad2 100755 --- a/algorithms-miscellaneous-1/src/test/java/com/baeldung/math/StringSearchAlgorithmsUnitTest.java +++ b/algorithms-miscellaneous-1/src/test/java/com/baeldung/algorithms/StringSearchAlgorithmsUnitTest.java @@ -1,4 +1,4 @@ -package com.baeldung.math; +package com.baeldung.algorithms; import org.junit.Assert; diff --git a/algorithms-miscellaneous-1/src/test/java/com/baeldung/math/binarysearch/BinarySearchUnitTest.java b/algorithms-miscellaneous-1/src/test/java/com/baeldung/algorithms/binarysearch/BinarySearchUnitTest.java similarity index 92% rename from algorithms-miscellaneous-1/src/test/java/com/baeldung/math/binarysearch/BinarySearchUnitTest.java rename to algorithms-miscellaneous-1/src/test/java/com/baeldung/algorithms/binarysearch/BinarySearchUnitTest.java index 15ecaa2d6a..2855c5667d 100644 --- a/algorithms-miscellaneous-1/src/test/java/com/baeldung/math/binarysearch/BinarySearchUnitTest.java +++ b/algorithms-miscellaneous-1/src/test/java/com/baeldung/algorithms/binarysearch/BinarySearchUnitTest.java @@ -1,9 +1,8 @@ -package com.baeldung.math.binarysearch; +package com.baeldung.algorithms.binarysearch; import java.util.Arrays; import java.util.List; -import com.baeldung.algorithms.binarysearch.BinarySearch; import org.junit.Assert; import org.junit.Test; diff --git a/java-math/src/test/java/com/baeldung/math/combination/CombinationUnitTest.java b/algorithms-miscellaneous-1/src/test/java/com/baeldung/algorithms/combination/CombinationUnitTest.java similarity index 96% rename from java-math/src/test/java/com/baeldung/math/combination/CombinationUnitTest.java rename to algorithms-miscellaneous-1/src/test/java/com/baeldung/algorithms/combination/CombinationUnitTest.java index 54c57038a9..987b6ddae6 100644 --- a/java-math/src/test/java/com/baeldung/math/combination/CombinationUnitTest.java +++ b/algorithms-miscellaneous-1/src/test/java/com/baeldung/algorithms/combination/CombinationUnitTest.java @@ -1,4 +1,4 @@ -package com.baeldung.math.combination; +package com.baeldung.algorithms.combination; import static org.junit.jupiter.api.Assertions.assertEquals; diff --git a/algorithms-miscellaneous-1/src/test/java/com/baeldung/math/enumstatemachine/LeaveRequestStateUnitTest.java b/algorithms-miscellaneous-1/src/test/java/com/baeldung/algorithms/enumstatemachine/LeaveRequestStateUnitTest.java similarity index 90% rename from algorithms-miscellaneous-1/src/test/java/com/baeldung/math/enumstatemachine/LeaveRequestStateUnitTest.java rename to algorithms-miscellaneous-1/src/test/java/com/baeldung/algorithms/enumstatemachine/LeaveRequestStateUnitTest.java index feaf27c7c5..61ed6b3aec 100644 --- a/algorithms-miscellaneous-1/src/test/java/com/baeldung/math/enumstatemachine/LeaveRequestStateUnitTest.java +++ b/algorithms-miscellaneous-1/src/test/java/com/baeldung/algorithms/enumstatemachine/LeaveRequestStateUnitTest.java @@ -1,8 +1,7 @@ -package com.baeldung.math.enumstatemachine; +package com.baeldung.algorithms.enumstatemachine; import static org.junit.Assert.assertEquals; -import com.baeldung.algorithms.enumstatemachine.LeaveRequestState; import org.junit.Test; public class LeaveRequestStateUnitTest { diff --git a/java-math/src/test/java/com/baeldung/math/factorial/FactorialUnitTest.java b/algorithms-miscellaneous-1/src/test/java/com/baeldung/algorithms/factorial/FactorialUnitTest.java similarity index 97% rename from java-math/src/test/java/com/baeldung/math/factorial/FactorialUnitTest.java rename to algorithms-miscellaneous-1/src/test/java/com/baeldung/algorithms/factorial/FactorialUnitTest.java index 654d45747a..c185dba62b 100644 --- a/java-math/src/test/java/com/baeldung/math/factorial/FactorialUnitTest.java +++ b/algorithms-miscellaneous-1/src/test/java/com/baeldung/algorithms/factorial/FactorialUnitTest.java @@ -1,4 +1,4 @@ -package com.baeldung.math.factorial; +package com.baeldung.algorithms.factorial; import static org.assertj.core.api.Assertions.assertThat; diff --git a/algorithms-miscellaneous-1/src/test/java/com/baeldung/math/kthlargest/FindKthLargestUnitTest.java b/algorithms-miscellaneous-1/src/test/java/com/baeldung/algorithms/kthlargest/FindKthLargestUnitTest.java similarity index 94% rename from algorithms-miscellaneous-1/src/test/java/com/baeldung/math/kthlargest/FindKthLargestUnitTest.java rename to algorithms-miscellaneous-1/src/test/java/com/baeldung/algorithms/kthlargest/FindKthLargestUnitTest.java index 542b7e9c92..6fbb7c163a 100644 --- a/algorithms-miscellaneous-1/src/test/java/com/baeldung/math/kthlargest/FindKthLargestUnitTest.java +++ b/algorithms-miscellaneous-1/src/test/java/com/baeldung/algorithms/kthlargest/FindKthLargestUnitTest.java @@ -1,8 +1,7 @@ -package com.baeldung.math.kthlargest; +package com.baeldung.algorithms.kthlargest; import static org.assertj.core.api.Assertions.*; -import com.baeldung.algorithms.kthlargest.FindKthLargest; import org.junit.Before; import org.junit.Test; diff --git a/algorithms-miscellaneous-1/src/test/java/com/baeldung/math/mcts/MCTSUnitTest.java b/algorithms-miscellaneous-1/src/test/java/com/baeldung/algorithms/mcts/MCTSUnitTest.java similarity index 98% rename from algorithms-miscellaneous-1/src/test/java/com/baeldung/math/mcts/MCTSUnitTest.java rename to algorithms-miscellaneous-1/src/test/java/com/baeldung/algorithms/mcts/MCTSUnitTest.java index 263233c876..59afed65de 100644 --- a/algorithms-miscellaneous-1/src/test/java/com/baeldung/math/mcts/MCTSUnitTest.java +++ b/algorithms-miscellaneous-1/src/test/java/com/baeldung/algorithms/mcts/MCTSUnitTest.java @@ -1,4 +1,4 @@ -package com.baeldung.math.mcts; +package com.baeldung.algorithms.mcts; import static org.junit.Assert.assertEquals; import static org.junit.Assert.assertTrue; diff --git a/algorithms-miscellaneous-1/src/test/java/com/baeldung/math/minimax/MinimaxUnitTest.java b/algorithms-miscellaneous-1/src/test/java/com/baeldung/algorithms/minimax/MinimaxUnitTest.java similarity index 85% rename from algorithms-miscellaneous-1/src/test/java/com/baeldung/math/minimax/MinimaxUnitTest.java rename to algorithms-miscellaneous-1/src/test/java/com/baeldung/algorithms/minimax/MinimaxUnitTest.java index 60b3e7fd6f..070e29f30c 100644 --- a/algorithms-miscellaneous-1/src/test/java/com/baeldung/math/minimax/MinimaxUnitTest.java +++ b/algorithms-miscellaneous-1/src/test/java/com/baeldung/algorithms/minimax/MinimaxUnitTest.java @@ -1,7 +1,5 @@ -package com.baeldung.math.minimax; +package com.baeldung.algorithms.minimax; -import com.baeldung.algorithms.minimax.MiniMax; -import com.baeldung.algorithms.minimax.Tree; import org.junit.Before; import org.junit.Test; diff --git a/algorithms-miscellaneous-1/src/test/java/com/baeldung/math/multiswarm/LolFitnessFunction.java b/algorithms-miscellaneous-1/src/test/java/com/baeldung/algorithms/multiswarm/LolFitnessFunction.java similarity index 93% rename from algorithms-miscellaneous-1/src/test/java/com/baeldung/math/multiswarm/LolFitnessFunction.java rename to algorithms-miscellaneous-1/src/test/java/com/baeldung/algorithms/multiswarm/LolFitnessFunction.java index 5ef8ecbb65..726d4c135d 100644 --- a/algorithms-miscellaneous-1/src/test/java/com/baeldung/math/multiswarm/LolFitnessFunction.java +++ b/algorithms-miscellaneous-1/src/test/java/com/baeldung/algorithms/multiswarm/LolFitnessFunction.java @@ -1,6 +1,4 @@ -package com.baeldung.math.multiswarm; - -import com.baeldung.algorithms.multiswarm.FitnessFunction; +package com.baeldung.algorithms.multiswarm; /** * Specific fitness function implementation to solve the League of Legends diff --git a/algorithms-miscellaneous-1/src/test/java/com/baeldung/math/multiswarm/MultiswarmUnitTest.java b/algorithms-miscellaneous-1/src/test/java/com/baeldung/algorithms/multiswarm/MultiswarmUnitTest.java similarity index 92% rename from algorithms-miscellaneous-1/src/test/java/com/baeldung/math/multiswarm/MultiswarmUnitTest.java rename to algorithms-miscellaneous-1/src/test/java/com/baeldung/algorithms/multiswarm/MultiswarmUnitTest.java index 09b3c3d36e..3455cd3932 100644 --- a/algorithms-miscellaneous-1/src/test/java/com/baeldung/math/multiswarm/MultiswarmUnitTest.java +++ b/algorithms-miscellaneous-1/src/test/java/com/baeldung/algorithms/multiswarm/MultiswarmUnitTest.java @@ -1,11 +1,10 @@ -package com.baeldung.math.multiswarm; +package com.baeldung.algorithms.multiswarm; -import com.baeldung.algorithms.multiswarm.Multiswarm; import org.junit.Assert; import org.junit.Rule; import org.junit.Test; -import com.baeldung.math.support.MayFailRule; +import com.baeldung.algorithms.support.MayFailRule; /** * Test for {@link Multiswarm}. diff --git a/algorithms-miscellaneous-1/src/test/java/com/baeldung/math/string/EnglishAlphabetLettersUnitTest.java b/algorithms-miscellaneous-1/src/test/java/com/baeldung/algorithms/string/EnglishAlphabetLettersUnitTest.java similarity index 87% rename from algorithms-miscellaneous-1/src/test/java/com/baeldung/math/string/EnglishAlphabetLettersUnitTest.java rename to algorithms-miscellaneous-1/src/test/java/com/baeldung/algorithms/string/EnglishAlphabetLettersUnitTest.java index 090a37bd45..54863cddc8 100644 --- a/algorithms-miscellaneous-1/src/test/java/com/baeldung/math/string/EnglishAlphabetLettersUnitTest.java +++ b/algorithms-miscellaneous-1/src/test/java/com/baeldung/algorithms/string/EnglishAlphabetLettersUnitTest.java @@ -1,6 +1,5 @@ -package com.baeldung.math.string; +package com.baeldung.algorithms.string; -import com.baeldung.algorithms.string.EnglishAlphabetLetters; import org.junit.jupiter.api.Assertions; import org.junit.jupiter.api.Test; diff --git a/algorithms-miscellaneous-1/src/test/java/com/baeldung/math/string/LongestSubstringNonRepeatingCharactersUnitTest.java b/algorithms-miscellaneous-1/src/test/java/com/baeldung/algorithms/string/LongestSubstringNonRepeatingCharactersUnitTest.java similarity index 95% rename from algorithms-miscellaneous-1/src/test/java/com/baeldung/math/string/LongestSubstringNonRepeatingCharactersUnitTest.java rename to algorithms-miscellaneous-1/src/test/java/com/baeldung/algorithms/string/LongestSubstringNonRepeatingCharactersUnitTest.java index afb3f63d57..9f1e6a2519 100644 --- a/algorithms-miscellaneous-1/src/test/java/com/baeldung/math/string/LongestSubstringNonRepeatingCharactersUnitTest.java +++ b/algorithms-miscellaneous-1/src/test/java/com/baeldung/algorithms/string/LongestSubstringNonRepeatingCharactersUnitTest.java @@ -1,4 +1,4 @@ -package com.baeldung.math.string; +package com.baeldung.algorithms.string; import org.junit.jupiter.api.Test; diff --git a/algorithms-miscellaneous-1/src/test/java/com/baeldung/math/string/SubstringPalindromeUnitTest.java b/algorithms-miscellaneous-1/src/test/java/com/baeldung/algorithms/string/SubstringPalindromeUnitTest.java similarity index 96% rename from algorithms-miscellaneous-1/src/test/java/com/baeldung/math/string/SubstringPalindromeUnitTest.java rename to algorithms-miscellaneous-1/src/test/java/com/baeldung/algorithms/string/SubstringPalindromeUnitTest.java index f7fad04b0d..90270829b2 100644 --- a/algorithms-miscellaneous-1/src/test/java/com/baeldung/math/string/SubstringPalindromeUnitTest.java +++ b/algorithms-miscellaneous-1/src/test/java/com/baeldung/algorithms/string/SubstringPalindromeUnitTest.java @@ -1,10 +1,9 @@ -package com.baeldung.math.string; +package com.baeldung.algorithms.string; import static org.junit.Assert.assertEquals; import java.util.HashSet; import java.util.Set; -import com.baeldung.algorithms.string.SubstringPalindrome; import org.junit.Test; public class SubstringPalindromeUnitTest { diff --git a/algorithms-miscellaneous-1/src/test/java/com/baeldung/math/support/MayFailRule.java b/algorithms-miscellaneous-1/src/test/java/com/baeldung/algorithms/support/MayFailRule.java similarity index 95% rename from algorithms-miscellaneous-1/src/test/java/com/baeldung/math/support/MayFailRule.java rename to algorithms-miscellaneous-1/src/test/java/com/baeldung/algorithms/support/MayFailRule.java index 500154e24f..91df78ce4a 100644 --- a/algorithms-miscellaneous-1/src/test/java/com/baeldung/math/support/MayFailRule.java +++ b/algorithms-miscellaneous-1/src/test/java/com/baeldung/algorithms/support/MayFailRule.java @@ -1,4 +1,4 @@ -package com.baeldung.math.support; +package com.baeldung.algorithms.support; import org.junit.Rule; import org.junit.rules.TestRule; diff --git a/algorithms-miscellaneous-1/src/test/java/com/baeldung/math/twopointertechnique/LinkedListFindMiddleUnitTest.java b/algorithms-miscellaneous-1/src/test/java/com/baeldung/algorithms/twopointertechnique/LinkedListFindMiddleUnitTest.java similarity index 83% rename from algorithms-miscellaneous-1/src/test/java/com/baeldung/math/twopointertechnique/LinkedListFindMiddleUnitTest.java rename to algorithms-miscellaneous-1/src/test/java/com/baeldung/algorithms/twopointertechnique/LinkedListFindMiddleUnitTest.java index ec390a9b36..422a53fa3e 100644 --- a/algorithms-miscellaneous-1/src/test/java/com/baeldung/math/twopointertechnique/LinkedListFindMiddleUnitTest.java +++ b/algorithms-miscellaneous-1/src/test/java/com/baeldung/algorithms/twopointertechnique/LinkedListFindMiddleUnitTest.java @@ -1,9 +1,7 @@ -package com.baeldung.math.twopointertechnique; +package com.baeldung.algorithms.twopointertechnique; import static org.assertj.core.api.Assertions.assertThat; -import com.baeldung.algorithms.twopointertechnique.LinkedListFindMiddle; -import com.baeldung.algorithms.twopointertechnique.MyNode; import org.junit.Test; public class LinkedListFindMiddleUnitTest { diff --git a/algorithms-miscellaneous-1/src/test/java/com/baeldung/math/twopointertechnique/RotateArrayUnitTest.java b/algorithms-miscellaneous-1/src/test/java/com/baeldung/algorithms/twopointertechnique/RotateArrayUnitTest.java similarity index 82% rename from algorithms-miscellaneous-1/src/test/java/com/baeldung/math/twopointertechnique/RotateArrayUnitTest.java rename to algorithms-miscellaneous-1/src/test/java/com/baeldung/algorithms/twopointertechnique/RotateArrayUnitTest.java index 2cf5b0fcb4..da227ae751 100644 --- a/algorithms-miscellaneous-1/src/test/java/com/baeldung/math/twopointertechnique/RotateArrayUnitTest.java +++ b/algorithms-miscellaneous-1/src/test/java/com/baeldung/algorithms/twopointertechnique/RotateArrayUnitTest.java @@ -1,8 +1,7 @@ -package com.baeldung.math.twopointertechnique; +package com.baeldung.algorithms.twopointertechnique; import static org.assertj.core.api.Assertions.assertThat; -import com.baeldung.algorithms.twopointertechnique.RotateArray; import org.junit.Test; public class RotateArrayUnitTest { diff --git a/algorithms-miscellaneous-1/src/test/java/com/baeldung/math/twopointertechnique/TwoSumUnitTest.java b/algorithms-miscellaneous-1/src/test/java/com/baeldung/algorithms/twopointertechnique/TwoSumUnitTest.java similarity index 92% rename from algorithms-miscellaneous-1/src/test/java/com/baeldung/math/twopointertechnique/TwoSumUnitTest.java rename to algorithms-miscellaneous-1/src/test/java/com/baeldung/algorithms/twopointertechnique/TwoSumUnitTest.java index 48983b22e8..aa76f8e1cf 100644 --- a/algorithms-miscellaneous-1/src/test/java/com/baeldung/math/twopointertechnique/TwoSumUnitTest.java +++ b/algorithms-miscellaneous-1/src/test/java/com/baeldung/algorithms/twopointertechnique/TwoSumUnitTest.java @@ -1,9 +1,8 @@ -package com.baeldung.math.twopointertechnique; +package com.baeldung.algorithms.twopointertechnique; import static org.junit.Assert.assertFalse; import static org.junit.Assert.assertTrue; -import com.baeldung.algorithms.twopointertechnique.TwoSum; import org.junit.Test; public class TwoSumUnitTest { diff --git a/algorithms-sorting/src/main/java/com/baeldung/algorithms/bubblesort/BubbleSort.java b/algorithms-sorting/src/main/java/com/baeldung/algorithms/bubblesort/BubbleSort.java index 028967d90a..2528032676 100644 --- a/algorithms-sorting/src/main/java/com/baeldung/algorithms/bubblesort/BubbleSort.java +++ b/algorithms-sorting/src/main/java/com/baeldung/algorithms/bubblesort/BubbleSort.java @@ -1,4 +1,4 @@ -package com.baeldung.math.bubblesort; +package com.baeldung.algorithms.bubblesort; import java.util.stream.IntStream; diff --git a/algorithms-sorting/src/main/java/com/baeldung/algorithms/heapsort/Heap.java b/algorithms-sorting/src/main/java/com/baeldung/algorithms/heapsort/Heap.java index 927627aadf..8c98e4fc5c 100644 --- a/algorithms-sorting/src/main/java/com/baeldung/algorithms/heapsort/Heap.java +++ b/algorithms-sorting/src/main/java/com/baeldung/algorithms/heapsort/Heap.java @@ -1,4 +1,4 @@ -package com.baeldung.math.heapsort; +package com.baeldung.algorithms.heapsort; import java.util.ArrayList; import java.util.Arrays; diff --git a/algorithms-sorting/src/main/java/com/baeldung/algorithms/insertionsort/InsertionSort.java b/algorithms-sorting/src/main/java/com/baeldung/algorithms/insertionsort/InsertionSort.java index d167d102bd..02dd485cf1 100644 --- a/algorithms-sorting/src/main/java/com/baeldung/algorithms/insertionsort/InsertionSort.java +++ b/algorithms-sorting/src/main/java/com/baeldung/algorithms/insertionsort/InsertionSort.java @@ -1,4 +1,4 @@ -package com.baeldung.math.insertionsort; +package com.baeldung.algorithms.insertionsort; public class InsertionSort { diff --git a/algorithms-sorting/src/main/java/com/baeldung/algorithms/mergesort/MergeSort.java b/algorithms-sorting/src/main/java/com/baeldung/algorithms/mergesort/MergeSort.java index 3a16e92f5f..945b4ffd7e 100644 --- a/algorithms-sorting/src/main/java/com/baeldung/algorithms/mergesort/MergeSort.java +++ b/algorithms-sorting/src/main/java/com/baeldung/algorithms/mergesort/MergeSort.java @@ -1,4 +1,4 @@ -package com.baeldung.math.mergesort; +package com.baeldung.algorithms.mergesort; public class MergeSort { diff --git a/algorithms-sorting/src/main/java/com/baeldung/algorithms/quicksort/QuickSort.java b/algorithms-sorting/src/main/java/com/baeldung/algorithms/quicksort/QuickSort.java index f42d396a24..e113cc3242 100644 --- a/algorithms-sorting/src/main/java/com/baeldung/algorithms/quicksort/QuickSort.java +++ b/algorithms-sorting/src/main/java/com/baeldung/algorithms/quicksort/QuickSort.java @@ -1,4 +1,4 @@ -package com.baeldung.math.quicksort; +package com.baeldung.algorithms.quicksort; public class QuickSort { diff --git a/algorithms-sorting/src/main/java/com/baeldung/algorithms/quicksort/ThreeWayQuickSort.java b/algorithms-sorting/src/main/java/com/baeldung/algorithms/quicksort/ThreeWayQuickSort.java index 6e35f65427..69afbdff13 100644 --- a/algorithms-sorting/src/main/java/com/baeldung/algorithms/quicksort/ThreeWayQuickSort.java +++ b/algorithms-sorting/src/main/java/com/baeldung/algorithms/quicksort/ThreeWayQuickSort.java @@ -1,4 +1,4 @@ -package com.baeldung.math.quicksort; +package com.baeldung.algorithms.quicksort; public class ThreeWayQuickSort { diff --git a/algorithms-sorting/src/test/java/com/baeldung/algorithms/bubblesort/BubbleSortUnitTest.java b/algorithms-sorting/src/test/java/com/baeldung/algorithms/bubblesort/BubbleSortUnitTest.java index 995657d760..210ee2378a 100644 --- a/algorithms-sorting/src/test/java/com/baeldung/algorithms/bubblesort/BubbleSortUnitTest.java +++ b/algorithms-sorting/src/test/java/com/baeldung/algorithms/bubblesort/BubbleSortUnitTest.java @@ -1,4 +1,4 @@ -package com.baeldung.math.bubblesort; +package com.baeldung.algorithms.bubblesort; import static org.junit.jupiter.api.Assertions.assertArrayEquals; diff --git a/algorithms-sorting/src/test/java/com/baeldung/algorithms/heapsort/HeapUnitTest.java b/algorithms-sorting/src/test/java/com/baeldung/algorithms/heapsort/HeapUnitTest.java index 15194eec07..96e4936eaf 100644 --- a/algorithms-sorting/src/test/java/com/baeldung/algorithms/heapsort/HeapUnitTest.java +++ b/algorithms-sorting/src/test/java/com/baeldung/algorithms/heapsort/HeapUnitTest.java @@ -1,4 +1,4 @@ -package com.baeldung.math.heapsort; +package com.baeldung.algorithms.heapsort; import static org.assertj.core.api.Assertions.assertThat; diff --git a/algorithms-sorting/src/test/java/com/baeldung/algorithms/insertionsort/InsertionSortUnitTest.java b/algorithms-sorting/src/test/java/com/baeldung/algorithms/insertionsort/InsertionSortUnitTest.java index 49bfcc7bb2..b3d7e8c534 100644 --- a/algorithms-sorting/src/test/java/com/baeldung/algorithms/insertionsort/InsertionSortUnitTest.java +++ b/algorithms-sorting/src/test/java/com/baeldung/algorithms/insertionsort/InsertionSortUnitTest.java @@ -1,6 +1,6 @@ -package com.baeldung.math.insertionsort; +package com.baeldung.algorithms.insertionsort; -import com.baeldung.math.insertionsort.InsertionSort; +import com.baeldung.algorithms.insertionsort.InsertionSort; import org.junit.Test; import static org.junit.Assert.assertArrayEquals; diff --git a/algorithms-sorting/src/test/java/com/baeldung/algorithms/mergesort/MergeSortUnitTest.java b/algorithms-sorting/src/test/java/com/baeldung/algorithms/mergesort/MergeSortUnitTest.java index c8a5cbc59e..5cd14b7bd0 100644 --- a/algorithms-sorting/src/test/java/com/baeldung/algorithms/mergesort/MergeSortUnitTest.java +++ b/algorithms-sorting/src/test/java/com/baeldung/algorithms/mergesort/MergeSortUnitTest.java @@ -1,4 +1,4 @@ -package com.baeldung.math.mergesort; +package com.baeldung.algorithms.mergesort; import org.junit.Assert; diff --git a/algorithms-sorting/src/test/java/com/baeldung/algorithms/quicksort/QuickSortUnitTest.java b/algorithms-sorting/src/test/java/com/baeldung/algorithms/quicksort/QuickSortUnitTest.java index 385ace91fa..c9af5b4bf8 100644 --- a/algorithms-sorting/src/test/java/com/baeldung/algorithms/quicksort/QuickSortUnitTest.java +++ b/algorithms-sorting/src/test/java/com/baeldung/algorithms/quicksort/QuickSortUnitTest.java @@ -1,6 +1,6 @@ -package com.baeldung.math.quicksort; +package com.baeldung.algorithms.quicksort; -import com.baeldung.math.quicksort.QuickSort; +import com.baeldung.algorithms.quicksort.QuickSort; import org.junit.Assert; import org.junit.Test; diff --git a/algorithms-sorting/src/test/java/com/baeldung/algorithms/quicksort/ThreeWayQuickSortUnitTest.java b/algorithms-sorting/src/test/java/com/baeldung/algorithms/quicksort/ThreeWayQuickSortUnitTest.java index 2379649bc6..cd8c7c1241 100644 --- a/algorithms-sorting/src/test/java/com/baeldung/algorithms/quicksort/ThreeWayQuickSortUnitTest.java +++ b/algorithms-sorting/src/test/java/com/baeldung/algorithms/quicksort/ThreeWayQuickSortUnitTest.java @@ -1,4 +1,4 @@ -package com.baeldung.math.quicksort; +package com.baeldung.algorithms.quicksort; import org.junit.Assert; import org.junit.Test; diff --git a/core-java-8/src/test/java/com/baeldung/math/MathNewMethodsUnitTest.java b/core-java-8/src/test/java/com/baeldung/math/MathNewMethodsUnitTest.java index da96376009..b14d611b21 100644 --- a/core-java-8/src/test/java/com/baeldung/math/MathNewMethodsUnitTest.java +++ b/core-java-8/src/test/java/com/baeldung/math/MathNewMethodsUnitTest.java @@ -1,4 +1,4 @@ -package com.baeldung.math; +package com.baeldung.algorithms; import static org.junit.Assert.assertEquals; diff --git a/java-math/src/main/java/com/baeldung/math/combination/ApacheCommonsCombinationGenerator.java b/java-math/src/main/java/com/baeldung/algorithms/combination/ApacheCommonsCombinationGenerator.java similarity index 94% rename from java-math/src/main/java/com/baeldung/math/combination/ApacheCommonsCombinationGenerator.java rename to java-math/src/main/java/com/baeldung/algorithms/combination/ApacheCommonsCombinationGenerator.java index c3806a46a2..40142ce940 100644 --- a/java-math/src/main/java/com/baeldung/math/combination/ApacheCommonsCombinationGenerator.java +++ b/java-math/src/main/java/com/baeldung/algorithms/combination/ApacheCommonsCombinationGenerator.java @@ -1,4 +1,4 @@ -package com.baeldung.math.combination; +package com.baeldung.algorithms.combination; import java.util.Arrays; import java.util.Iterator; diff --git a/java-math/src/main/java/com/baeldung/math/combination/CombinatoricsLibCombinationGenerator.java b/java-math/src/main/java/com/baeldung/algorithms/combination/CombinatoricsLibCombinationGenerator.java similarity index 86% rename from java-math/src/main/java/com/baeldung/math/combination/CombinatoricsLibCombinationGenerator.java rename to java-math/src/main/java/com/baeldung/algorithms/combination/CombinatoricsLibCombinationGenerator.java index 5de6e11b93..0afdeefb8b 100644 --- a/java-math/src/main/java/com/baeldung/math/combination/CombinatoricsLibCombinationGenerator.java +++ b/java-math/src/main/java/com/baeldung/algorithms/combination/CombinatoricsLibCombinationGenerator.java @@ -1,4 +1,4 @@ -package com.baeldung.math.combination; +package com.baeldung.algorithms.combination; import org.paukov.combinatorics3.Generator; diff --git a/java-math/src/main/java/com/baeldung/math/combination/GuavaCombinationsGenerator.java b/java-math/src/main/java/com/baeldung/algorithms/combination/GuavaCombinationsGenerator.java similarity index 90% rename from java-math/src/main/java/com/baeldung/math/combination/GuavaCombinationsGenerator.java rename to java-math/src/main/java/com/baeldung/algorithms/combination/GuavaCombinationsGenerator.java index 1865c5c38a..d2783881ba 100644 --- a/java-math/src/main/java/com/baeldung/math/combination/GuavaCombinationsGenerator.java +++ b/java-math/src/main/java/com/baeldung/algorithms/combination/GuavaCombinationsGenerator.java @@ -1,4 +1,4 @@ -package com.baeldung.math.combination; +package com.baeldung.algorithms.combination; import java.util.Arrays; import java.util.Set; diff --git a/java-math/src/main/java/com/baeldung/math/combination/IterativeCombinationGenerator.java b/java-math/src/main/java/com/baeldung/algorithms/combination/IterativeCombinationGenerator.java similarity index 97% rename from java-math/src/main/java/com/baeldung/math/combination/IterativeCombinationGenerator.java rename to java-math/src/main/java/com/baeldung/algorithms/combination/IterativeCombinationGenerator.java index bb63aca213..676d2f41e3 100644 --- a/java-math/src/main/java/com/baeldung/math/combination/IterativeCombinationGenerator.java +++ b/java-math/src/main/java/com/baeldung/algorithms/combination/IterativeCombinationGenerator.java @@ -1,4 +1,4 @@ -package com.baeldung.math.combination; +package com.baeldung.algorithms.combination; import java.util.ArrayList; import java.util.Arrays; diff --git a/java-math/src/main/java/com/baeldung/math/combination/SelectionRecursiveCombinationGenerator.java b/java-math/src/main/java/com/baeldung/algorithms/combination/SelectionRecursiveCombinationGenerator.java similarity index 97% rename from java-math/src/main/java/com/baeldung/math/combination/SelectionRecursiveCombinationGenerator.java rename to java-math/src/main/java/com/baeldung/algorithms/combination/SelectionRecursiveCombinationGenerator.java index 2be408c502..52305b8c2f 100644 --- a/java-math/src/main/java/com/baeldung/math/combination/SelectionRecursiveCombinationGenerator.java +++ b/java-math/src/main/java/com/baeldung/algorithms/combination/SelectionRecursiveCombinationGenerator.java @@ -1,4 +1,4 @@ -package com.baeldung.math.combination; +package com.baeldung.algorithms.combination; import java.util.ArrayList; import java.util.Arrays; diff --git a/java-math/src/main/java/com/baeldung/math/combination/SetRecursiveCombinationGenerator.java b/java-math/src/main/java/com/baeldung/algorithms/combination/SetRecursiveCombinationGenerator.java similarity index 97% rename from java-math/src/main/java/com/baeldung/math/combination/SetRecursiveCombinationGenerator.java rename to java-math/src/main/java/com/baeldung/algorithms/combination/SetRecursiveCombinationGenerator.java index 5f15b0ac65..a73447b31d 100644 --- a/java-math/src/main/java/com/baeldung/math/combination/SetRecursiveCombinationGenerator.java +++ b/java-math/src/main/java/com/baeldung/algorithms/combination/SetRecursiveCombinationGenerator.java @@ -1,4 +1,4 @@ -package com.baeldung.math.combination; +package com.baeldung.algorithms.combination; import java.util.ArrayList; import java.util.Arrays; diff --git a/java-math/src/main/java/com/baeldung/math/distancebetweenpoints/DistanceBetweenPointsService.java b/java-math/src/main/java/com/baeldung/algorithms/distancebetweenpoints/DistanceBetweenPointsService.java similarity index 93% rename from java-math/src/main/java/com/baeldung/math/distancebetweenpoints/DistanceBetweenPointsService.java rename to java-math/src/main/java/com/baeldung/algorithms/distancebetweenpoints/DistanceBetweenPointsService.java index b1785a9043..0c8eb86a38 100644 --- a/java-math/src/main/java/com/baeldung/math/distancebetweenpoints/DistanceBetweenPointsService.java +++ b/java-math/src/main/java/com/baeldung/algorithms/distancebetweenpoints/DistanceBetweenPointsService.java @@ -1,4 +1,4 @@ -package com.baeldung.math.distancebetweenpoints; +package com.baeldung.algorithms.distancebetweenpoints; import java.awt.geom.Point2D; diff --git a/java-math/src/main/java/com/baeldung/math/factorial/Factorial.java b/java-math/src/main/java/com/baeldung/algorithms/factorial/Factorial.java similarity index 97% rename from java-math/src/main/java/com/baeldung/math/factorial/Factorial.java rename to java-math/src/main/java/com/baeldung/algorithms/factorial/Factorial.java index 41cc08afd1..43d2221773 100644 --- a/java-math/src/main/java/com/baeldung/math/factorial/Factorial.java +++ b/java-math/src/main/java/com/baeldung/algorithms/factorial/Factorial.java @@ -1,4 +1,4 @@ -package com.baeldung.math.factorial; +package com.baeldung.algorithms.factorial; import java.math.BigInteger; import java.util.stream.LongStream; diff --git a/java-math/src/main/java/com/baeldung/math/linesintersection/LinesIntersectionService.java b/java-math/src/main/java/com/baeldung/algorithms/linesintersection/LinesIntersectionService.java similarity index 89% rename from java-math/src/main/java/com/baeldung/math/linesintersection/LinesIntersectionService.java rename to java-math/src/main/java/com/baeldung/algorithms/linesintersection/LinesIntersectionService.java index 267d75ae00..35d6c8b424 100644 --- a/java-math/src/main/java/com/baeldung/math/linesintersection/LinesIntersectionService.java +++ b/java-math/src/main/java/com/baeldung/algorithms/linesintersection/LinesIntersectionService.java @@ -1,4 +1,4 @@ -package com.baeldung.math.linesintersection; +package com.baeldung.algorithms.linesintersection; import java.awt.Point; import java.util.Optional; diff --git a/java-math/src/main/java/com/baeldung/math/mercator/EllipticalMercator.java b/java-math/src/main/java/com/baeldung/algorithms/mercator/EllipticalMercator.java similarity index 95% rename from java-math/src/main/java/com/baeldung/math/mercator/EllipticalMercator.java rename to java-math/src/main/java/com/baeldung/algorithms/mercator/EllipticalMercator.java index b3407ef835..e1c41f9518 100644 --- a/java-math/src/main/java/com/baeldung/math/mercator/EllipticalMercator.java +++ b/java-math/src/main/java/com/baeldung/algorithms/mercator/EllipticalMercator.java @@ -1,4 +1,4 @@ -package com.baeldung.math.mercator; +package com.baeldung.algorithms.mercator; class EllipticalMercator extends Mercator { diff --git a/java-math/src/main/java/com/baeldung/math/mercator/Mercator.java b/java-math/src/main/java/com/baeldung/algorithms/mercator/Mercator.java similarity index 84% rename from java-math/src/main/java/com/baeldung/math/mercator/Mercator.java rename to java-math/src/main/java/com/baeldung/algorithms/mercator/Mercator.java index b3d3e3a002..b289b1839d 100644 --- a/java-math/src/main/java/com/baeldung/math/mercator/Mercator.java +++ b/java-math/src/main/java/com/baeldung/algorithms/mercator/Mercator.java @@ -1,4 +1,4 @@ -package com.baeldung.math.mercator; +package com.baeldung.algorithms.mercator; abstract class Mercator { final static double RADIUS_MAJOR = 6378137.0; diff --git a/java-math/src/main/java/com/baeldung/math/mercator/SphericalMercator.java b/java-math/src/main/java/com/baeldung/algorithms/mercator/SphericalMercator.java similarity index 88% rename from java-math/src/main/java/com/baeldung/math/mercator/SphericalMercator.java rename to java-math/src/main/java/com/baeldung/algorithms/mercator/SphericalMercator.java index 9374cdab22..1be976d82e 100644 --- a/java-math/src/main/java/com/baeldung/math/mercator/SphericalMercator.java +++ b/java-math/src/main/java/com/baeldung/algorithms/mercator/SphericalMercator.java @@ -1,4 +1,4 @@ -package com.baeldung.math.mercator; +package com.baeldung.algorithms.mercator; public class SphericalMercator extends Mercator { diff --git a/java-math/src/main/java/com/baeldung/math/percentage/PercentageCalculator.java b/java-math/src/main/java/com/baeldung/algorithms/percentage/PercentageCalculator.java similarity index 93% rename from java-math/src/main/java/com/baeldung/math/percentage/PercentageCalculator.java rename to java-math/src/main/java/com/baeldung/algorithms/percentage/PercentageCalculator.java index 63f47e2712..f69b23146e 100644 --- a/java-math/src/main/java/com/baeldung/math/percentage/PercentageCalculator.java +++ b/java-math/src/main/java/com/baeldung/algorithms/percentage/PercentageCalculator.java @@ -1,4 +1,4 @@ -package com.baeldung.math.percentage; +package com.baeldung.algorithms.percentage; import java.util.Scanner; diff --git a/java-math/src/main/java/com/baeldung/math/rectanglesoverlap/Point.java b/java-math/src/main/java/com/baeldung/algorithms/rectanglesoverlap/Point.java similarity index 87% rename from java-math/src/main/java/com/baeldung/math/rectanglesoverlap/Point.java rename to java-math/src/main/java/com/baeldung/algorithms/rectanglesoverlap/Point.java index 96dffb272d..68b1e7c594 100644 --- a/java-math/src/main/java/com/baeldung/math/rectanglesoverlap/Point.java +++ b/java-math/src/main/java/com/baeldung/algorithms/rectanglesoverlap/Point.java @@ -1,4 +1,4 @@ -package com.baeldung.math.rectanglesoverlap; +package com.baeldung.algorithms.rectanglesoverlap; public class Point { diff --git a/java-math/src/main/java/com/baeldung/math/rectanglesoverlap/Rectangle.java b/java-math/src/main/java/com/baeldung/algorithms/rectanglesoverlap/Rectangle.java similarity index 95% rename from java-math/src/main/java/com/baeldung/math/rectanglesoverlap/Rectangle.java rename to java-math/src/main/java/com/baeldung/algorithms/rectanglesoverlap/Rectangle.java index e073bca2c9..38f5edec61 100644 --- a/java-math/src/main/java/com/baeldung/math/rectanglesoverlap/Rectangle.java +++ b/java-math/src/main/java/com/baeldung/algorithms/rectanglesoverlap/Rectangle.java @@ -1,4 +1,4 @@ -package com.baeldung.math.rectanglesoverlap; +package com.baeldung.algorithms.rectanglesoverlap; public class Rectangle { diff --git a/java-math/src/main/java/com/baeldung/math/roundedup/RoundUpToHundred.java b/java-math/src/main/java/com/baeldung/algorithms/roundedup/RoundUpToHundred.java similarity index 90% rename from java-math/src/main/java/com/baeldung/math/roundedup/RoundUpToHundred.java rename to java-math/src/main/java/com/baeldung/algorithms/roundedup/RoundUpToHundred.java index 236110f020..333019e294 100644 --- a/java-math/src/main/java/com/baeldung/math/roundedup/RoundUpToHundred.java +++ b/java-math/src/main/java/com/baeldung/algorithms/roundedup/RoundUpToHundred.java @@ -1,4 +1,4 @@ -package com.baeldung.math.roundedup; +package com.baeldung.algorithms.roundedup; import java.util.Scanner; diff --git a/algorithms-miscellaneous-1/src/test/java/com/baeldung/math/combination/CombinationUnitTest.java b/java-math/src/test/java/com/baeldung/algorithms/combination/CombinationUnitTest.java similarity index 81% rename from algorithms-miscellaneous-1/src/test/java/com/baeldung/math/combination/CombinationUnitTest.java rename to java-math/src/test/java/com/baeldung/algorithms/combination/CombinationUnitTest.java index 878a08c00f..987b6ddae6 100644 --- a/algorithms-miscellaneous-1/src/test/java/com/baeldung/math/combination/CombinationUnitTest.java +++ b/java-math/src/test/java/com/baeldung/algorithms/combination/CombinationUnitTest.java @@ -1,12 +1,9 @@ -package com.baeldung.math.combination; +package com.baeldung.algorithms.combination; import static org.junit.jupiter.api.Assertions.assertEquals; import java.util.List; -import com.baeldung.algorithms.combination.IterativeCombinationGenerator; -import com.baeldung.algorithms.combination.SelectionRecursiveCombinationGenerator; -import com.baeldung.algorithms.combination.SetRecursiveCombinationGenerator; import org.junit.Test; public class CombinationUnitTest { diff --git a/java-math/src/test/java/com/baeldung/math/distancebetweenpoints/DistanceBetweenPointsServiceUnitTest.java b/java-math/src/test/java/com/baeldung/algorithms/distancebetweenpoints/DistanceBetweenPointsServiceUnitTest.java similarity index 95% rename from java-math/src/test/java/com/baeldung/math/distancebetweenpoints/DistanceBetweenPointsServiceUnitTest.java rename to java-math/src/test/java/com/baeldung/algorithms/distancebetweenpoints/DistanceBetweenPointsServiceUnitTest.java index 66ceb01305..784681a807 100644 --- a/java-math/src/test/java/com/baeldung/math/distancebetweenpoints/DistanceBetweenPointsServiceUnitTest.java +++ b/java-math/src/test/java/com/baeldung/algorithms/distancebetweenpoints/DistanceBetweenPointsServiceUnitTest.java @@ -1,4 +1,4 @@ -package com.baeldung.math.distancebetweenpoints; +package com.baeldung.algorithms.distancebetweenpoints; import org.junit.Test; diff --git a/algorithms-miscellaneous-1/src/test/java/com/baeldung/math/factorial/FactorialUnitTest.java b/java-math/src/test/java/com/baeldung/algorithms/factorial/FactorialUnitTest.java similarity index 95% rename from algorithms-miscellaneous-1/src/test/java/com/baeldung/math/factorial/FactorialUnitTest.java rename to java-math/src/test/java/com/baeldung/algorithms/factorial/FactorialUnitTest.java index 22cd0a156c..c185dba62b 100644 --- a/algorithms-miscellaneous-1/src/test/java/com/baeldung/math/factorial/FactorialUnitTest.java +++ b/java-math/src/test/java/com/baeldung/algorithms/factorial/FactorialUnitTest.java @@ -1,10 +1,9 @@ -package com.baeldung.math.factorial; +package com.baeldung.algorithms.factorial; import static org.assertj.core.api.Assertions.assertThat; import java.math.BigInteger; -import com.baeldung.algorithms.factorial.Factorial; import org.junit.Before; import org.junit.Test; diff --git a/java-math/src/test/java/com/baeldung/math/linesintersection/LinesIntersectionServiceUnitTest.java b/java-math/src/test/java/com/baeldung/algorithms/linesintersection/LinesIntersectionServiceUnitTest.java similarity index 95% rename from java-math/src/test/java/com/baeldung/math/linesintersection/LinesIntersectionServiceUnitTest.java rename to java-math/src/test/java/com/baeldung/algorithms/linesintersection/LinesIntersectionServiceUnitTest.java index 4ae0c42bf1..22371107f3 100644 --- a/java-math/src/test/java/com/baeldung/math/linesintersection/LinesIntersectionServiceUnitTest.java +++ b/java-math/src/test/java/com/baeldung/algorithms/linesintersection/LinesIntersectionServiceUnitTest.java @@ -1,4 +1,4 @@ -package com.baeldung.math.linesintersection; +package com.baeldung.algorithms.linesintersection; import java.awt.Point; import java.util.Optional; diff --git a/java-math/src/test/java/com/baeldung/math/mercator/EllipticalMercatorUnitTest.java b/java-math/src/test/java/com/baeldung/algorithms/mercator/EllipticalMercatorUnitTest.java similarity index 94% rename from java-math/src/test/java/com/baeldung/math/mercator/EllipticalMercatorUnitTest.java rename to java-math/src/test/java/com/baeldung/algorithms/mercator/EllipticalMercatorUnitTest.java index 668c80bbb0..96b644c46c 100644 --- a/java-math/src/test/java/com/baeldung/math/mercator/EllipticalMercatorUnitTest.java +++ b/java-math/src/test/java/com/baeldung/algorithms/mercator/EllipticalMercatorUnitTest.java @@ -1,4 +1,4 @@ -package com.baeldung.math.mercator; +package com.baeldung.algorithms.mercator; import org.junit.Assert; import org.junit.Test; diff --git a/java-math/src/test/java/com/baeldung/math/mercator/SphericalMercatorUnitTest.java b/java-math/src/test/java/com/baeldung/algorithms/mercator/SphericalMercatorUnitTest.java similarity index 94% rename from java-math/src/test/java/com/baeldung/math/mercator/SphericalMercatorUnitTest.java rename to java-math/src/test/java/com/baeldung/algorithms/mercator/SphericalMercatorUnitTest.java index 3f008c6fe7..348c6ad3e4 100644 --- a/java-math/src/test/java/com/baeldung/math/mercator/SphericalMercatorUnitTest.java +++ b/java-math/src/test/java/com/baeldung/algorithms/mercator/SphericalMercatorUnitTest.java @@ -1,4 +1,4 @@ -package com.baeldung.math.mercator; +package com.baeldung.algorithms.mercator; import org.junit.Assert; import org.junit.Test; diff --git a/java-math/src/test/java/com/baeldung/math/percentage/PercentageCalculatorUnitTest.java b/java-math/src/test/java/com/baeldung/algorithms/percentage/PercentageCalculatorUnitTest.java similarity index 95% rename from java-math/src/test/java/com/baeldung/math/percentage/PercentageCalculatorUnitTest.java rename to java-math/src/test/java/com/baeldung/algorithms/percentage/PercentageCalculatorUnitTest.java index 42d0108240..e49acc0c4b 100644 --- a/java-math/src/test/java/com/baeldung/math/percentage/PercentageCalculatorUnitTest.java +++ b/java-math/src/test/java/com/baeldung/algorithms/percentage/PercentageCalculatorUnitTest.java @@ -1,4 +1,4 @@ -package com.baeldung.math.percentage; +package com.baeldung.algorithms.percentage; import org.junit.Assert; import org.junit.Test; diff --git a/java-math/src/test/java/com/baeldung/math/rectanglesoverlap/RectangleUnitTest.java b/java-math/src/test/java/com/baeldung/algorithms/rectanglesoverlap/RectangleUnitTest.java similarity index 96% rename from java-math/src/test/java/com/baeldung/math/rectanglesoverlap/RectangleUnitTest.java rename to java-math/src/test/java/com/baeldung/algorithms/rectanglesoverlap/RectangleUnitTest.java index 22ec1e1765..e4bb614b48 100644 --- a/java-math/src/test/java/com/baeldung/math/rectanglesoverlap/RectangleUnitTest.java +++ b/java-math/src/test/java/com/baeldung/algorithms/rectanglesoverlap/RectangleUnitTest.java @@ -1,4 +1,4 @@ -package com.baeldung.math.rectanglesoverlap; +package com.baeldung.algorithms.rectanglesoverlap; import static org.junit.Assert.assertTrue; import static org.junit.Assert.assertFalse; diff --git a/java-math/src/test/java/com/baeldung/math/roundedup/RoundUpToHundredUnitTest.java b/java-math/src/test/java/com/baeldung/algorithms/roundedup/RoundUpToHundredUnitTest.java similarity index 91% rename from java-math/src/test/java/com/baeldung/math/roundedup/RoundUpToHundredUnitTest.java rename to java-math/src/test/java/com/baeldung/algorithms/roundedup/RoundUpToHundredUnitTest.java index 290016c2a8..5191d65787 100644 --- a/java-math/src/test/java/com/baeldung/math/roundedup/RoundUpToHundredUnitTest.java +++ b/java-math/src/test/java/com/baeldung/algorithms/roundedup/RoundUpToHundredUnitTest.java @@ -1,4 +1,4 @@ -package com.baeldung.math.roundedup; +package com.baeldung.algorithms.roundedup; import static org.junit.Assert.assertEquals; diff --git a/java-numbers/src/main/java/com/baeldung/algorithms/primechecker/BigIntegerPrimeChecker.java b/java-numbers/src/main/java/com/baeldung/algorithms/primechecker/BigIntegerPrimeChecker.java index 70f130dfc7..752e659fa3 100644 --- a/java-numbers/src/main/java/com/baeldung/algorithms/primechecker/BigIntegerPrimeChecker.java +++ b/java-numbers/src/main/java/com/baeldung/algorithms/primechecker/BigIntegerPrimeChecker.java @@ -1,4 +1,4 @@ -package com.baeldung.math.primechecker; +package com.baeldung.algorithms.primechecker; import java.math.BigInteger; diff --git a/java-numbers/src/main/java/com/baeldung/algorithms/primechecker/BruteForcePrimeChecker.java b/java-numbers/src/main/java/com/baeldung/algorithms/primechecker/BruteForcePrimeChecker.java index d910c2149f..68382c26ea 100644 --- a/java-numbers/src/main/java/com/baeldung/algorithms/primechecker/BruteForcePrimeChecker.java +++ b/java-numbers/src/main/java/com/baeldung/algorithms/primechecker/BruteForcePrimeChecker.java @@ -1,4 +1,4 @@ -package com.baeldung.math.primechecker; +package com.baeldung.algorithms.primechecker; import java.util.stream.IntStream; diff --git a/java-numbers/src/main/java/com/baeldung/algorithms/primechecker/OptimisedPrimeChecker.java b/java-numbers/src/main/java/com/baeldung/algorithms/primechecker/OptimisedPrimeChecker.java index 6e3296aa45..3dc372ad22 100644 --- a/java-numbers/src/main/java/com/baeldung/algorithms/primechecker/OptimisedPrimeChecker.java +++ b/java-numbers/src/main/java/com/baeldung/algorithms/primechecker/OptimisedPrimeChecker.java @@ -1,4 +1,4 @@ -package com.baeldung.math.primechecker; +package com.baeldung.algorithms.primechecker; import java.util.stream.IntStream; diff --git a/java-numbers/src/main/java/com/baeldung/algorithms/primechecker/PrimeChecker.java b/java-numbers/src/main/java/com/baeldung/algorithms/primechecker/PrimeChecker.java index f73164d2c7..5f7a15a939 100644 --- a/java-numbers/src/main/java/com/baeldung/algorithms/primechecker/PrimeChecker.java +++ b/java-numbers/src/main/java/com/baeldung/algorithms/primechecker/PrimeChecker.java @@ -1,4 +1,4 @@ -package com.baeldung.math.primechecker; +package com.baeldung.algorithms.primechecker; public interface PrimeChecker { diff --git a/java-numbers/src/main/java/com/baeldung/algorithms/primechecker/PrimesPrimeChecker.java b/java-numbers/src/main/java/com/baeldung/algorithms/primechecker/PrimesPrimeChecker.java index b411214198..08b095cb79 100644 --- a/java-numbers/src/main/java/com/baeldung/algorithms/primechecker/PrimesPrimeChecker.java +++ b/java-numbers/src/main/java/com/baeldung/algorithms/primechecker/PrimesPrimeChecker.java @@ -1,4 +1,4 @@ -package com.baeldung.math.primechecker; +package com.baeldung.algorithms.primechecker; import org.apache.commons.math3.primes.Primes; diff --git a/java-numbers/src/test/java/com/baeldung/algorithms/primechecker/PrimeCheckerUnitTest.java b/java-numbers/src/test/java/com/baeldung/algorithms/primechecker/PrimeCheckerUnitTest.java index 23aafb009f..9f8ba8defd 100644 --- a/java-numbers/src/test/java/com/baeldung/algorithms/primechecker/PrimeCheckerUnitTest.java +++ b/java-numbers/src/test/java/com/baeldung/algorithms/primechecker/PrimeCheckerUnitTest.java @@ -1,4 +1,4 @@ -package com.baeldung.math.primechecker; +package com.baeldung.algorithms.primechecker; import org.junit.Test; From 86667df8bead7dd7d794385c4d7d5f7de5b66df7 Mon Sep 17 00:00:00 2001 From: "anilkivilcim.eray" Date: Thu, 4 Apr 2019 16:24:34 +0300 Subject: [PATCH 5/7] BAEL-2797 readme & pom files updated for math package --- java-math/README.md | 22 ++++++---------------- java-math/pom.xml | 4 ++-- 2 files changed, 8 insertions(+), 18 deletions(-) diff --git a/java-math/README.md b/java-math/README.md index ea6d6f379b..d821348204 100644 --- a/java-math/README.md +++ b/java-math/README.md @@ -1,20 +1,10 @@ ## Relevant articles: -- [Validating Input With Finite Automata in Java](http://www.baeldung.com/java-finite-automata) -- [Example of Hill Climbing Algorithm](http://www.baeldung.com/java-hill-climbing-algorithm) -- [Monte Carlo Tree Search for Tic-Tac-Toe Game](http://www.baeldung.com/java-monte-carlo-tree-search) -- [Binary Search Algorithm in Java](http://www.baeldung.com/java-binary-search) -- [Introduction to Minimax Algorithm](http://www.baeldung.com/java-minimax-algorithm) -- [How to Calculate Levenshtein Distance in Java?](http://www.baeldung.com/java-levenshtein-distance) -- [How to Find the Kth Largest Element in Java](http://www.baeldung.com/java-kth-largest-element) -- [Multi-Swarm Optimization Algorithm in Java](http://www.baeldung.com/java-multi-swarm-algorithm) -- [String Search Algorithms for Large Texts](http://www.baeldung.com/java-full-text-search-algorithms) -- [Check If a String Contains All The Letters of The Alphabet](https://www.baeldung.com/java-string-contains-all-letters) -- [Find the Middle Element of a Linked List](http://www.baeldung.com/java-linked-list-middle-element) - [Calculate Factorial in Java](https://www.baeldung.com/java-calculate-factorial) -- [Find Substrings That Are Palindromes in Java](https://www.baeldung.com/java-palindrome-substrings) -- [Find the Longest Substring without Repeating Characters](https://www.baeldung.com/java-longest-substring-without-repeated-characters) -- [Java Two Pointer Technique](https://www.baeldung.com/java-two-pointer-technique) -- [Permutations of an Array in Java](https://www.baeldung.com/java-array-permutations) -- [Implementing Simple State Machines with Java Enums](https://www.baeldung.com/java-enum-simple-state-machine) - [Generate Combinations in Java](https://www.baeldung.com/java-combinations-algorithm) +- [Check If Two Rectangles Overlap In Java](https://www.baeldung.com/java-check-if-two-rectangles-overlap) +- [Calculate the Distance Between Two Points in Java](https://www.baeldung.com/java-distance-between-two-points) +- [Find the Intersection of Two Lines in Java](https://www.baeldung.com/java-intersection-of-two-lines) +- [Round Up to the Nearest Hundred](https://www.baeldung.com/java-round-up-nearest-hundred) +- [Calculate Percentage in Java](https://www.baeldung.com/java-calculate-percentage) +- [Convert Latitude and Longitude to a 2D Point in Java](https://www.baeldung.com/java-convert-latitude-longitude) \ No newline at end of file diff --git a/java-math/pom.xml b/java-math/pom.xml index 86342a8618..a009116685 100644 --- a/java-math/pom.xml +++ b/java-math/pom.xml @@ -67,10 +67,10 @@ - com/baeldung/algorithms/dijkstra/* + com/baeldung/math/dijkstra/* - com/baeldung/algorithms/dijkstra/* + com/baeldung/math/dijkstra/* From 131db49f2a77c90e85821618191f28596f761e09 Mon Sep 17 00:00:00 2001 From: "anilkivilcim.eray" Date: Thu, 4 Apr 2019 16:49:28 +0300 Subject: [PATCH 6/7] BAEL-2797 core-java-8 package name fix --- .../baeldung/algorithms/string/SubstringPalindromeUnitTest.java | 1 - .../src/test/java/com/baeldung/math/MathNewMethodsUnitTest.java | 2 +- 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/algorithms-miscellaneous-1/src/test/java/com/baeldung/algorithms/string/SubstringPalindromeUnitTest.java b/algorithms-miscellaneous-1/src/test/java/com/baeldung/algorithms/string/SubstringPalindromeUnitTest.java index 90270829b2..8d225f67fa 100644 --- a/algorithms-miscellaneous-1/src/test/java/com/baeldung/algorithms/string/SubstringPalindromeUnitTest.java +++ b/algorithms-miscellaneous-1/src/test/java/com/baeldung/algorithms/string/SubstringPalindromeUnitTest.java @@ -3,7 +3,6 @@ package com.baeldung.algorithms.string; import static org.junit.Assert.assertEquals; import java.util.HashSet; import java.util.Set; - import org.junit.Test; public class SubstringPalindromeUnitTest { diff --git a/core-java-8/src/test/java/com/baeldung/math/MathNewMethodsUnitTest.java b/core-java-8/src/test/java/com/baeldung/math/MathNewMethodsUnitTest.java index b14d611b21..da96376009 100644 --- a/core-java-8/src/test/java/com/baeldung/math/MathNewMethodsUnitTest.java +++ b/core-java-8/src/test/java/com/baeldung/math/MathNewMethodsUnitTest.java @@ -1,4 +1,4 @@ -package com.baeldung.algorithms; +package com.baeldung.math; import static org.junit.Assert.assertEquals; From eae0cee48bb8ad3609d2a6a4932c70b9e16b6afc Mon Sep 17 00:00:00 2001 From: "anilkivilcim.eray" Date: Mon, 8 Apr 2019 23:02:03 +0300 Subject: [PATCH 7/7] BAEL-2797 fixes done for PR : * changed imports removed from other branches * cobertura plugin removed * copied packages removed from origin --- .../com/baeldung/algorithms/RunAlgorithm.java | 4 +- ...ColonyOptimizationLongRunningUnitTest.java | 2 +- ...ryGeneticAlgorithmLongRunningUnitTest.java | 2 +- ...SimulatedAnnealingLongRunningUnitTest.java | 2 +- .../ApacheCommonsCombinationGenerator.java | 29 ------- .../CombinatoricsLibCombinationGenerator.java | 13 ---- .../GuavaCombinationsGenerator.java | 17 ----- .../IterativeCombinationGenerator.java | 52 ------------- ...electionRecursiveCombinationGenerator.java | 53 ------------- .../SetRecursiveCombinationGenerator.java | 50 ------------ .../algorithms/factorial/Factorial.java | 63 --------------- .../mcts/montecarlo/MonteCarloTreeSearch.java | 2 +- .../algorithms/mcts/montecarlo/UCT.java | 1 + .../algorithms/mcts/tictactoe/Board.java | 1 + .../binarysearch/BinarySearchUnitTest.java | 1 + .../combination/CombinationUnitTest.java | 35 --------- .../factorial/FactorialUnitTest.java | 72 ------------------ .../algorithms/minimax/MinimaxUnitTest.java | 2 + .../ByteArrayConverterUnitTest.java | 2 + .../src/test/resources/graph.png | Bin 10403 -> 9637 bytes java-math/pom.xml | 20 ----- 21 files changed, 13 insertions(+), 410 deletions(-) delete mode 100644 algorithms-miscellaneous-1/src/main/java/com/baeldung/algorithms/combination/ApacheCommonsCombinationGenerator.java delete mode 100644 algorithms-miscellaneous-1/src/main/java/com/baeldung/algorithms/combination/CombinatoricsLibCombinationGenerator.java delete mode 100644 algorithms-miscellaneous-1/src/main/java/com/baeldung/algorithms/combination/GuavaCombinationsGenerator.java delete mode 100644 algorithms-miscellaneous-1/src/main/java/com/baeldung/algorithms/combination/IterativeCombinationGenerator.java delete mode 100644 algorithms-miscellaneous-1/src/main/java/com/baeldung/algorithms/combination/SelectionRecursiveCombinationGenerator.java delete mode 100644 algorithms-miscellaneous-1/src/main/java/com/baeldung/algorithms/combination/SetRecursiveCombinationGenerator.java delete mode 100644 algorithms-miscellaneous-1/src/main/java/com/baeldung/algorithms/factorial/Factorial.java delete mode 100644 algorithms-miscellaneous-1/src/test/java/com/baeldung/algorithms/combination/CombinationUnitTest.java delete mode 100644 algorithms-miscellaneous-1/src/test/java/com/baeldung/algorithms/factorial/FactorialUnitTest.java diff --git a/algorithms-genetic/src/main/java/com/baeldung/algorithms/RunAlgorithm.java b/algorithms-genetic/src/main/java/com/baeldung/algorithms/RunAlgorithm.java index 133c58ce61..779cb9b970 100644 --- a/algorithms-genetic/src/main/java/com/baeldung/algorithms/RunAlgorithm.java +++ b/algorithms-genetic/src/main/java/com/baeldung/algorithms/RunAlgorithm.java @@ -1,11 +1,11 @@ package com.baeldung.algorithms; +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 java.util.Scanner; - public class RunAlgorithm { public static void main(String[] args) throws InstantiationException, IllegalAccessException { diff --git a/algorithms-genetic/src/test/java/com/baeldung/algorithms/AntColonyOptimizationLongRunningUnitTest.java b/algorithms-genetic/src/test/java/com/baeldung/algorithms/AntColonyOptimizationLongRunningUnitTest.java index 24f6d04496..2ac7adc3aa 100644 --- a/algorithms-genetic/src/test/java/com/baeldung/algorithms/AntColonyOptimizationLongRunningUnitTest.java +++ b/algorithms-genetic/src/test/java/com/baeldung/algorithms/AntColonyOptimizationLongRunningUnitTest.java @@ -1,9 +1,9 @@ package com.baeldung.algorithms; -import com.baeldung.algorithms.ga.ant_colony.AntColonyOptimization; import org.junit.Assert; import org.junit.Test; +import com.baeldung.algorithms.ga.ant_colony.AntColonyOptimization; public class AntColonyOptimizationLongRunningUnitTest { diff --git a/algorithms-genetic/src/test/java/com/baeldung/algorithms/BinaryGeneticAlgorithmLongRunningUnitTest.java b/algorithms-genetic/src/test/java/com/baeldung/algorithms/BinaryGeneticAlgorithmLongRunningUnitTest.java index 57a3e33e4f..e819da4b36 100644 --- a/algorithms-genetic/src/test/java/com/baeldung/algorithms/BinaryGeneticAlgorithmLongRunningUnitTest.java +++ b/algorithms-genetic/src/test/java/com/baeldung/algorithms/BinaryGeneticAlgorithmLongRunningUnitTest.java @@ -1,9 +1,9 @@ package com.baeldung.algorithms; -import com.baeldung.algorithms.ga.binary.SimpleGeneticAlgorithm; import org.junit.Assert; import org.junit.Test; +import com.baeldung.algorithms.ga.binary.SimpleGeneticAlgorithm; public class BinaryGeneticAlgorithmLongRunningUnitTest { diff --git a/algorithms-genetic/src/test/java/com/baeldung/algorithms/SimulatedAnnealingLongRunningUnitTest.java b/algorithms-genetic/src/test/java/com/baeldung/algorithms/SimulatedAnnealingLongRunningUnitTest.java index c5f7e154e2..2ce7d75e43 100644 --- a/algorithms-genetic/src/test/java/com/baeldung/algorithms/SimulatedAnnealingLongRunningUnitTest.java +++ b/algorithms-genetic/src/test/java/com/baeldung/algorithms/SimulatedAnnealingLongRunningUnitTest.java @@ -1,9 +1,9 @@ package com.baeldung.algorithms; -import com.baeldung.algorithms.ga.annealing.SimulatedAnnealing; import org.junit.Assert; import org.junit.Test; +import com.baeldung.algorithms.ga.annealing.SimulatedAnnealing; public class SimulatedAnnealingLongRunningUnitTest { diff --git a/algorithms-miscellaneous-1/src/main/java/com/baeldung/algorithms/combination/ApacheCommonsCombinationGenerator.java b/algorithms-miscellaneous-1/src/main/java/com/baeldung/algorithms/combination/ApacheCommonsCombinationGenerator.java deleted file mode 100644 index 40142ce940..0000000000 --- a/algorithms-miscellaneous-1/src/main/java/com/baeldung/algorithms/combination/ApacheCommonsCombinationGenerator.java +++ /dev/null @@ -1,29 +0,0 @@ -package com.baeldung.algorithms.combination; - -import java.util.Arrays; -import java.util.Iterator; - -import org.apache.commons.math3.util.CombinatoricsUtils; - -public class ApacheCommonsCombinationGenerator { - - private static final int N = 6; - private static final int R = 3; - - /** - * Print all combinations of r elements from a set - * @param n - number of elements in set - * @param r - number of elements in selection - */ - public static void generate(int n, int r) { - Iterator iterator = CombinatoricsUtils.combinationsIterator(n, r); - while (iterator.hasNext()) { - final int[] combination = iterator.next(); - System.out.println(Arrays.toString(combination)); - } - } - - public static void main(String[] args) { - generate(N, R); - } -} \ No newline at end of file diff --git a/algorithms-miscellaneous-1/src/main/java/com/baeldung/algorithms/combination/CombinatoricsLibCombinationGenerator.java b/algorithms-miscellaneous-1/src/main/java/com/baeldung/algorithms/combination/CombinatoricsLibCombinationGenerator.java deleted file mode 100644 index 0afdeefb8b..0000000000 --- a/algorithms-miscellaneous-1/src/main/java/com/baeldung/algorithms/combination/CombinatoricsLibCombinationGenerator.java +++ /dev/null @@ -1,13 +0,0 @@ -package com.baeldung.algorithms.combination; - -import org.paukov.combinatorics3.Generator; - -public class CombinatoricsLibCombinationGenerator { - - public static void main(String[] args) { - Generator.combination(0, 1, 2, 3, 4, 5) - .simple(3) - .stream() - .forEach(System.out::println); - } -} diff --git a/algorithms-miscellaneous-1/src/main/java/com/baeldung/algorithms/combination/GuavaCombinationsGenerator.java b/algorithms-miscellaneous-1/src/main/java/com/baeldung/algorithms/combination/GuavaCombinationsGenerator.java deleted file mode 100644 index d2783881ba..0000000000 --- a/algorithms-miscellaneous-1/src/main/java/com/baeldung/algorithms/combination/GuavaCombinationsGenerator.java +++ /dev/null @@ -1,17 +0,0 @@ -package com.baeldung.algorithms.combination; - -import java.util.Arrays; -import java.util.Set; - -import com.google.common.collect.ImmutableSet; -import com.google.common.collect.Sets; - -public class GuavaCombinationsGenerator { - - public static void main(String[] args) { - - Set> combinations = Sets.combinations(ImmutableSet.of(0, 1, 2, 3, 4, 5), 3); - System.out.println(combinations.size()); - System.out.println(Arrays.toString(combinations.toArray())); - } -} diff --git a/algorithms-miscellaneous-1/src/main/java/com/baeldung/algorithms/combination/IterativeCombinationGenerator.java b/algorithms-miscellaneous-1/src/main/java/com/baeldung/algorithms/combination/IterativeCombinationGenerator.java deleted file mode 100644 index 676d2f41e3..0000000000 --- a/algorithms-miscellaneous-1/src/main/java/com/baeldung/algorithms/combination/IterativeCombinationGenerator.java +++ /dev/null @@ -1,52 +0,0 @@ -package com.baeldung.algorithms.combination; - -import java.util.ArrayList; -import java.util.Arrays; -import java.util.List; - -public class IterativeCombinationGenerator { - - private static final int N = 5; - private static final int R = 2; - - /** - * Generate all combinations of r elements from a set - * @param n the number of elements in input set - * @param r the number of elements in a combination - * @return the list containing all combinations - */ - public List generate(int n, int r) { - List combinations = new ArrayList<>(); - int[] combination = new int[r]; - - // initialize with lowest lexicographic combination - for (int i = 0; i < r; i++) { - combination[i] = i; - } - - while (combination[r - 1] < n) { - combinations.add(combination.clone()); - - // generate next combination in lexicographic order - int t = r - 1; - while (t != 0 && combination[t] == n - r + t) { - t--; - } - combination[t]++; - for (int i = t + 1; i < r; i++) { - combination[i] = combination[i - 1] + 1; - } - } - - return combinations; - } - - public static void main(String[] args) { - IterativeCombinationGenerator generator = new IterativeCombinationGenerator(); - List combinations = generator.generate(N, R); - System.out.println(combinations.size()); - for (int[] combination : combinations) { - System.out.println(Arrays.toString(combination)); - } - } -} diff --git a/algorithms-miscellaneous-1/src/main/java/com/baeldung/algorithms/combination/SelectionRecursiveCombinationGenerator.java b/algorithms-miscellaneous-1/src/main/java/com/baeldung/algorithms/combination/SelectionRecursiveCombinationGenerator.java deleted file mode 100644 index 52305b8c2f..0000000000 --- a/algorithms-miscellaneous-1/src/main/java/com/baeldung/algorithms/combination/SelectionRecursiveCombinationGenerator.java +++ /dev/null @@ -1,53 +0,0 @@ -package com.baeldung.algorithms.combination; - -import java.util.ArrayList; -import java.util.Arrays; -import java.util.List; - -public class SelectionRecursiveCombinationGenerator { - - private static final int N = 6; - private static final int R = 3; - - /** - * Generate all combinations of r elements from a set - * @param n - number of elements in input set - * @param r - number of elements to be chosen - * @return the list containing all combinations - */ - public List generate(int n, int r) { - List combinations = new ArrayList<>(); - helper(combinations, new int[r], 0, n - 1, 0); - return combinations; - } - - /** - * Choose elements from set by recursing over elements selected - * @param combinations - List to store generated combinations - * @param data - current combination - * @param start - starting element of remaining set - * @param end - last element of remaining set - * @param index - number of elements chosen so far. - */ - private void helper(List combinations, int data[], int start, int end, int index) { - if (index == data.length) { - int[] combination = data.clone(); - combinations.add(combination); - } else { - int max = Math.min(end, end + 1 - data.length + index); - for (int i = start; i <= max; i++) { - data[index] = i; - helper(combinations, data, i + 1, end, index + 1); - } - } - } - - public static void main(String[] args) { - SelectionRecursiveCombinationGenerator generator = new SelectionRecursiveCombinationGenerator(); - List combinations = generator.generate(N, R); - for (int[] combination : combinations) { - System.out.println(Arrays.toString(combination)); - } - System.out.printf("generated %d combinations of %d items from %d ", combinations.size(), R, N); - } -} diff --git a/algorithms-miscellaneous-1/src/main/java/com/baeldung/algorithms/combination/SetRecursiveCombinationGenerator.java b/algorithms-miscellaneous-1/src/main/java/com/baeldung/algorithms/combination/SetRecursiveCombinationGenerator.java deleted file mode 100644 index a73447b31d..0000000000 --- a/algorithms-miscellaneous-1/src/main/java/com/baeldung/algorithms/combination/SetRecursiveCombinationGenerator.java +++ /dev/null @@ -1,50 +0,0 @@ -package com.baeldung.algorithms.combination; - -import java.util.ArrayList; -import java.util.Arrays; -import java.util.List; - -public class SetRecursiveCombinationGenerator { - - private static final int N = 5; - private static final int R = 2; - - /** - * Generate all combinations of r elements from a set - * @param n - number of elements in set - * @param r - number of elements in selection - * @return the list containing all combinations - */ - public List generate(int n, int r) { - List combinations = new ArrayList<>(); - helper(combinations, new int[r], 0, n-1, 0); - return combinations; - } - - /** - * @param combinations - List to contain the generated combinations - * @param data - List of elements in the selection - * @param start - index of the starting element in the remaining set - * @param end - index of the last element in the set - * @param index - number of elements selected so far - */ - private void helper(List combinations, int data[], int start, int end, int index) { - if (index == data.length) { - int[] combination = data.clone(); - combinations.add(combination); - } else if (start <= end) { - data[index] = start; - helper(combinations, data, start + 1, end, index + 1); - helper(combinations, data, start + 1, end, index); - } - } - - public static void main(String[] args) { - SetRecursiveCombinationGenerator generator = new SetRecursiveCombinationGenerator(); - List combinations = generator.generate(N, R); - for (int[] combination : combinations) { - System.out.println(Arrays.toString(combination)); - } - System.out.printf("generated %d combinations of %d items from %d ", combinations.size(), R, N); - } -} diff --git a/algorithms-miscellaneous-1/src/main/java/com/baeldung/algorithms/factorial/Factorial.java b/algorithms-miscellaneous-1/src/main/java/com/baeldung/algorithms/factorial/Factorial.java deleted file mode 100644 index 43d2221773..0000000000 --- a/algorithms-miscellaneous-1/src/main/java/com/baeldung/algorithms/factorial/Factorial.java +++ /dev/null @@ -1,63 +0,0 @@ -package com.baeldung.algorithms.factorial; - -import java.math.BigInteger; -import java.util.stream.LongStream; - -import org.apache.commons.math3.util.CombinatoricsUtils; - -import com.google.common.math.BigIntegerMath; - -public class Factorial { - - public long factorialUsingForLoop(int n) { - long fact = 1; - for (int i = 2; i <= n; i++) { - fact = fact * i; - } - return fact; - } - - public long factorialUsingStreams(int n) { - return LongStream.rangeClosed(1, n) - .reduce(1, (long x, long y) -> x * y); - } - - public long factorialUsingRecursion(int n) { - if (n <= 2) { - return n; - } - return n * factorialUsingRecursion(n - 1); - } - - private Long[] factorials = new Long[20]; - - public long factorialUsingMemoize(int n) { - - if (factorials[n] != null) { - return factorials[n]; - } - - if (n <= 2) { - return n; - } - long nthValue = n * factorialUsingMemoize(n - 1); - factorials[n] = nthValue; - return nthValue; - } - - public BigInteger factorialHavingLargeResult(int n) { - BigInteger result = BigInteger.ONE; - for (int i = 2; i <= n; i++) - result = result.multiply(BigInteger.valueOf(i)); - return result; - } - - public long factorialUsingApacheCommons(int n) { - return CombinatoricsUtils.factorial(n); - } - - public BigInteger factorialUsingGuava(int n) { - return BigIntegerMath.factorial(n); - } - -} diff --git a/algorithms-miscellaneous-1/src/main/java/com/baeldung/algorithms/mcts/montecarlo/MonteCarloTreeSearch.java b/algorithms-miscellaneous-1/src/main/java/com/baeldung/algorithms/mcts/montecarlo/MonteCarloTreeSearch.java index 9835e5f534..a4918f674d 100644 --- a/algorithms-miscellaneous-1/src/main/java/com/baeldung/algorithms/mcts/montecarlo/MonteCarloTreeSearch.java +++ b/algorithms-miscellaneous-1/src/main/java/com/baeldung/algorithms/mcts/montecarlo/MonteCarloTreeSearch.java @@ -2,9 +2,9 @@ package com.baeldung.algorithms.mcts.montecarlo; import java.util.List; +import com.baeldung.algorithms.mcts.tictactoe.Board; import com.baeldung.algorithms.mcts.tree.Node; import com.baeldung.algorithms.mcts.tree.Tree; -import com.baeldung.algorithms.mcts.tictactoe.Board; public class MonteCarloTreeSearch { diff --git a/algorithms-miscellaneous-1/src/main/java/com/baeldung/algorithms/mcts/montecarlo/UCT.java b/algorithms-miscellaneous-1/src/main/java/com/baeldung/algorithms/mcts/montecarlo/UCT.java index b345bbec09..52707aab55 100644 --- a/algorithms-miscellaneous-1/src/main/java/com/baeldung/algorithms/mcts/montecarlo/UCT.java +++ b/algorithms-miscellaneous-1/src/main/java/com/baeldung/algorithms/mcts/montecarlo/UCT.java @@ -2,6 +2,7 @@ package com.baeldung.algorithms.mcts.montecarlo; import java.util.Collections; import java.util.Comparator; +import java.util.List; import com.baeldung.algorithms.mcts.tree.Node; diff --git a/algorithms-miscellaneous-1/src/main/java/com/baeldung/algorithms/mcts/tictactoe/Board.java b/algorithms-miscellaneous-1/src/main/java/com/baeldung/algorithms/mcts/tictactoe/Board.java index 1402c5e22d..5ca2d626f1 100644 --- a/algorithms-miscellaneous-1/src/main/java/com/baeldung/algorithms/mcts/tictactoe/Board.java +++ b/algorithms-miscellaneous-1/src/main/java/com/baeldung/algorithms/mcts/tictactoe/Board.java @@ -1,6 +1,7 @@ package com.baeldung.algorithms.mcts.tictactoe; import java.util.ArrayList; +import java.util.Arrays; import java.util.List; public class Board { diff --git a/algorithms-miscellaneous-1/src/test/java/com/baeldung/algorithms/binarysearch/BinarySearchUnitTest.java b/algorithms-miscellaneous-1/src/test/java/com/baeldung/algorithms/binarysearch/BinarySearchUnitTest.java index 2855c5667d..826682d373 100644 --- a/algorithms-miscellaneous-1/src/test/java/com/baeldung/algorithms/binarysearch/BinarySearchUnitTest.java +++ b/algorithms-miscellaneous-1/src/test/java/com/baeldung/algorithms/binarysearch/BinarySearchUnitTest.java @@ -5,6 +5,7 @@ import java.util.List; import org.junit.Assert; import org.junit.Test; +import com.baeldung.algorithms.binarysearch.BinarySearch; public class BinarySearchUnitTest { diff --git a/algorithms-miscellaneous-1/src/test/java/com/baeldung/algorithms/combination/CombinationUnitTest.java b/algorithms-miscellaneous-1/src/test/java/com/baeldung/algorithms/combination/CombinationUnitTest.java deleted file mode 100644 index 987b6ddae6..0000000000 --- a/algorithms-miscellaneous-1/src/test/java/com/baeldung/algorithms/combination/CombinationUnitTest.java +++ /dev/null @@ -1,35 +0,0 @@ -package com.baeldung.algorithms.combination; - -import static org.junit.jupiter.api.Assertions.assertEquals; - -import java.util.List; - -import org.junit.Test; - -public class CombinationUnitTest { - - private static final int N = 5; - private static final int R = 3; - private static final int nCr = 10; - - @Test - public void givenSetAndSelectionSize_whenCalculatedUsingSetRecursiveAlgorithm_thenExpectedCount() { - SetRecursiveCombinationGenerator generator = new SetRecursiveCombinationGenerator(); - List selection = generator.generate(N, R); - assertEquals(nCr, selection.size()); - } - - @Test - public void givenSetAndSelectionSize_whenCalculatedUsingSelectionRecursiveAlgorithm_thenExpectedCount() { - SelectionRecursiveCombinationGenerator generator = new SelectionRecursiveCombinationGenerator(); - List selection = generator.generate(N, R); - assertEquals(nCr, selection.size()); - } - - @Test - public void givenSetAndSelectionSize_whenCalculatedUsingIterativeAlgorithm_thenExpectedCount() { - IterativeCombinationGenerator generator = new IterativeCombinationGenerator(); - List selection = generator.generate(N, R); - assertEquals(nCr, selection.size()); - } -} diff --git a/algorithms-miscellaneous-1/src/test/java/com/baeldung/algorithms/factorial/FactorialUnitTest.java b/algorithms-miscellaneous-1/src/test/java/com/baeldung/algorithms/factorial/FactorialUnitTest.java deleted file mode 100644 index c185dba62b..0000000000 --- a/algorithms-miscellaneous-1/src/test/java/com/baeldung/algorithms/factorial/FactorialUnitTest.java +++ /dev/null @@ -1,72 +0,0 @@ -package com.baeldung.algorithms.factorial; - -import static org.assertj.core.api.Assertions.assertThat; - -import java.math.BigInteger; - -import org.junit.Before; -import org.junit.Test; - -public class FactorialUnitTest { - - Factorial factorial; - - @Before - public void setup() { - factorial = new Factorial(); - } - - @Test - public void whenCalculatingFactorialUsingForLoop_thenCorrect() { - int n = 5; - - assertThat(factorial.factorialUsingForLoop(n)).isEqualTo(120); - } - - @Test - public void whenCalculatingFactorialUsingStreams_thenCorrect() { - int n = 5; - - assertThat(factorial.factorialUsingStreams(n)).isEqualTo(120); - } - - @Test - public void whenCalculatingFactorialUsingRecursion_thenCorrect() { - int n = 5; - - assertThat(factorial.factorialUsingRecursion(n)).isEqualTo(120); - } - - @Test - public void whenCalculatingFactorialUsingMemoize_thenCorrect() { - int n = 5; - - assertThat(factorial.factorialUsingMemoize(n)).isEqualTo(120); - - n = 6; - - assertThat(factorial.factorialUsingMemoize(n)).isEqualTo(720); - } - - @Test - public void whenCalculatingFactorialHavingLargeResult_thenCorrect() { - int n = 22; - - assertThat(factorial.factorialHavingLargeResult(n)).isEqualTo(new BigInteger("1124000727777607680000")); - } - - @Test - public void whenCalculatingFactorialUsingApacheCommons_thenCorrect() { - int n = 5; - - assertThat(factorial.factorialUsingApacheCommons(n)).isEqualTo(120); - } - - @Test - public void whenCalculatingFactorialUsingGuava_thenCorrect() { - int n = 22; - - assertThat(factorial.factorialUsingGuava(n)).isEqualTo(new BigInteger("1124000727777607680000")); - } - -} diff --git a/algorithms-miscellaneous-1/src/test/java/com/baeldung/algorithms/minimax/MinimaxUnitTest.java b/algorithms-miscellaneous-1/src/test/java/com/baeldung/algorithms/minimax/MinimaxUnitTest.java index 070e29f30c..59f0fcf053 100644 --- a/algorithms-miscellaneous-1/src/test/java/com/baeldung/algorithms/minimax/MinimaxUnitTest.java +++ b/algorithms-miscellaneous-1/src/test/java/com/baeldung/algorithms/minimax/MinimaxUnitTest.java @@ -4,6 +4,8 @@ import org.junit.Before; import org.junit.Test; import static org.junit.Assert.*; +import com.baeldung.algorithms.minimax.MiniMax; +import com.baeldung.algorithms.minimax.Tree; public class MinimaxUnitTest { private Tree gameTree; diff --git a/algorithms-miscellaneous-2/src/test/java/com/baeldung/algorithms/conversion/ByteArrayConverterUnitTest.java b/algorithms-miscellaneous-2/src/test/java/com/baeldung/algorithms/conversion/ByteArrayConverterUnitTest.java index 7bb57ca07f..be61802705 100644 --- a/algorithms-miscellaneous-2/src/test/java/com/baeldung/algorithms/conversion/ByteArrayConverterUnitTest.java +++ b/algorithms-miscellaneous-2/src/test/java/com/baeldung/algorithms/conversion/ByteArrayConverterUnitTest.java @@ -1,6 +1,7 @@ package com.baeldung.algorithms.conversion; import static org.junit.Assert.assertArrayEquals; +import static org.junit.Assert.assertEquals; import static org.junit.Assert.assertThat; import org.apache.commons.codec.DecoderException; @@ -8,6 +9,7 @@ import org.hamcrest.text.IsEqualIgnoringCase; import org.junit.Before; import org.junit.Test; +import com.baeldung.algorithms.conversion.HexStringConverter; public class ByteArrayConverterUnitTest { diff --git a/algorithms-miscellaneous-2/src/test/resources/graph.png b/algorithms-miscellaneous-2/src/test/resources/graph.png index c4b7531ee913a4e6659728e4cc33419ec67ecb62..7165a517824fec3ed31dea351d9b37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- - - org.codehaus.mojo - cobertura-maven-plugin - 2.7 - - - - com/baeldung/math/dijkstra/* - - - com/baeldung/math/dijkstra/* - - - - - - - 3.6.1 3.9.0