{"id":24086074,"url":"https://github.com/guanshiyin28/sequential-search-and-binary-search","last_synced_at":"2025-02-27T03:26:27.127Z","repository":{"id":270458591,"uuid":"910444585","full_name":"guanshiyin28/Sequential-Search-and-Binary-Search","owner":"guanshiyin28","description":"Sequential Search and Binary Search (Python)","archived":false,"fork":false,"pushed_at":"2025-01-25T19:10:15.000Z","size":24,"stargazers_count":6,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-01-25T19:23:16.372Z","etag":null,"topics":["binary-search","binary-search-algorithm","python","python3","sequential-search","sequential-search-algorithm"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/guanshiyin28.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING.md","funding":".github/FUNDING.yml","license":"LICENSE","code_of_conduct":"CODE_OF_CONDUCT.md","threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":"SECURITY.md","support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null},"funding":{"github":["guanshiyin28"],"patreon":null,"open_collective":null,"ko_fi":null,"tidelift":null,"community_bridge":null,"liberapay":null,"issuehunt":null,"lfx_crowdfunding":null,"polar":null,"buy_me_a_coffee":null,"thanks_dev":null,"custom":null}},"created_at":"2024-12-31T09:39:51.000Z","updated_at":"2025-01-25T19:10:18.000Z","dependencies_parsed_at":null,"dependency_job_id":"68497924-b482-4ff5-bd77-a8d404da9609","html_url":"https://github.com/guanshiyin28/Sequential-Search-and-Binary-Search","commit_stats":null,"previous_names":["guanshiyin28/sequential-search-and-binary-search"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/guanshiyin28%2FSequential-Search-and-Binary-Search","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/guanshiyin28%2FSequential-Search-and-Binary-Search/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/guanshiyin28%2FSequential-Search-and-Binary-Search/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/guanshiyin28%2FSequential-Search-and-Binary-Search/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/guanshiyin28","download_url":"https://codeload.github.com/guanshiyin28/Sequential-Search-and-Binary-Search/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":240972013,"owners_count":19886864,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["binary-search","binary-search-algorithm","python","python3","sequential-search","sequential-search-algorithm"],"created_at":"2025-01-10T01:56:15.076Z","updated_at":"2025-02-27T03:26:27.115Z","avatar_url":"https://github.com/guanshiyin28.png","language":"Python","funding_links":["https://github.com/sponsors/guanshiyin28"],"categories":[],"sub_categories":[],"readme":"# Sequential Search and Binary Search\n\nThis repository aims to provide a comprehensive starting point for understanding and implementing two fundamental search algorithms: Sequential Search and Binary Search. These search algorithms are implemented in Python and serve as a great introduction to search techniques for beginners and intermediate programmers.\n\n\u003chr\u003e\u003cbr\u003e\n\n## Purpose of This Repository\n\nThe purpose of this repository is to help users understand and implement two basic search algorithms in Python. It includes detailed explanations, code examples, and usage instructions for both Sequential Search and Binary Search.\n\n\u003chr\u003e\u003cbr\u003e\n\n## Demonstration\n\nHere is a quick demo of how the search algorithms work:\n\n```python\n# Sequential Search Example\ndef sequential_search(arr, target):\n    for i in range(len(arr)):\n        if arr[i] == target:\n            return i\n    return -1\n\n# Binary Search Example\ndef binary_search(arr, target):\n    low = 0\n    high = len(arr) - 1\n    while low \u003c= high:\n        mid = (low + high) // 2\n        if arr[mid] == target:\n            return mid\n        elif arr[mid] \u003c target:\n            low = mid + 1\n        else:\n            high = mid - 1\n    return -1\n```\n\n\u003chr\u003e\u003cbr\u003e\n\n## Features\n\n- Implementation of Sequential Search in Python\n- Implementation of Binary Search in Python\n- Example usage of both search algorithms\n- Detailed comments and explanations\n\n\u003chr\u003e\u003cbr\u003e\n\n## Technologies Used\n\n- Python\n\n\u003chr\u003e\u003cbr\u003e\n\n## Project Setup\n\nTo set up the project locally, follow these steps:\n\n1. **Clone the repository:**\n   ```bash\n   git clone https://github.com/guanshiyin28/Sequential-Search-and-Binary-Search.git\n   ```\n2. **Navigate to the project directory:**\n   ```bash\n   cd Sequential-Search-and-Binary-Search\n   ```\n\n\u003chr\u003e\u003cbr\u003e\n\n## Steps to Run\n\nTo run the Python scripts, use the following commands:\n\n1. **Run the Sequential Search script:**\n   ```bash\n   python program_v2.py\n   ```\n2. **Run the Binary Search script:**\n   ```bash\n   python program.py\n   ```\n\n\u003chr\u003e\u003cbr\u003e\n\n## License\n\nThis project is licensed under the Apache-2.0 License. See the [LICENSE](LICENSE) file for details.\n\n\u003chr\u003e\u003cbr\u003e\n\n\u003cdiv align=\"center\"\u003e\n   \u003ca href=\"https://www.instagram.com/guanshiyin_/\"\u003e\n      \u003cimg src=\"https://capsule-render.vercel.app/api?type=waving\u0026height=200\u0026color=100:393E46,20:F7F7F7\u0026section=footer\u0026reversal=false\u0026textBg=false\u0026fontAlignY=50\u0026descAlign=48\u0026descAlignY=59\"/\u003e\n   \u003c/a\u003e\n\u003c/div\u003e\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fguanshiyin28%2Fsequential-search-and-binary-search","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fguanshiyin28%2Fsequential-search-and-binary-search","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fguanshiyin28%2Fsequential-search-and-binary-search/lists"}