<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: Nicko Cruz M</title>
    <description>The latest articles on DEV Community by Nicko Cruz M (@nickocruzm).</description>
    <link>https://dev.to/nickocruzm</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F1538895%2F2b81718b-b3ba-45f2-b408-39f161c4c711.jpeg</url>
      <title>DEV Community: Nicko Cruz M</title>
      <link>https://dev.to/nickocruzm</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/nickocruzm"/>
    <language>en</language>
    <item>
      <title>Breadth-First Search</title>
      <dc:creator>Nicko Cruz M</dc:creator>
      <pubDate>Fri, 21 Jun 2024 02:29:52 +0000</pubDate>
      <link>https://dev.to/nickocruzm/breadth-first-search-178c</link>
      <guid>https://dev.to/nickocruzm/breadth-first-search-178c</guid>
      <description>&lt;p&gt;&lt;em&gt;This is a submission for &lt;a href="https://dev.to/challenges/cs"&gt;DEV Computer Science Challenge v24.06.12: One Byte Explainer&lt;/a&gt;.&lt;/em&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  Explainer
&lt;/h2&gt;

&lt;p&gt;I want to find something in my strange house, that has n-floors. I must check all the rooms on the curr floor if I find it then I'm done. If I don't find it in any of the rooms on that floor then, AND ONLY THEN, will I go down to the next floor. &lt;/p&gt;

&lt;h2&gt;
  
  
  Additional Context
&lt;/h2&gt;

&lt;p&gt;This is my attempt to explain BFS using the &lt;code&gt;strange house&lt;/code&gt; that is (n) stories tall to act as a representation of the tree data structure. The given example is meant to emphasize the BREADTH in breadth-first search.&lt;/p&gt;

&lt;p&gt;When studying algorithms in college it is obvious, in hindsight, the differences between DFS and BFS. However, during undergraduate studies, it is easy for the obvious to become obscured.&lt;/p&gt;

&lt;p&gt;With this in mind, I wanted to focus on what makes the Breadth-first approach different from other approaches, which is the fact that this algorithm searches all nodes at the current depth, before traversing nodes at a deeper levels.&lt;/p&gt;

</description>
      <category>devchallenge</category>
      <category>cschallenge</category>
      <category>computerscience</category>
      <category>beginners</category>
    </item>
  </channel>
</rss>
