WikiJournal of Science/Binary search algorithm/XML

From Wikiversity
Jump to navigation Jump to search
<?xml version="1.0" encoding="UTF-8"?>
<doi_batch version="4.4.0" xmlns="http://www.crossref.org/schema/4.4.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.crossref.org/schema/4.4.0 http://www.crossref.org/schema/deposit/crossref4.4.0.xsd">
 <head>
  <depositor>
   <depositor_name>wkjm</depositor_name> 
   <email_address><span class="nowrap">Contact[[File:At sign.svg|alt=At sign|15px|@|link=]]WikiJSci.org</span></email_address>
  </depositor>
  <registrant>WEB-FORM</registrant>
 </head>
 <body>
  <journal>
   <journal_metadata>
    <full_title>WikiJournal of Science/Binary search algorithm</full_title>
    <abbrev_title>Wiki.J.Sci.</abbrev_title>
    <issn media_type='electronic'>2002-4436 / 2470-6345 / 2639-5347</issn>
    <doi_data>
     <doi>10.15347/WJS</doi>
     <resource>http://www.WikiJSci.org/</resource>
    </doi_data>
   </journal_metadata> 
   <journal_issue>  
    <publication_date media_type='online'>     
     <year>2019</year>  
    </publication_date>   
    <journal_volume>     
     <volume></volume>
    </journal_volume>   
    <issue></issue>
   </journal_issue>
   <journal_article publication_type='full_text'>   
    <titles>     
     <title>Binary search algorithm</title>
    </titles>   
    <contributors>
    <person_name sequence='first' contributor_role='author'>
     <surname></surname>
    </person_name><person_name sequence='additional' contributor_role='contributors'>
     <surname>et al.</surname><affiliation>Wikipedia editors of Binary_search_algorithm</affiliation><link>https://xtools.wmflabs.org/articleinfo/en.wikipedia.org/Binary_search_algorithm//2019-07-02</link>
    </person_name>  
    </contributors> 
    <publication_date media_type='online'>     
     <year>2019</year>
    </publication_date>   
    <doi_data>     
     <doi>10.15347/wjs/2019.005</doi>     
     <resource>https://en.wikiversity.org/wiki/WikiJournal of Science/Binary search algorithm</resource>
    </doi_data>
   </journal_article>
  </journal>
  <article>
   <permissions>
    <license license-type="open-access">
     <license-p>[[File:Open_Access_logo_PLoS_white.svg|11px|link=Wikipedia:Open Access]] [[File:Cc.logo.circle.svg|16px|link=Wikipedia:Creative Commons]]
This is an open access article distributed under the&nbsp;[http://creativecommons.org/licenses/by-sa/3.0/ Creative Commons Attribution ShareAlike License], which permits unrestricted use, distribution, and reproduction, provided the original author and source are credited.</license-p>
    </license>
   </permissions>
   <abstract>
    </p>
In computer science, binary search, also known as half-interval search,   logarithmic search,   or binary chop,   is a search algorithm that finds a position of a target value within a sorted array.   Binary search compares the target value to an element in the middle of the array. If they are not equal, the half in which the target cannot lie is eliminated and the search continues on the remaining half, again taking the middle element to compare to the target value, and repeating this until the target value is found. If the search ends with the remaining half being empty, the target is not in the array.  Binary search runs in logarithmic time in the worst case, making    comparisons, where    is the number of elements in the array, the    is Big O notation, and    is the logarithm.   Binary search is faster than linear search except for small arrays. However, the array must be sorted first to be able to apply binary search. There are specialized data structures designed for fast searching, such as hash tables, that can be searched more efficiently than binary search. However, binary search can be used to solve a wider range of problems, such as finding the next-smallest or next-largest element in the array relative to the target even if it is absent from the array.  There are numerous variations of binary search. In particular, fractional cascading speeds up binary searches for the same value in multiple arrays. Fractional cascading efficiently solves a number of search problems in computational geometry and in numerous other fields. Exponential search extends binary search to unbounded lists. The binary search tree and B-tree data structures are based on binary search.
    </p>
   </abstract>
  </article>
 </body>
</doi_batch>
  1. Willams, Jr., Louis F. (22 April 1976). A modification to the half-interval search (binary search) method. Proceedings of the 14th ACM Southeast Conference. ACM. pp. 95–101. doi:10.1145/503561.503582. Retrieved 29 June 2018.
  2. Knuth 1998, §6.2.1 ("Searching an ordered table"), subsection "Binary search".
  3. Butterfield & Ngondi 2016, p. 46.
  4. Cormen et al. 2009, p. 39.
  5. Flores, Ivan; Madpis, George (1 September 1971). "Average binary search length for dense ordered lists". Communications of the ACM 14 (9): 602–603. doi:10.1145/362663.362752. ISSN 0001-0782. https://dl.acm.org/citation.cfm?doid=362663.362752. Retrieved 29 June 2018.