8200a791a2
* Added code to find Articulation Points and Bridges * tried to solve clang-formant test * removed new line at EOF to get lint to pass * feature: Added Ahocorasick Algorithm * fixed lint using clang-format * removed datastructures/graphs/ArticulationPointsAndBridge.java from this branch * removed main, since test-file is added. Also modified and renamed few functions. * Added test-file for AhoCorasick Algorithm * Modified some comments in test-file * Modified some comments in AhoCorasick.java * lint fix * added few more test cases * Modified some comments * Change all class fields to private, added initializeSuffixLinksForChildNodesOfTheRoot() method, hashmap string search position (also has previous index based search), removed java.util.* * Added Missing Test-Cases and more * minor text changes * added direct test check i.e. defining a variable expected and just checking if res and expected are equal. * Created New Class Trie, merged 'buildTrie and buildSuffixAndOutputLinks' with 'Trie constructor'. Merged setUpStartPoints with searchIn. Now AhoCorasick contains -> inner class: Trie, Node. Methods: search and convert. Trie has -> Methods : constructor and searchIn * Updated TestFile according to the updated AhoCorasick Class. Added Few more test cases * updated - broken down constructor to relavent parts, made string final, made res local to searchIn(), doxygen-like style * lint fix clang * Updated Tests Files * Added final field to Node class setters and Trie Constructor arguments, removed getTrieRoot() and some unnecessory comments, renamed [old -> new]: res -> positionByStringIndexValue, removed if condition from setupStartPoints() * updated test file * lint fix clang * minor chage - 'removed a comment' * added final fields to some arguments, class and variables, added a method initializePositionByStringIndexValue() * updated to remove * inclusion and added the required modules only * Implemented a new class PatternPositionRecorder to wrap up the position recording in searchIn() * Added final fields to PatternPositionRecorder Class * style: mark default constructor of `AhoCorasick` as `private` * style: remoce redundant `public` --------- Co-authored-by: Piotr Idzik <65706193+vil02@users.noreply.github.com> |
||
---|---|---|
.. | ||
zigZagPattern | ||
AhoCorasickTest.java | ||
AlphabeticalTest.java | ||
AnagramsTest.java | ||
CharacterSameTest.java | ||
CheckAnagramsTest.java | ||
CheckVowelsTest.java | ||
HammingDistanceTest.java | ||
HorspoolSearchTest.java | ||
IsomorphicTest.java | ||
LetterCombinationsOfPhoneNumberTest.java | ||
longestNonRepeativeSubstringTest.java | ||
LowerTest.java | ||
MyAtoiTest.java | ||
PalindromeTest.java | ||
PangramTest.java | ||
ReverseStringRecursiveTest.java | ||
ReverseStringTest.java | ||
ReverseWordsInStringTest.java | ||
RotationTest.java | ||
StringCompressionTest.java | ||
UpperTest.java | ||
ValidParenthesesTest.java | ||
WordLadderTest.java |