62 Commits

Author SHA1 Message Date
b81671e66d Add tests, remove main in LowerBound (#5672) 2024-10-12 10:04:54 +03:00
0ca4398188 feat: Add RandomSearch new algorithm with Junit tests (#5701) 2024-10-11 16:58:34 +03:00
b1aeac5cd6 Add tests, remove main in UpperBound (#5679) 2024-10-10 20:36:06 +00:00
4ec2701302 Add tests, remove main in TernarySearch (#5677) 2024-10-10 20:32:32 +00:00
6802029251 Add tests, remove main in LinearSearchThread (#5671) 2024-10-10 23:29:20 +03:00
29ad197a64 Add tests, remove main in SaddlebackSearch (#5674) 2024-10-10 23:24:52 +03:00
e8b32513c8 Add tests, remove main in MonteCarloTreeSearch (#5673) 2024-10-10 23:20:39 +03:00
b1724fa737 Add tests, remove main in LinearSearch (#5670) 2024-10-10 23:12:07 +03:00
401d87365e Add tests, remove main in UnionFind (#5678) 2024-10-10 23:07:02 +03:00
fb11d455dd Add tests in SearchInARowAndColWiseSortedMatrix (#5675) 2024-10-10 23:02:13 +03:00
a663e66782 Add tests, remove main in SquareRootBinarySearch (#5676) 2024-10-10 22:57:40 +03:00
38285771c8 Add tests, remove main in JumpSearch (#5669) 2024-10-10 22:51:06 +03:00
f992fc425d Add tests, remove main in IterativeTernarySearch (#5668) 2024-10-10 22:45:26 +03:00
0a7065df38 Add tests, remove main in IterativeBinarySearch (#5667) 2024-10-10 22:41:07 +03:00
ba3d3bf54e Add tests, remove main, improve docs in InterpolationSearch (#5666) 2024-10-10 22:36:38 +03:00
d197fc7df2 Add tests, remove main, improve docs in ExponentialSearch (#5664) 2024-10-10 22:30:37 +03:00
a4e4319126 Add tests, remove main, improve docs in FibonacciSearch (#5665) 2024-10-10 22:26:16 +03:00
ca5fbbf0a9 Add tests, remove main in BinarySearch (#5663) 2024-10-10 22:22:42 +03:00
90d20b3a43 Add smoothing constant to IDF formula in BM25 to prevent negative scores (#5696)
Co-authored-by: prayas7102 <prayas.prithvirajpratap7@example.com>
Co-authored-by: Alex Klymenko <alexanderklmn@gmail.com>
2024-10-10 10:39:22 +03:00
732f7c8458 Add BM25 Inverted Index Search Algorithm (#5615) 2024-10-07 20:30:46 +03:00
7b934af257 Improve comments, add function documentation in BinarySearch2dArray.java (#5518) 2024-10-03 07:10:59 +00:00
7c58b190c8 chore: fix some comments (#5333) 2024-08-16 20:19:15 +03:00
cafea1ee52 Refactored Identifiers (#5306)
Co-authored-by: Bama Charan Chhandogi <b.c.chhandogi@gmail.com>
2024-08-08 19:39:00 +05:30
a710fe11c4 style: include SPP_USE_ISEMPTY (#5238) 2024-06-24 08:49:50 +00:00
87b17e0571 style: enable NeedBraces in checkstyle (#5227)
* enable style NeedBraces

* style: enable NeedBraces in checkstyle

---------

Co-authored-by: Samuel Facchinello <samuel.facchinello@piksel.com>
2024-06-13 21:00:16 +02:00
a81fb32e6c style: enable TypeName (#5214)
* style: enable `TypeName` in checkstyle

* style: enable `TypeName` in checkstyle

* Update directory

* style: use proper formatting

---------

Co-authored-by: StarDxxx <StarDxxx@users.noreply.github.com>
Co-authored-by: Piotr Idzik <65706193+vil02@users.noreply.github.com>
2024-06-08 13:37:20 +02:00
25d711c5d8 style: enable LocalVariableName in CheckStyle (#5191)
* style: enable LocalVariableName in checkstyle

* Removed minor bug

* Resolved Method Name Bug

* Changed names according to suggestions
2024-05-28 20:29:28 +02:00
295e7436b1 style: enable MethodName in CheckStyle (#5182)
enabled: MethodName in CheckStyle
2024-05-27 09:06:06 +02:00
9eaa2bb756 style: enable MultipleVariableDeclarations in checkstyle (#5175)
Co-authored-by: vaibhav <vaibhav.waghmare@techprescient.com>
2024-05-25 20:18:27 +02:00
0f42e995a4 style: enabled InnerAssignment in checkstyle (#5162)
* style: enabled InnerAssignment in checkstyle

* Refactor code formatting in KnapsackMemoization.java and UnionFind.java

* style: remove redundant blank line

* style: mark `includeCurrentItem` and `excludeCurrentItem` as `final`

* style: remove `KnapsackMemoization` from `pmd-exclude.properties`

* style: use `final`

---------

Co-authored-by: Piotr Idzik <65706193+vil02@users.noreply.github.com>
2024-05-16 16:46:03 +00:00
27c0978851 style: include VA_FORMAT_STRING_USES_NEWLINE (#5151) 2024-05-09 17:21:04 +02:00
d3bb691f59 style: enable HideUtilityClassConstructor in checkstyle (#5147) 2024-05-08 09:58:29 +03:00
414835db11 style: enable AvoidStarImport in checkstyle (#5141) 2024-05-05 20:48:56 +02:00
1e2d7e9431 style: enable ConstantName in checkstyle (#5139)
Co-authored-by: Maria Paszkiewicz SCC <maria.paszkiewicz@kit.edu>
2024-05-02 18:31:37 +02:00
22310defcd Cleaned up code for some packages (#5094)
* Cleaned up code of some packages

---------

Co-authored-by: Piotr Idzik <65706193+vil02@users.noreply.github.com>
2024-04-02 21:26:06 +02:00
192427a5d2 Parameterize references to generic types. (#5078)
* chore: remove unused imports

* fix: parameterize references to generic types


---------

Co-authored-by: vil02 <65706193+vil02@users.noreply.github.com>
2024-03-15 19:03:27 +01:00
ab371843ac Close Scanner to avoid resource leak (#5077) 2024-03-12 19:49:58 +01:00
1dc64b1685 Update BinarySearch (#4747) 2023-10-12 23:13:32 +03:00
aaa2b26ed1 Issue #4706 Solved (#4707)
Import Package into the RecursiveBinarySearchTest and RecursiveBinarySearch

Co-authored-by: PiyushPagar1 <piyus.p@ergobite.com>
2023-10-07 18:57:46 +05:30
4fab7adfaa code-clean-up (#4519)
* code-clean-up

* style: make `RabinKarpAlgorithm` a proper utility class

---------

Co-authored-by: arintripathi1 <arint@trainee.nrifintech.com>
Co-authored-by: vil02 <vil02@o2.pl>
Co-authored-by: Piotr Idzik <65706193+vil02@users.noreply.github.com>
2023-10-03 17:32:59 +00:00
da687c11cb Added [FEATURE REQUEST] <Recursive Binary Search> #4457 (#4469)
* Create RecursiveBinarySearch.java

* Update RecursiveBinarySearch.java

* Update RecursiveBinarySearch.java

* Update RecursiveBinarySearch.java

* Update RecursiveBinarySearch.java

* Create ReverseArray.java

* Update RecursiveBinarySearch.java

* Update RecursiveBinarySearch.java

* Create RecursiveBinarySearchTest.java

* Update RecursiveBinarySearchTest.java

* Update RecursiveBinarySearchTest.java

* Delete src/main/java/com/thealgorithms/others/ReverseArray.java

* Update RecursiveBinarySearchTest.java

* Update RecursiveBinarySearchTest.java

* Create ReverseArray.java

* Delete src/main/java/com/thealgorithms/others/ReverseArray.java

* Update RecursiveBinarySearchTest.java

* Update RecursiveBinarySearch.java
2023-10-01 15:22:51 +00:00
18848574be Make DFS and BFS search algorithms generic (fixes #4229) (#4230) 2023-08-13 11:59:26 +05:30
2488a2ad51 Code cleanup (#4246) 2023-07-22 15:23:00 +00:00
415a04ea7f Add automatic linter (#4214) 2023-06-09 20:05:14 +08:00
00282efd8b style: format code (#4212)
close #4204
2023-06-09 18:52:05 +08:00
1dc388653a Refactor Code Style (#4151) 2023-04-15 11:25:54 +03:00
ad72c28d91 Remove unnecessary code (#4141) 2023-04-03 22:35:59 +08:00
6b9eb1b9c1 Add orderAgnosticBinarySearch (#3882)
Co-authored-by: Andrii Siriak <siryaka@gmail.com>
2023-02-23 17:19:05 +00:00
d5f140458a Add two algorithms with matrixes (#3364) 2023-01-14 10:01:03 +00:00
8ba295b1ad Added Order Agnostic Binary Search problem in Searches folder. (#3791)
* Added Order Agnostic Binary Search problem

* Update OrderAgnosticBinSearch.java

* Added JUnit Tests and removed redundant code.

* Made minor changes in JUnit Tests

* Removed tests for main folder and added docs.

* Added OrderAgnosticBinarySearchTest.java

* Renamed file to avoid errors.

* Updated the file to avoid build error
2022-12-12 00:43:27 +05:30