{"id":21076415,"url":"https://github.com/rapter1990/binary-search-example","last_synced_at":"2025-12-29T12:33:06.736Z","repository":{"id":124090318,"uuid":"260658757","full_name":"Rapter1990/Binary-Search-Example","owner":"Rapter1990","description":"Binary Search Example","archived":false,"fork":false,"pushed_at":"2020-05-02T13:18:20.000Z","size":1113,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-01-20T22:53:07.197Z","etag":null,"topics":["binarysearch","java"],"latest_commit_sha":null,"homepage":"","language":"Java","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Rapter1990.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2020-05-02T09:59:38.000Z","updated_at":"2021-03-14T22:05:37.000Z","dependencies_parsed_at":null,"dependency_job_id":"aea68322-1b8e-46d4-abc2-4827b062386e","html_url":"https://github.com/Rapter1990/Binary-Search-Example","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Rapter1990%2FBinary-Search-Example","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Rapter1990%2FBinary-Search-Example/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Rapter1990%2FBinary-Search-Example/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Rapter1990%2FBinary-Search-Example/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Rapter1990","download_url":"https://codeload.github.com/Rapter1990/Binary-Search-Example/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243521252,"owners_count":20304186,"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":["binarysearch","java"],"created_at":"2024-11-19T19:28:19.664Z","updated_at":"2025-12-29T12:33:06.685Z","avatar_url":"https://github.com/Rapter1990.png","language":"Java","readme":"\u003ch1\u003eBinary Search Example\u003c/h1\u003e\n\n\u003cul\u003e\n  \u003cli\u003eThis method is used to search the provided list for the specified object using the binary search algorithm. The list must be sorted into ascending order according to the specified natural number, prior to making the method call. If the list is not sorted, the results are undefined\u003c/li\u003e\n  \u003cli\u003eThis java example shows how to search an element of Java ArrayList using binarySearch method of Collections class. binarySearch method usesbinary search algorithm to search an element.\u003c/li\u003e\n\u003c/ul\u003e\n\n\u003ch3\u003eThe objective of Program\u003c/h3\u003e\n\u003cul\u003e\n  \u003cli\u003eThe program firstly reads a long file containing above 90000 objects and set each object into the City and implement search process in terms of name of city, substring name of city and one character.\u003c/li\u003e\n\u003c/ul\u003e\n\n\n\u003ch3\u003eFiles contaning in this repository\u003c/h3\u003e\n\u003cul\u003e\n  \u003cli\u003esrc\n    \u003cul\u003e\n      \u003cli\u003efiles\n        \u003cul\u003e\n          \u003cli\u003ecities.txt\u003c/li\u003e\n          \u003cli\u003eoutput.txt\u003c/li\u003e\n        \u003c/ul\u003e\n      \u003c/li\u003e\n      \u003cli\u003emain\n        \u003cul\u003e\n          \u003cli\u003eMain.java\u003c/li\u003e\n        \u003c/ul\u003e\n      \u003c/li\u003e\n      \u003cli\u003emodel\n        \u003cul\u003e\n          \u003cli\u003eCity.java\u003c/li\u003e\n        \u003c/ul\u003e\n      \u003c/li\u003e\n      \u003cli\u003eutil\n        \u003cul\u003e\n          \u003cli\u003eBinarySearch.java\u003c/li\u003e\n          \u003cli\u003eProcessMethod.java\u003c/li\u003e\n          \u003cli\u003eReadFile.java\u003c/li\u003e\n          \u003cli\u003eShowResult.java\u003c/li\u003e\n          \u003cli\u003eWriteFile.java\u003c/li\u003e\n        \u003c/ul\u003e\n      \u003c/li\u003e\n    \u003c/ul\u003e\n  \u003c/li\u003e\n\u003c/ul\u003e\n\n\u003ch3\u003eExplaining an inforamtion of each file\u003c/h3\u003e\n\n\u003ctable\u003e\n  \u003ctr\u003e\n    \u003cth\u003eFiles Names\u003c/th\u003e\n    \u003cth\u003eInformation\u003c/th\u003e\n  \u003c/tr\u003e\n  \u003ctr\u003e\n    \u003ctd\u003ecities.txt\u003c/td\u003e\n    \u003ctd\u003eContaning the infomation of city (its weight,its name and lastly its country)\u003c/td\u003e\n  \u003c/tr\u003e\n  \u003ctr\u003e\n    \u003ctd\u003eoutput.txt\u003c/td\u003e\n    \u003ctd\u003eShow the result of search process in terms of  name of city, substring name of city and one character with being sensitive for lowercase and uppercase\u003c/td\u003e\n  \u003c/tr\u003e\n  \u003ctr\u003e\n    \u003ctd\u003eMain.java\u003c/td\u003e\n    \u003ctd\u003eHandle with all project files to run the program\u003c/td\u003e\n  \u003c/tr\u003e\n  \u003ctr\u003e\n    \u003ctd\u003eCity.java\u003c/td\u003e\n    \u003ctd\u003eDefining it as a POJO\u003c/td\u003e\n  \u003c/tr\u003e\n  \u003ctr\u003e\n    \u003ctd\u003eBinarySearch.java\u003c/td\u003e\n    \u003ctd\u003eImplementing search algorithm for name of city, substring name of city and one character \u003c/td\u003e\n  \u003c/tr\u003e\n  \u003ctr\u003e\n    \u003ctd\u003eProcessMethod.java\u003c/td\u003e\n    \u003ctd\u003eManaging all search algorithm via defined function\u003c/td\u003e\n  \u003c/tr\u003e\n  \u003ctr\u003e\n    \u003ctd\u003eReadFile.java\u003c/td\u003e\n    \u003ctd\u003eReading cities.txt and assign each variable to City Object\u003c/td\u003e\n  \u003c/tr\u003e\n  \u003ctr\u003e\n    \u003ctd\u003eShowResult.java\u003c/td\u003e\n    \u003ctd\u003eShowing the search result\u003c/td\u003e\n  \u003c/tr\u003e\n  \u003ctr\u003e\n    \u003ctd\u003eWriteFile.java\u003c/td\u003e\n    \u003ctd\u003eWriting all the search result into the output.txt\u003c/td\u003e\n  \u003c/tr\u003e\n\u003c/table\u003e\n\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frapter1990%2Fbinary-search-example","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Frapter1990%2Fbinary-search-example","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frapter1990%2Fbinary-search-example/lists"}