Shuangchi He
889931acc8
chore: fix various spelling typos ( #945 )
2022-09-27 10:58:15 -05:00
Lars Müller
ce3f01f54c
Sentinel search: Remove bounds check ( fixes #887 ) ( #888 )
...
... which is the entire point of sentinel search
2021-10-16 19:28:37 -05:00
Regan Yue
3cfdbb040d
feat: Add the Sentinel Search algorithm ( #883 )
...
* Create sentinel_linear_search.c
This is a search algorithm that uses sentinels.
* Update sentinel_linear_search.c
Added some notes and made some changes
* updating DIRECTORY.md
* Apply suggestions from code review
thx u
Co-authored-by: David Leal <halfpacho@gmail.com>
* Update sentinel_linear_search.c
* Apply suggestions from code review
Co-authored-by: github-actions <${GITHUB_ACTOR}@users.noreply.github.com>
Co-authored-by: David Leal <halfpacho@gmail.com>
2021-10-15 11:13:10 -05:00
Swastika Gupta
580bd405ea
feat: Add floyd cycle-detection-algorithm to find duplicate number ( #844 )
...
* floyd algorithm application
* Update searching/floyd_cycle_detection_algorithm.c
Co-authored-by: David Leal <halfpacho@gmail.com>
* updating DIRECTORY.md
* Update searching/floyd_cycle_detection_algorithm.c
Co-authored-by: David Leal <halfpacho@gmail.com>
* Update searching/floyd_cycle_detection_algorithm.c
Co-authored-by: David Leal <halfpacho@gmail.com>
* Update searching/floyd_cycle_detection_algorithm.c
Co-authored-by: David Leal <halfpacho@gmail.com>
* minor correction
* Update searching/floyd_cycle_detection_algorithm.c
Co-authored-by: David Leal <halfpacho@gmail.com>
* Update searching/floyd_cycle_detection_algorithm.c
Co-authored-by: David Leal <halfpacho@gmail.com>
* Update searching/floyd_cycle_detection_algorithm.c
Co-authored-by: David Leal <halfpacho@gmail.com>
* Update searching/floyd_cycle_detection_algorithm.c
Co-authored-by: David Leal <halfpacho@gmail.com>
* Update searching/floyd_cycle_detection_algorithm.c
Co-authored-by: David Leal <halfpacho@gmail.com>
* Update searching/floyd_cycle_detection_algorithm.c
Co-authored-by: David Leal <halfpacho@gmail.com>
* Update floyd_cycle_detection_algorithm.c
* Update searching/floyd_cycle_detection_algorithm.c
Co-authored-by: David Leal <halfpacho@gmail.com>
* Update searching/floyd_cycle_detection_algorithm.c
Co-authored-by: Abhinn Mishra <49574460+mishraabhinn@users.noreply.github.com>
Co-authored-by: David Leal <halfpacho@gmail.com>
Co-authored-by: github-actions <${GITHUB_ACTOR}@users.noreply.github.com>
Co-authored-by: Abhinn Mishra <49574460+mishraabhinn@users.noreply.github.com>
2021-07-29 12:40:05 -05:00
Alessio Farinelli
4b65a6b6b1
feat: Exponential Search ( #818 )
...
* feat(ExponentialSearch): added C implementation of Exponential Search
* fix: typo
* refactor(ExponentialSearch): removed unused imports
* fix(Exponential Search): review fixes
* updating DIRECTORY.md
* refactor(ExponentialSearch): refactoring types
* fix(ExponentialSearch): fixes and added brief
* refactor(ExponentialSearch): added briefs
Co-authored-by: github-actions <${GITHUB_ACTOR}@users.noreply.github.com>
2021-03-25 23:58:07 +05:30
Krishna Vedala
cfca2aba51
docs+self-tests+lgtm fix
2020-07-10 23:19:24 -04:00
Krishna Vedala
ccd3f66608
fix code - major errors + add docs
2020-07-01 21:27:35 -04:00
Krishna Vedala
e75dfb8646
added iterative algorithm for binary_search
2020-06-30 14:17:12 -04:00
Krishna Vedala
3b0ff5fd7b
fixed binary_search for lgtm errors + added tests
2020-06-30 14:02:10 -04:00
github-actions
6f98288110
formatting source-code for 5bba04b671
2020-06-28 15:25:37 +00:00
Krishna Vedala
aa98625b45
find openmp declared required only once
...
added subfolders after finding openmp
2020-05-31 10:49:26 -04:00
github-actions
466ccaa407
formatting filenames 909e15d8be
2020-05-30 18:26:19 +00:00
github-actions
0779a2b70d
formatting source-code for b388e4a309
2020-05-29 20:23:24 +00:00
Krishna Vedala
b1e1923580
check if math library is available and include if present
2020-05-29 14:04:14 -04:00
Krishna Vedala
d4f202cbea
force include math library for each target
2020-05-29 13:49:28 -04:00
Krishna Vedala
1c5a699340
remove function_timer from all compilations
2020-05-29 10:47:36 -04:00
Krishna Vedala
4b07f0f6fc
use malloc and free for dynamic variables
2020-04-23 20:45:45 -04:00
Krishna Vedala
bf1c367a62
use pointer for dynamic memory allocation
2020-04-23 20:08:15 -04:00
Krishna Vedala
1b826807ed
code cleanup to prevent gcc warnings
2020-04-08 09:41:12 -04:00
Krishna Vedala
8d3d626e25
+ cmake searching folder
2020-04-07 21:25:45 -04:00
cclauss
ecb73860a3
Fix filenames for DIRECTORY.md
2020-01-09 10:27:32 +01:00
ajinkya-ch
632206fce0
added ternary search algorithm
2019-10-25 23:43:26 +05:30
Archana550
ffd7b92729
Update LinearSearch.c
2019-10-03 09:04:29 +05:30
Arpit Verma
aa3fd5d602
Update
...
Added Comments
2019-10-02 09:11:55 +05:30
shellhub
7f9d115226
fix bug
2019-08-25 21:27:44 +08:00
dang hai
95e9c97747
Modify interpolation search
2019-08-02 16:52:21 -07:00
dang hai
ace8d92e84
Remove duplicate binarys search
2019-08-02 16:29:47 -07:00
danghai
9001ae9094
Add Boyer Moore search algo and simple Makefile
2019-05-17 14:25:36 -07:00
Libin Yang
d9702591a8
Update naive_search.c
2019-05-12 09:27:51 +08:00
Libin Yang
25a225c434
Update rabin_karp_search.c
2019-05-12 09:27:21 +08:00
danghai
bb7199d706
Add Rabin-Karp search algorithm
2019-05-10 17:42:24 -07:00
danghai
495650023b
Add naive search algorithm
2019-05-10 15:07:16 -07:00
Christian Bender
e2c0a7a6e5
Duplicate
...
This algorithm is a duplicate. We already have a linear search in this repo
2019-02-12 16:17:22 +01:00
Ashwek Swamy
c6583d34d2
Merge pull request #154 from pankajc007/patch-2
...
Create binarys.c
2019-02-11 05:33:06 +05:30
Ashwek Swamy
167ab428d8
Rename Searches/binarys.c to searching/binarys.c
2019-02-11 05:32:54 +05:30
Ashwek Swamy
8282815073
Rename Searches/linears.c to searching/linears.c
2019-02-10 14:20:08 +05:30
sayoojkz
13afc89b50
Update LinearSearch.c
2018-10-30 23:21:09 +05:30
Anup Kumar Panwar
444d4b11d5
Refactor
2018-10-08 21:18:35 +05:30
Sachin Arora
a6d1297d22
Multiple folders of search and sort. Fixes issue #60 and #49 .
2017-10-24 20:38:10 +05:30
Anup Kumar Panwar
f361e8eabb
Merge branch 'master' into master
2017-10-20 22:24:26 +05:30
AnupKumarPanwar
81657fc249
Updated README.md
2017-10-20 22:03:41 +05:30
Gabriel
5a53da5e94
Fixed Linear Search
2017-10-13 23:16:21 -03:00
Gabriel
d9f536d818
Added linear search algorithm
2017-10-13 23:08:58 -03:00
KylerSmith
d192a0ab37
Modified Median.c and BinarySearch.c. Added data_structures directory with stack implementation
2017-07-15 19:44:01 -07:00
KylerSmith
f0bb982627
File clean-up
2017-07-12 17:09:15 -07:00