<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[Java 2D BinarySearch]]></title><description><![CDATA[Java 2D BinarySearch]]></description><link>https://2d-binary-search.hashnode.dev</link><generator>RSS for Node</generator><lastBuildDate>Wed, 23 Sep 2026 09:43:30 GMT</lastBuildDate><atom:link href="https://2d-binary-search.hashnode.dev/rss.xml" rel="self" type="application/rss+xml"/><language><![CDATA[en]]></language><ttl>60</ttl><item><title><![CDATA[Week-1]]></title><description><![CDATA[What I have Learned in this week

Binary Search

Bubble Sort

Java Script - variables , conditionals , loops,


Why binary Search is Useful ?
Binary Search takes less time than linear Search to find the Target
How Binary Search is performed ?

start
...]]></description><link>https://2d-binary-search.hashnode.dev/week-1</link><guid isPermaLink="true">https://2d-binary-search.hashnode.dev/week-1</guid><category><![CDATA[Web Development]]></category><category><![CDATA[JavaScript]]></category><category><![CDATA[Java]]></category><category><![CDATA[data structures]]></category><dc:creator><![CDATA[Berjin Sujith]]></dc:creator><pubDate>Tue, 15 Jul 2025 02:42:14 GMT</pubDate><content:encoded><![CDATA[<h1 id="heading-what-i-have-learned-in-this-week">What I have Learned in this week</h1>
<ul>
<li><p>Binary Search</p>
</li>
<li><p>Bubble Sort</p>
</li>
<li><p>Java Script - variables , conditionals , loops,</p>
</li>
</ul>
<h1 id="heading-why-binary-search-is-useful">Why binary Search is Useful ?</h1>
<p>Binary Search takes less time than linear Search to find the Target</p>
<h3 id="heading-how-binary-search-is-performed">How Binary Search is performed ?</h3>
<ol>
<li><p>start</p>
</li>
<li><p>end</p>
</li>
<li><p>while( condition )</p>
</li>
<li><p>mid</p>
</li>
<li><p>if(condition)</p>
<p> start = mid + 1;</p>
</li>
<li><p>else if(condition)</p>
<p> end = mid - 1;</p>
</li>
<li><p>else</p>
<p> return ans;</p>
</li>
</ol>
<h1 id="heading-why-bubble-sort-is-useful">Why Bubble Sort is Useful ?</h1>
<p>Bubble sort is used to sort an array step by step in ascending or descending order</p>
<h3 id="heading-how-bubble-sort-will-be-performed">How Bubble Sort Will Be Performed ?</h3>
<ol>
<li><p>The outer loop should run n-1 times</p>
</li>
<li><p>The inner loop should start from 1 and run n-1-i times</p>
</li>
<li><p>j want to check with j-1 if j-1 is smaller than j then swap j → j-1 , j ← j-1</p>
</li>
</ol>
<h1 id="heading-difficulties-i-gone-through">Difficulties I Gone Through…</h1>
<h3 id="heading-i-understand-the-concept-easily-but-when-i-try-to-code-i-stuck-in-some-places-like">I Understand the concept easily But when I try to code i stuck in some places like</h3>
<ul>
<li><p>At Beginning I would give my looping condition Wrongly</p>
</li>
<li><p>I fail Every time to think the correct logic to get right output</p>
</li>
<li><p>Sometimes my values go above the index bound</p>
</li>
</ul>
<h1 id="heading-how-i-overcame-from-this">How I Overcame From This</h1>
<ul>
<li><p>I watch the tutorial again and again until I get my answer from his coding</p>
</li>
<li><p>Then I used Chat Gpt to debug the code I have written and ask it to explain me by that also I learned Something</p>
</li>
</ul>
<h1 id="heading-tools-i-used">Tools I used</h1>
<ul>
<li><p>You Tube</p>
</li>
<li><p>Chat Gpt</p>
</li>
<li><p>Qwen</p>
</li>
</ul>
<h1 id="heading-references">References</h1>
<h3 id="heading-for-java-dsa">For Java DSA</h3>
<ul>
<li>You Tube Kunal Kushwaha video</li>
</ul>
<p><a target="_blank" href="https://youtu.be/F5MZyqRp_IM?si=4E9p5-uxBuJDcDJy">Bubble Sort</a></p>
<p><a target="_blank" href="https://youtu.be/f6UU7V3szVw?si=vXopdldFltDMnLq6">Binary Search</a></p>
<h3 id="heading-for-java-script">For Java-Script</h3>
<ul>
<li><p>You Tube</p>
<p>  Error Makes Clever</p>
<p>  Code io</p>
</li>
</ul>
]]></content:encoded></item></channel></rss>