C icon indicating copy to clipboard operation
C copied to clipboard

feat(searching): add exponential_search2 with self-tests

Open hobostay opened this issue 1 year ago • 2 comments

#- What: Add searching/exponential_search2.c as an alternative exponential search implementation with Doxygen header and assert-based self-tests.

  • Why: Complement existing exponential_search.c with clear range expansion and bounded binary search; verifies edge cases.
  • Tests: Includes assert tests for present/absent values, boundaries, and empty input.
  • Build: Picked up by searching/CMakeLists.txt via glob; C11 compliant; no external deps.

hobostay avatar Oct 26 '25 12:10 hobostay

  • Complexity: Time O(log n) via exponential range expansion + binary search; Space O(1) .
  • Edge cases: empty array, out-of-range targets, boundaries covered by asserts.

hobostay avatar Oct 26 '25 12:10 hobostay

This pull request has been automatically marked as abandoned because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

github-actions[bot] avatar Nov 26 '25 02:11 github-actions[bot]

Please ping one of the maintainers once you commit the changes requested or make improvements on the code. If this is not the case and you need some help, feel free to ask for help in our Gitter channel or our Discord server. Thank you for your contributions!

github-actions[bot] avatar Dec 03 '25 02:12 github-actions[bot]