<?xml version="1.0" encoding="UTF-8" ?> <?xml-stylesheet type="text/xsl" href="rss.xsl"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/"> <channel> <title>Algorithms for Competitive Programming</title><description>The goal of this project is to translate the wonderful resource http://e-maxx.ru/algo which provides descriptions of many algorithms and data structures especially popular in field of competitive programming. Moreover we want to improve the collected knowledge by extending the articles and adding new articles to the collection.</description><link>https://cp-algorithms.com/</link><atom:link href="https://cp-algorithms.com/feed_rss_created.xml" rel="self" type="application/rss+xml" /> <docs>https://github.com/cp-algorithms/cp-algorithms</docs><language>en</language> <pubDate>Wed, 15 Apr 2026 12:37:11 -0000</pubDate> <lastBuildDate>Wed, 15 Apr 2026 12:37:11 -0000</lastBuildDate> <ttl>1440</ttl> <generator>MkDocs RSS plugin - v1.18.1</generator> <image> <url>None</url> <title>Algorithms for Competitive Programming</title> <link>https://cp-algorithms.com/</link> </image> <item> <title>Centroid decomposition</title> <description>&lt;h1&gt;Centroid Decomposition&lt;/h1&gt; &lt;p&gt;Prerequisite knowledge: &lt;a href=&#34;./depth-first-search.md&#34;&gt;Depth First Search (DFS)&lt;/a&gt;, [Divide and Conquer](https://en.wikipedia.org/wiki/Div...&lt;/p&gt;</description> <link>https://cp-algorithms.com/graph/centroid_decomposition.html</link> <pubDate>Sat, 10 Jan 2026 20:28:42 +0000</pubDate> <source url="https://cp-algorithms.com/feed_rss_created.xml">Algorithms for Competitive Programming</source><guid isPermaLink="true">https://cp-algorithms.com/graph/centroid_decomposition.html</guid> </item> <item> <title>Longest increasing subsequence</title> <description>&lt;h1&gt;Longest increasing subsequence&lt;/h1&gt; &lt;p&gt;We are given an array with $n$ numbers: $a[0 \dots n-1]$. The task is to find the longest, strictly increasing, subsequence...&lt;/p&gt;</description> <link>https://cp-algorithms.com/dynamic_programming/longest_increasing_subsequence.html</link> <pubDate>Mon, 25 Aug 2025 06:45:10 +0000</pubDate> <source url="https://cp-algorithms.com/feed_rss_created.xml">Algorithms for Competitive Programming</source><guid isPermaLink="true">https://cp-algorithms.com/dynamic_programming/longest_increasing_subsequence.html</guid> </item> <item> <title>Minimum Enclosing Circle</title> <description>&lt;h1&gt;Minimum Enclosing Circle&lt;/h1&gt; &lt;p&gt;Consider the following problem:&lt;/p&gt; &lt;p&gt;!!! example &#34;[Library Checker - Minimum Enclosing Circle](https://judge.yosupo.jp/problem/minimu...&lt;/p&gt;</description> <link>https://cp-algorithms.com/geometry/enclosing-circle.html</link> <pubDate>Tue, 19 Aug 2025 15:59:22 +0000</pubDate> <source url="https://cp-algorithms.com/feed_rss_created.xml">Algorithms for Competitive Programming</source><guid isPermaLink="true">https://cp-algorithms.com/geometry/enclosing-circle.html</guid> </item> <item> <title>Simulated Annealing</title> <description>&lt;h1&gt;Simulated Annealing&lt;/h1&gt; &lt;p&gt;&lt;strong&gt;Simulated Annealing (SA)&lt;/strong&gt; is a randomized algorithm, which approximates the global optimum of a function. It&#39;s called a randomized ...&lt;/p&gt;</description> <link>https://cp-algorithms.com/num_methods/simulated_annealing.html</link> <pubDate>Fri, 18 Oct 2024 16:18:55 +0000</pubDate> <source url="https://cp-algorithms.com/feed_rss_created.xml">Algorithms for Competitive Programming</source><guid isPermaLink="true">https://cp-algorithms.com/num_methods/simulated_annealing.html</guid> </item> <item> <title>Knapsack Problem</title> <description>&lt;h1&gt;Knapsack Problem&lt;/h1&gt; &lt;p&gt;Prerequisite knowledge: &lt;a href=&#34;https://cp-algorithms.com/dynamic_programming/intro-to-dp.html&#34;&gt;Introduction to Dynamic Programming&lt;/a&gt;&lt;/p&gt; &lt;h2&gt;Introduc...&lt;/h2&gt;</description> <link>https://cp-algorithms.com/dynamic_programming/knapsack.html</link> <pubDate>Sat, 18 May 2024 06:20:41 +0000</pubDate> <source url="https://cp-algorithms.com/feed_rss_created.xml">Algorithms for Competitive Programming</source><guid isPermaLink="true">https://cp-algorithms.com/dynamic_programming/knapsack.html</guid> </item> <item> <title>Manhattan Distance</title> <description>&lt;h1&gt;Manhattan Distance&lt;/h1&gt; &lt;h2&gt;Definition&lt;/h2&gt; &lt;p&gt;For points $p$ and $q$ on a plane, we can define the distance between them as the sum of the differences between their $...&lt;/p&gt;</description> <link>https://cp-algorithms.com/geometry/manhattan-distance.html</link> <pubDate>Thu, 16 May 2024 19:20:34 +0000</pubDate> <source url="https://cp-algorithms.com/feed_rss_created.xml">Algorithms for Competitive Programming</source><guid isPermaLink="true">https://cp-algorithms.com/geometry/manhattan-distance.html</guid> </item> <item> <title>Hungarian Algorithm</title> <description>&lt;h1&gt;Hungarian algorithm for solving the assignment problem&lt;/h1&gt; &lt;h2&gt;Statement of the assignment problem&lt;/h2&gt; &lt;p&gt;There are several standard formulations of the assignment p...&lt;/p&gt;</description> <link>https://cp-algorithms.com/graph/hungarian-algorithm.html</link> <pubDate>Thu, 07 Dec 2023 23:50:44 +0000</pubDate> <source url="https://cp-algorithms.com/feed_rss_created.xml">Algorithms for Competitive Programming</source><guid isPermaLink="true">https://cp-algorithms.com/graph/hungarian-algorithm.html</guid> </item> <item> <title>Introduction to Dynamic Programming</title> <description>&lt;h1&gt;Introduction to Dynamic Programming&lt;/h1&gt; &lt;p&gt;The essence of dynamic programming is to avoid repeated calculation. Often, dynamic programming problems are naturall...&lt;/p&gt;</description> <link>https://cp-algorithms.com/dynamic_programming/intro-to-dp.html</link> <pubDate>Wed, 29 Nov 2023 10:21:39 +0000</pubDate> <source url="https://cp-algorithms.com/feed_rss_created.xml">Algorithms for Competitive Programming</source><guid isPermaLink="true">https://cp-algorithms.com/dynamic_programming/intro-to-dp.html</guid> </item> <item> <title>Tortoise and Hare Algorithm (Linked List cycle detection)</title> <description>&lt;h1&gt;Floyd&#39;s Linked List Cycle Finding Algorithm&lt;/h1&gt; &lt;p&gt;Given a linked list where the starting point of that linked list is denoted by &lt;strong&gt;head&lt;/strong&gt;, and there may or may ...&lt;/p&gt;</description> <link>https://cp-algorithms.com/others/tortoise_and_hare.html</link> <pubDate>Sun, 10 Sep 2023 08:20:59 +0000</pubDate> <source url="https://cp-algorithms.com/feed_rss_created.xml">Algorithms for Competitive Programming</source><guid isPermaLink="true">https://cp-algorithms.com/others/tortoise_and_hare.html</guid> </item> <item> <title>Finding faces of a planar graph</title> <description>&lt;h1&gt;Finding faces of a planar graph&lt;/h1&gt; &lt;p&gt;Consider a graph $G$ with $n$ vertices and $m$ edges, which can be drawn on a plane in such a way that two edges intersect...&lt;/p&gt;</description> <link>https://cp-algorithms.com/geometry/planar.html</link> <pubDate>Wed, 12 Jul 2023 15:52:18 +0000</pubDate> <source url="https://cp-algorithms.com/feed_rss_created.xml">Algorithms for Competitive Programming</source><guid isPermaLink="true">https://cp-algorithms.com/geometry/planar.html</guid> </item> <item> <title>Bit manipulation</title> <description>&lt;h1&gt;Bit manipulation&lt;/h1&gt; &lt;h2&gt;Binary number&lt;/h2&gt; &lt;p&gt;A &lt;strong&gt;binary number&lt;/strong&gt; is a number expressed in the base-2 numeral system or binary numeral system, it is a method of math...&lt;/p&gt;</description> <link>https://cp-algorithms.com/algebra/bit-manipulation.html</link> <pubDate>Fri, 31 Mar 2023 02:53:20 +0000</pubDate> <source url="https://cp-algorithms.com/feed_rss_created.xml">Algorithms for Competitive Programming</source><guid isPermaLink="true">https://cp-algorithms.com/algebra/bit-manipulation.html</guid> </item> <item> <title>Garner&#39;s Algorithm</title> <description>&lt;h1&gt;Garner&#39;s algorithm&lt;/h1&gt; &lt;p&gt;A consequence of the &lt;a href=&#34;chinese-remainder-theorem.md&#34;&gt;Chinese Remainder Theorem&lt;/a&gt; is, that we can represent big numbers using an array of ...&lt;/p&gt;</description> <link>https://cp-algorithms.com/algebra/garners-algorithm.html</link> <pubDate>Sun, 29 Jan 2023 19:48:33 +0000</pubDate> <source url="https://cp-algorithms.com/feed_rss_created.xml">Algorithms for Competitive Programming</source><guid isPermaLink="true">https://cp-algorithms.com/algebra/garners-algorithm.html</guid> </item> <item> <title>Code of conduct</title> <description>&lt;h1&gt;Code of conduct&lt;/h1&gt; &lt;p&gt;We endorse and follow the code of conduct of the International Olympiad of Informatics, available at the [IOI website](https://ioinformati...&lt;/p&gt;</description> <link>https://cp-algorithms.com/code_of_conduct.html</link> <pubDate>Tue, 13 Dec 2022 14:21:50 +0000</pubDate> <source url="https://cp-algorithms.com/feed_rss_created.xml">Algorithms for Competitive Programming</source><guid isPermaLink="true">https://cp-algorithms.com/code_of_conduct.html</guid> </item> <item> <title>Tag index</title> <description>&lt;h1&gt;Tags&lt;/h1&gt; &lt;p&gt;This file contains a global index of all tags used on the pages.&lt;/p&gt; &lt;h6&gt;tags.md:74-96/name { #tags.md:74-96/slug }&lt;/h6&gt;</description> <link>https://cp-algorithms.com/tags.html</link> <pubDate>Sun, 05 Jun 2022 22:11:56 +0000</pubDate> <source url="https://cp-algorithms.com/feed_rss_created.xml">Algorithms for Competitive Programming</source><guid isPermaLink="true">https://cp-algorithms.com/tags.html</guid> </item> <item> <title>Navigation</title> <description>&lt;ul&gt; &lt;li&gt;Home&lt;ul&gt; &lt;li&gt;&lt;a href=&#34;index.md&#34;&gt;Main Page&lt;/a&gt;&lt;/li&gt; &lt;li&gt;&lt;a href=&#34;navigation.md&#34;&gt;Navigation&lt;/a&gt;&lt;/li&gt; &lt;li&gt;&lt;a href=&#34;tags.md&#34;&gt;Tag index&lt;/a&gt;&lt;/li&gt; &lt;li&gt;&lt;a href=&#34;contrib.md&#34;&gt;How to Contribute&lt;/a&gt;&lt;/li&gt; &lt;li&gt;[Code of conduct]...&lt;/li&gt; &lt;/ul&gt; &lt;/li&gt; &lt;/ul&gt;</description> <link>https://cp-algorithms.com/navigation.html</link> <pubDate>Sun, 05 Jun 2022 18:52:23 +0000</pubDate> <source url="https://cp-algorithms.com/feed_rss_created.xml">Algorithms for Competitive Programming</source><guid isPermaLink="true">https://cp-algorithms.com/navigation.html</guid> </item> <item> <title>Binary Search</title> <description>&lt;h1&gt;Binary search&lt;/h1&gt; &lt;p&gt;&lt;strong&gt;Binary search&lt;/strong&gt; is a method that allows for quicker search of something by splitting the search interval into two. Its most common applica...&lt;/p&gt;</description> <link>https://cp-algorithms.com/num_methods/binary_search.html</link> <pubDate>Fri, 03 Jun 2022 11:53:41 +0000</pubDate> <source url="https://cp-algorithms.com/feed_rss_created.xml">Algorithms for Competitive Programming</source><guid isPermaLink="true">https://cp-algorithms.com/num_methods/binary_search.html</guid> </item> <item> <title>Knuth&#39;s Optimization</title> <description>&lt;h1&gt;Knuth&#39;s Optimization&lt;/h1&gt; &lt;p&gt;Knuth&#39;s optimization, also known as the Knuth-Yao Speedup, is a special case of dynamic programming on ranges, that can optimize the ...&lt;/p&gt;</description> <link>https://cp-algorithms.com/dynamic_programming/knuth-optimization.html</link> <pubDate>Fri, 29 Apr 2022 09:57:35 +0000</pubDate> <source url="https://cp-algorithms.com/feed_rss_created.xml">Algorithms for Competitive Programming</source><guid isPermaLink="true">https://cp-algorithms.com/dynamic_programming/knuth-optimization.html</guid> </item> <item> <title>Factoring Exponentiation</title> <description>&lt;h1&gt;Binary Exponentiation by Factoring&lt;/h1&gt; &lt;p&gt;Consider a problem of computing $ax^y \pmod{2^d}$, given integers $a$, $x$, $y$ and $d \geq 3$, where $x$ is odd.&lt;/p&gt; &lt;p&gt;The ...&lt;/p&gt;</description> <link>https://cp-algorithms.com/algebra/factoring-exp.html</link> <pubDate>Sat, 16 Apr 2022 22:54:14 +0000</pubDate> <source url="https://cp-algorithms.com/feed_rss_created.xml">Algorithms for Competitive Programming</source><guid isPermaLink="true">https://cp-algorithms.com/algebra/factoring-exp.html</guid> </item> <item> <title>Continued fractions</title> <description>&lt;!--?title Continued fractions --&gt; &lt;h1&gt;Continued fractions&lt;/h1&gt; &lt;p&gt;&lt;strong&gt;Continued fraction&lt;/strong&gt; is a representation of a real number as a specific convergent sequence of ra...&lt;/p&gt;</description> <link>https://cp-algorithms.com/algebra/continued-fractions.html</link> <pubDate>Thu, 31 Mar 2022 16:21:16 +0000</pubDate> <source url="https://cp-algorithms.com/feed_rss_created.xml">Algorithms for Competitive Programming</source><guid isPermaLink="true">https://cp-algorithms.com/algebra/continued-fractions.html</guid> </item> <item> <title>MEX task (Minimal Excluded element in an array)</title> <description>&lt;h1&gt;MEX (minimal excluded) of a sequence&lt;/h1&gt; &lt;p&gt;Given an array $A$ of size $N$. You have to find the minimal non-negative element that is not present in the array. T...&lt;/p&gt;</description> <link>https://cp-algorithms.com/sequences/mex.html</link> <pubDate>Fri, 25 Feb 2022 06:55:18 +0000</pubDate> <source url="https://cp-algorithms.com/feed_rss_created.xml">Algorithms for Competitive Programming</source><guid isPermaLink="true">https://cp-algorithms.com/sequences/mex.html</guid> </item> </channel> </rss>