<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://wiki.omnivision.website/index.php?action=history&amp;feed=atom&amp;title=4.2.2.2_Binary_Search</id>
	<title>4.2.2.2 Binary Search - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://wiki.omnivision.website/index.php?action=history&amp;feed=atom&amp;title=4.2.2.2_Binary_Search"/>
	<link rel="alternate" type="text/html" href="https://wiki.omnivision.website/index.php?title=4.2.2.2_Binary_Search&amp;action=history"/>
	<updated>2026-05-23T00:37:18Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.43.8</generator>
	<entry>
		<id>https://wiki.omnivision.website/index.php?title=4.2.2.2_Binary_Search&amp;diff=432&amp;oldid=prev</id>
		<title>Mr. Goldstein: Created page with &quot;=== 4.2.2.2 Binary Search === &#039;&#039;(Difficulty Note: This is slightly more complex than Linear Search, as it requires sorted data.)&#039;&#039;  &#039;&#039;&#039;Binary Search&#039;&#039;&#039; is a much faster way to find something, but it has a special rule: the list of items &#039;&#039;&#039;must be sorted&#039;&#039;&#039; (like numbers from smallest to largest, or words alphabetically). It works by repeatedly dividing the list in half.  &#039;&#039;&#039;How it works:&#039;&#039;&#039;  # Find the middle item in the sorted list. # Is the middle item the one you&#039;re...&quot;</title>
		<link rel="alternate" type="text/html" href="https://wiki.omnivision.website/index.php?title=4.2.2.2_Binary_Search&amp;diff=432&amp;oldid=prev"/>
		<updated>2025-07-11T22:12:14Z</updated>

		<summary type="html">&lt;p&gt;Created page with &amp;quot;=== 4.2.2.2 Binary Search === &amp;#039;&amp;#039;(Difficulty Note: This is slightly more complex than Linear Search, as it requires sorted data.)&amp;#039;&amp;#039;  &amp;#039;&amp;#039;&amp;#039;Binary Search&amp;#039;&amp;#039;&amp;#039; is a much faster way to find something, but it has a special rule: the list of items &amp;#039;&amp;#039;&amp;#039;must be sorted&amp;#039;&amp;#039;&amp;#039; (like numbers from smallest to largest, or words alphabetically). It works by repeatedly dividing the list in half.  &amp;#039;&amp;#039;&amp;#039;How it works:&amp;#039;&amp;#039;&amp;#039;  # Find the middle item in the sorted list. # Is the middle item the one you&amp;#039;re...&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;=== 4.2.2.2 Binary Search ===&lt;br /&gt;
&amp;#039;&amp;#039;(Difficulty Note: This is slightly more complex than Linear Search, as it requires sorted data.)&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;Binary Search&amp;#039;&amp;#039;&amp;#039; is a much faster way to find something, but it has a special rule: the list of items &amp;#039;&amp;#039;&amp;#039;must be sorted&amp;#039;&amp;#039;&amp;#039; (like numbers from smallest to largest, or words alphabetically). It works by repeatedly dividing the list in half.&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;How it works:&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
# Find the middle item in the sorted list.&lt;br /&gt;
# Is the middle item the one you&amp;#039;re looking for?&lt;br /&gt;
#* If Yes, you found it! Stop.&lt;br /&gt;
#* If your item is &amp;#039;&amp;#039;smaller&amp;#039;&amp;#039; than the middle item, you know your item &amp;#039;&amp;#039;must be in the first half&amp;#039;&amp;#039; of the list. Get rid of the second half.&lt;br /&gt;
#* If your item is &amp;#039;&amp;#039;larger&amp;#039;&amp;#039; than the middle item, you know your item &amp;#039;&amp;#039;must be in the second half&amp;#039;&amp;#039; of the list. Get rid of the first half.&lt;br /&gt;
# Now you have a much smaller list. Repeat steps 1 and 2 with the new, smaller list until you find your item or the list becomes empty (meaning your item isn&amp;#039;t there).&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;Example:&amp;#039;&amp;#039;&amp;#039; Imagine finding a word in a dictionary. You don&amp;#039;t start at &amp;#039;A&amp;#039; and read every word. You open to the middle. If your word is earlier, you go to the middle of the &amp;#039;&amp;#039;first half&amp;#039;&amp;#039;, and so on.&lt;br /&gt;
&lt;br /&gt;
Let&amp;#039;s find &amp;lt;code&amp;gt;23&amp;lt;/code&amp;gt; in the sorted list: &amp;lt;code&amp;gt;[5, 9, 12, 16, 23, 30, 41, 50]&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* Middle is &amp;lt;code&amp;gt;16&amp;lt;/code&amp;gt;. &amp;lt;code&amp;gt;23&amp;lt;/code&amp;gt; is &amp;#039;&amp;#039;larger&amp;#039;&amp;#039; than &amp;lt;code&amp;gt;16&amp;lt;/code&amp;gt;. New list: &amp;lt;code&amp;gt;[23, 30, 41, 50]&amp;lt;/code&amp;gt;&lt;br /&gt;
* Middle of new list is &amp;lt;code&amp;gt;30&amp;lt;/code&amp;gt;. &amp;lt;code&amp;gt;23&amp;lt;/code&amp;gt; is &amp;#039;&amp;#039;smaller&amp;#039;&amp;#039; than &amp;lt;code&amp;gt;30&amp;lt;/code&amp;gt;. New list: &amp;lt;code&amp;gt;[23]&amp;lt;/code&amp;gt;&lt;br /&gt;
* Middle of new list is &amp;lt;code&amp;gt;23&amp;lt;/code&amp;gt;. (Yes!) – You found it!&lt;br /&gt;
&lt;br /&gt;
Binary search is incredibly fast for large, sorted lists, like how search engines quickly find information in their vast sorted databases.&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;Bibliography:&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
* &amp;#039;&amp;#039;&amp;#039;Binary Search.&amp;#039;&amp;#039;&amp;#039; (n.d.). &amp;#039;&amp;#039;GeeksforGeeks&amp;#039;&amp;#039;. Retrieved July 11, 2025, from https://www.geeksforgeeks.org/binary-search/&lt;br /&gt;
* &amp;#039;&amp;#039;&amp;#039;What is Binary Search?&amp;#039;&amp;#039;&amp;#039; (n.d.). &amp;#039;&amp;#039;Programiz&amp;#039;&amp;#039;. Retrieved July 11, 2025, from https://www.programiz.com/dsa/binary-search&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;Further Reading:&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
* &amp;#039;&amp;#039;&amp;#039;Binary Search - A collection of 14 posts.&amp;#039;&amp;#039;&amp;#039; (n.d.). &amp;#039;&amp;#039;freeCodeCamp.org&amp;#039;&amp;#039;. Retrieved from https://www.freecodecamp.org/news/tag/binary-search/&lt;/div&gt;</summary>
		<author><name>Mr. Goldstein</name></author>
	</entry>
</feed>