<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Data-Structures on Java &amp; Software Architecture Knowledge Hub</title><link>https://samirsahoo.github.io/design-patterns-hub/tags/data-structures/</link><description>Recent content in Data-Structures on Java &amp; Software Architecture Knowledge Hub</description><generator>Hugo</generator><language>en-US</language><copyright>© 2026 Samir Kumar Sahoo (https://github.com/samirsahoo). All rights reserved.</copyright><atom:link href="https://samirsahoo.github.io/design-patterns-hub/tags/data-structures/index.xml" rel="self" type="application/rss+xml"/><item><title>The Java Collections Framework: Internal Architecture</title><link>https://samirsahoo.github.io/design-patterns-hub/java/fundamentals/collections-framework/</link><pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate><guid>https://samirsahoo.github.io/design-patterns-hub/java/fundamentals/collections-framework/</guid><description>&lt;h2 id="simple-definition"&gt;Simple definition&lt;a class="heading-anchor" href="#simple-definition" aria-label="Link to this section"&gt;#&lt;/a&gt;&lt;/h2&gt;&#10;&lt;p&gt;The &lt;strong&gt;Java Collections Framework (JCF)&lt;/strong&gt; is a set of &lt;strong&gt;interfaces&lt;/strong&gt; (&lt;code&gt;List&lt;/code&gt;, &lt;code&gt;Set&lt;/code&gt;, &lt;code&gt;Map&lt;/code&gt;, &lt;code&gt;Queue&lt;/code&gt;, &lt;code&gt;Deque&lt;/code&gt;), &lt;strong&gt;implementations&lt;/strong&gt; (&lt;code&gt;ArrayList&lt;/code&gt;, &lt;code&gt;HashMap&lt;/code&gt;, &lt;code&gt;TreeMap&lt;/code&gt; and others) and &lt;strong&gt;algorithms&lt;/strong&gt; (&lt;code&gt;Collections.sort&lt;/code&gt;, &lt;code&gt;binarySearch&lt;/code&gt;) for storing and processing groups of objects.&lt;/p&gt;&#10;&lt;h2 id="the-problem"&gt;The problem&lt;a class="heading-anchor" href="#the-problem" aria-label="Link to this section"&gt;#&lt;/a&gt;&lt;/h2&gt;&#10;&lt;p&gt;Choosing the wrong collection is one of the most common hidden performance bugs: &lt;code&gt;contains&lt;/code&gt; on a large &lt;code&gt;ArrayList&lt;/code&gt; is O(n), and &lt;code&gt;LinkedList.get(i)&lt;/code&gt; walks the list. Mutable keys break &lt;code&gt;HashMap&lt;/code&gt;. Knowing the internals tells you the costs.&lt;/p&gt;</description></item><item><title>Probabilistic Data Structures: Bloom Filters, HyperLogLog and Count-Min Sketch</title><link>https://samirsahoo.github.io/design-patterns-hub/system-design/building-blocks/probabilistic-data-structures/</link><pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate><guid>https://samirsahoo.github.io/design-patterns-hub/system-design/building-blocks/probabilistic-data-structures/</guid><description>&lt;h2 id="simple-definition"&gt;Simple definition&lt;a class="heading-anchor" href="#simple-definition" aria-label="Link to this section"&gt;#&lt;/a&gt;&lt;/h2&gt;&#10;&lt;p&gt;&lt;strong&gt;Probabilistic data structures&lt;/strong&gt; answer questions about very large data sets using a small, fixed amount of memory, in exchange for a small, &lt;strong&gt;quantifiable error&lt;/strong&gt;. Exact answers would need memory proportional to the data; these need kilobytes or megabytes regardless of size.&lt;/p&gt;</description></item></channel></rss>