<?xml version="1.0" encoding="utf-8"?><feed xmlns="http://www.w3.org/2005/Atom" ><generator uri="https://jekyllrb.com/" version="3.10.0">Jekyll</generator><link href="https://tasija.com/feed.xml" rel="self" type="application/atom+xml" /><link href="https://tasija.com/" rel="alternate" type="text/html" /><updated>2026-07-08T00:19:24+02:00</updated><id>https://tasija.com/feed.xml</id><title type="html">Anastasija Tortevska</title><subtitle>MS CS at ETH Zürich, specializing in theory.</subtitle><author><name>Anastasija Tortevska</name></author><entry><title type="html">The triangle count on this page is real</title><link href="https://tasija.com/blog/triangles-on-this-page/" rel="alternate" type="text/html" title="The triangle count on this page is real" /><published>2026-07-07T00:00:00+02:00</published><updated>2026-07-07T00:00:00+02:00</updated><id>https://tasija.com/blog/triangles-on-this-page</id><content type="html" xml:base="https://tasija.com/blog/triangles-on-this-page/"><![CDATA[<p>The background of this site is a random graph, rebuilt every time you load the page or resize the window: nodes are scattered around the hero text, and each one connects to a few of its nearest neighbors. The <code class="language-plaintext highlighter-rouge">▲ = n</code> in the corner isn’t decoration, it’s the number of triangles in whatever graph you happened to get.</p>

<p>Counting them is the classic warm-up: for each vertex \(i\), look at pairs of its neighbors and check whether they’re adjacent. With adjacency sets that’s \(O\!\left(\sum_i d_i^2\right)\), which is fine at this size. The linear-algebra version is prettier: if \(A\) is the adjacency matrix, then</p>

\[t = \frac{\operatorname{tr}(A^3)}{6}\]

<p>since each closed walk of length 3 traverses a triangle, and each triangle is counted once per vertex and once per direction.</p>

<p>I’m planning to use this space to write about things I’m reading and thinking about, mostly algorithms and complexity, occasionally not. If a post exists, it’s because I wanted to work something out by explaining it.</p>]]></content><author><name>Anastasija Tortevska</name></author><summary type="html"><![CDATA[The background of this site is a random graph, rebuilt every time you load the page or resize the window: nodes are scattered around the hero text, and each one connects to a few of its nearest neighbors. The ▲ = n in the corner isn’t decoration, it’s the number of triangles in whatever graph you happened to get.]]></summary></entry></feed>