<?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 Unnamed Website</title><link>https://unnamed.website/tags/data-structures/</link><description>Recent content in Data-Structures on Unnamed Website</description><generator>Hugo</generator><language>en-us</language><managingEditor>Anthony Wang</managingEditor><webMaster>Anthony Wang</webMaster><lastBuildDate>Sat, 15 Mar 2025 21:30:06 -0400</lastBuildDate><atom:link href="https://unnamed.website/tags/data-structures/index.xml" rel="self" type="application/rss+xml"/><item><title>Formally Verifying Fenwick Trees</title><link>https://unnamed.website/posts/formally-verifying-fenwick-trees/</link><pubDate>Sat, 15 Mar 2025 21:30:06 -0400</pubDate><author>Anthony Wang</author><guid>https://unnamed.website/posts/formally-verifying-fenwick-trees/</guid><description>&lt;style&gt;
.chardiv {
	float: left;
	width: 100px;
}
.charimg {
	height: 60px;
}
blockquote {
	min-height: 60px;
}
&lt;/style&gt;
&lt;div class="chardiv"&gt;
	&lt;img src="https://unnamed.website/img/char/kublai.png" class="charimg"&gt;
&lt;/div&gt;
&lt;blockquote&gt;&lt;strong&gt;Kublai&lt;/strong&gt;:
Hey, it&amp;rsquo;s you again! That formal verification thing you mentioned last time sucks!&lt;/blockquote&gt;

&lt;p&gt;Huh? You mean our &lt;a href="https://unnamed.website/posts/i-can-prove-it-can-sort/"&gt;proof of the ICan&amp;rsquo;tBelieveItCanSort algorithm&lt;/a&gt;?&lt;/p&gt;
&lt;style&gt;
.chardiv {
	float: left;
	width: 100px;
}
.charimg {
	height: 60px;
}
blockquote {
	min-height: 60px;
}
&lt;/style&gt;
&lt;div class="chardiv"&gt;
	&lt;img src="https://unnamed.website/img/char/kublai.png" class="charimg"&gt;
&lt;/div&gt;
&lt;blockquote&gt;&lt;strong&gt;Kublai&lt;/strong&gt;:
Yeah! ICan&amp;rsquo;tBelieveItCanSort? More like ICanBelieveItObviouslyCanSort! After watching that visualization a few times, it intuitively makes so much sense. It&amp;rsquo;s trivial.&lt;/blockquote&gt;

&lt;p&gt;Trivial? I&amp;rsquo;m banning that word. If you consider something to be trivial, you probably haven&amp;rsquo;t pondered it deeply enough.&lt;/p&gt;</description></item><item><title>Fenwick Trees are Awesome!</title><link>https://unnamed.website/posts/fenwick-trees-awesome/</link><pubDate>Tue, 14 Jan 2025 20:53:04 -0500</pubDate><author>Anthony Wang</author><guid>https://unnamed.website/posts/fenwick-trees-awesome/</guid><description>&lt;link rel="stylesheet" href="https://unnamed.website/katex/katex.min.css" crossorigin="anonymous"&gt;
&lt;script defer src="https://unnamed.website/katex/katex.min.js" crossorigin="anonymous"&gt;&lt;/script&gt;
&lt;script defer src="https://unnamed.website/katex/contrib/auto-render.min.js" crossorigin="anonymous" onload="renderMathInElement(document.body, {delimiters: [{left: '$', right: '$', display: false}, {left: '\\(', right: '\\)', display: false}, {left: '\\[', right: '\\]', display: true}, {left: '\\begin{equation}', right: '\\end{equation}', display: true}, {left: '\\begin{equation*}', right: '\\end{equation*}', display: true}, {left: '\\begin{align}', right: '\\end{align}', display: true}, {left: '\\begin{align*}', right: '\\end{align*}', display: true}]});"&gt;&lt;/script&gt;

&lt;p&gt;&lt;em&gt;This post will only use one-based indexing since that&amp;rsquo;s what Fenwick trees traditionally use, although they can also be modified to use zero-based indexing.&lt;/em&gt;&lt;/p&gt;
&lt;p&gt;So imagine you have an array $A$ of size $N$, and you&amp;rsquo;d like to support two operations. The first one, called $Update(i, v)$, is trivial: Given an index $i$, add $v$ to $A_i$. Easy peasy!&lt;/p&gt;</description></item></channel></rss>