BAEL-2797 wrong renaming fixed on algorithms package

This commit is contained in:
anilkivilcim.eray 2019-04-04 15:50:39 +03:00
parent 94bf17615c
commit 64bc79b290
64 changed files with 85 additions and 66 deletions

View File

@ -1,4 +1,4 @@
package com.baeldung.math.automata;
package com.baeldung.algorithms.automata;
/**
* Finite state machine.

View File

@ -1,4 +1,4 @@
package com.baeldung.math.automata;
package com.baeldung.algorithms.automata;
/**
* Default implementation of a finite state machine.

View File

@ -1,4 +1,4 @@
package com.baeldung.math.automata;
package com.baeldung.algorithms.automata;
import java.util.ArrayList;
import java.util.List;

View File

@ -1,4 +1,4 @@
package com.baeldung.math.automata;
package com.baeldung.algorithms.automata;
/**
* State. Part of a finite state machine.

View File

@ -1,4 +1,4 @@
package com.baeldung.math.automata;
package com.baeldung.algorithms.automata;
/**
* Transition in a finite State machine.

View File

@ -1,4 +1,4 @@
package com.baeldung.math.binarysearch;
package com.baeldung.algorithms.binarysearch;
import java.util.Arrays;
import java.util.Collections;

View File

@ -1,4 +1,4 @@
package com.baeldung.math.combination;
package com.baeldung.algorithms.combination;
import java.util.Arrays;
import java.util.Iterator;

View File

@ -1,4 +1,4 @@
package com.baeldung.math.combination;
package com.baeldung.algorithms.combination;
import org.paukov.combinatorics3.Generator;

View File

@ -1,4 +1,4 @@
package com.baeldung.math.combination;
package com.baeldung.algorithms.combination;
import java.util.Arrays;
import java.util.Set;

View File

@ -1,4 +1,4 @@
package com.baeldung.math.combination;
package com.baeldung.algorithms.combination;
import java.util.ArrayList;
import java.util.Arrays;

View File

@ -1,4 +1,4 @@
package com.baeldung.math.combination;
package com.baeldung.algorithms.combination;
import java.util.ArrayList;
import java.util.Arrays;

View File

@ -1,4 +1,4 @@
package com.baeldung.math.combination;
package com.baeldung.algorithms.combination;
import java.util.ArrayList;
import java.util.Arrays;

View File

@ -1,4 +1,4 @@
package com.baeldung.math.enumstatemachine;
package com.baeldung.algorithms.enumstatemachine;
public enum LeaveRequestState {

View File

@ -1,4 +1,4 @@
package com.baeldung.math.factorial;
package com.baeldung.algorithms.factorial;
import java.math.BigInteger;
import java.util.stream.LongStream;

View File

@ -1,4 +1,4 @@
package com.baeldung.math.hillclimbing;
package com.baeldung.algorithms.hillclimbing;
import java.util.ArrayList;
import java.util.List;

View File

@ -1,4 +1,4 @@
package com.baeldung.math.hillclimbing;
package com.baeldung.algorithms.hillclimbing;
import java.util.ArrayList;
import java.util.List;

View File

@ -1,4 +1,4 @@
package com.baeldung.math.kthlargest;
package com.baeldung.algorithms.kthlargest;
import java.util.Arrays;
import java.util.Collections;

View File

@ -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 {

View File

@ -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;

View File

@ -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 {

View File

@ -1,4 +1,4 @@
package com.baeldung.math.mcts.tictactoe;
package com.baeldung.algorithms.mcts.tictactoe;
import java.util.ArrayList;
import java.util.List;

View File

@ -1,4 +1,4 @@
package com.baeldung.math.mcts.tictactoe;
package com.baeldung.algorithms.mcts.tictactoe;
public class Position {
int x;

View File

@ -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;

View File

@ -1,4 +1,4 @@
package com.baeldung.math.mcts.tree;
package com.baeldung.algorithms.mcts.tree;
public class Tree {
Node root;

View File

@ -1,4 +1,4 @@
package com.baeldung.math.middleelementlookup;
package com.baeldung.algorithms.middleelementlookup;
import java.util.LinkedList;
import java.util.Optional;

View File

@ -1,4 +1,4 @@
package com.baeldung.math.middleelementlookup;
package com.baeldung.algorithms.middleelementlookup;
public class Node {
private Node next;

View File

@ -1,4 +1,4 @@
package com.baeldung.math.minimax;
package com.baeldung.algorithms.minimax;
import java.util.List;
import java.util.stream.Collectors;

View File

@ -1,4 +1,4 @@
package com.baeldung.math.minimax;
package com.baeldung.algorithms.minimax;
import java.util.Comparator;
import java.util.List;

View File

@ -1,4 +1,4 @@
package com.baeldung.math.minimax;
package com.baeldung.algorithms.minimax;
import java.util.ArrayList;
import java.util.List;

View File

@ -1,4 +1,4 @@
package com.baeldung.math.minimax;
package com.baeldung.algorithms.minimax;
public class Tree {
private Node root;

View File

@ -1,4 +1,4 @@
package com.baeldung.math.multiswarm;
package com.baeldung.algorithms.multiswarm;
/**
* Constants used by the Multi-swarm optimization algorithms.

View File

@ -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

View File

@ -1,4 +1,4 @@
package com.baeldung.math.multiswarm;
package com.baeldung.algorithms.multiswarm;
import java.util.Arrays;
import java.util.Random;

View File

@ -1,4 +1,4 @@
package com.baeldung.math.multiswarm;
package com.baeldung.algorithms.multiswarm;
import java.util.Arrays;

View File

@ -1,4 +1,4 @@
package com.baeldung.math.multiswarm;
package com.baeldung.algorithms.multiswarm;
import java.util.Arrays;
import java.util.Random;

View File

@ -1,4 +1,4 @@
package com.baeldung.math.permutation;
package com.baeldung.algorithms.permutation;
import java.util.Arrays;
import java.util.Collections;

View File

@ -1,4 +1,4 @@
package com.baeldung.math.string;
package com.baeldung.algorithms.string;
public class EnglishAlphabetLetters {

View File

@ -1,4 +1,4 @@
package com.baeldung.math.string;
package com.baeldung.algorithms.string;
import java.util.HashMap;
import java.util.HashSet;

View File

@ -1,4 +1,4 @@
package com.baeldung.math.string;
package com.baeldung.algorithms.string;
import java.util.HashSet;
import java.util.Set;

View File

@ -1,4 +1,4 @@
package com.baeldung.math.string.search;
package com.baeldung.algorithms.string.search;
import java.math.BigInteger;
import java.util.Random;

View File

@ -1,4 +1,4 @@
package com.baeldung.math.twopointertechnique;
package com.baeldung.algorithms.twopointertechnique;
public class LinkedListFindMiddle {

View File

@ -1,4 +1,4 @@
package com.baeldung.math.twopointertechnique;
package com.baeldung.algorithms.twopointertechnique;
public class MyNode<E> {
MyNode<E> next;

View File

@ -1,4 +1,4 @@
package com.baeldung.math.twopointertechnique;
package com.baeldung.algorithms.twopointertechnique;
public class RotateArray {

View File

@ -1,4 +1,4 @@
package com.baeldung.math.twopointertechnique;
package com.baeldung.algorithms.twopointertechnique;
public class TwoSum {

View File

@ -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;

View File

@ -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;

View File

@ -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;

View File

@ -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 {

View File

@ -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;

View File

@ -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 {

View File

@ -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 {

View File

@ -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;

View File

@ -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;

View File

@ -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;

View File

@ -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;

View File

@ -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: <br>

View File

@ -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;

View File

@ -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;

View File

@ -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 {

View File

@ -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 {

View File

@ -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 {

View File

@ -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 {

View File

@ -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 {