Skip to content

refactor: decouple demos from searching_algorithms#865

Merged
darshan2456 merged 1 commit into
darshan2456:mainfrom
saitejasviputta:refactor-searching-algorithms-demo
Jul 16, 2026
Merged

refactor: decouple demos from searching_algorithms#865
darshan2456 merged 1 commit into
darshan2456:mainfrom
saitejasviputta:refactor-searching-algorithms-demo

Conversation

@saitejasviputta

Copy link
Copy Markdown
Contributor

Summary

This PR refactors the searching_algorithms module by moving the interactive demo implementations out of the algorithm source files into a dedicated demos/searching_algorithms/ directory.

The algorithm implementation files now contain only the search algorithm logic, while the interactive console demos are separated into their own files.

Changes Made

  • Created a new demos/searching_algorithms/ directory.
  • Moved interactive *_demo() functions from src/searching_algorithms/ into separate demo source files.
  • Updated the build system (Makefile and CMakeLists.txt) to include the new demo directory.
  • Added/updated required function declarations where necessary after separating demo code.
  • Preserved all existing functionality without changing algorithm behavior.

Testing

  • Built the project successfully using make.
  • Verified the application launches correctly using make run.

Closes #860

@darshan2456
darshan2456 merged commit bc71a11 into darshan2456:main Jul 16, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

decouple core functions from demo functions in searching_algorithms module

2 participants