Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Create sequentialsearch.py #4

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Conversation

Copy link
Contributor

@Nitin-Pilkhwal Nitin-Pilkhwal commented Mar 7, 2023

This pull request adds a new module named indexsequentialsearch to the searches directory. The module contains an implementation of an index sequential search algorithm for searching a value in an array.

The implementation has been added to the indexsequentialsearch.py file, which contains a single function index_sequential_search() that performs the search operation. The function takes an array, a value to search for, and a jump value as input, and returns the index of the first occurrence of the value in the array, or -1 if not found.

Reason for the change:

Currently, the searches directory does not have an implementation of an index sequential search algorithm. This pull request aims to add the missing functionality to the directory, providing users with another search algorithm option to choose from.

Testing
Tested the code locally and verified that the new module function works correctly.

@Shikha-code36 Shikha-code36 merged commit 6564f8b into Shikha-code36:main Mar 19, 2023
Copy link
Owner

Hi Nitin, thankyou for contributing. I am merging it and will soon release this feature.

Nitin-Pilkhwal reacted with heart emoji

@Nitin-Pilkhwal Nitin-Pilkhwal deleted the feature/add-sequential-search-algorithm branch March 23, 2023 13:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Reviewers
No reviews
Assignees
No one assigned
Labels
None yet
Projects
None yet
Milestone
No milestone
Development

Successfully merging this pull request may close these issues.

AltStyle によって変換されたページ (->オリジナル) /