<?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"><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_updated.xml" rel="self" type="application/rss+xml" /><docs>https://github.com/cp-algorithms/cp-algorithms</docs><language>en</language><pubDate>Thu, 19 Nov 2026 13:55:38 +0000</pubDate><lastBuildDate>Thu, 19 Nov 2026 13:55:38 +0000</lastBuildDate><ttl>1440</ttl><generator>Zensical RSS</generator><item><title>Integer factorization</title><description>&lt;h1&gt;Integer factorization&lt;/h1&gt;
&lt;p&gt;In this article we list several algorithms for the factorization of integers, each of which can be either fast or varying levels of ...&lt;/p&gt;</description><link>https://cp-algorithms.com/algebra/factorization.html</link><source url="https://cp-algorithms.com/feed_rss_updated.xml">Algorithms for Competitive Programming</source><pubDate>Wed, 11 Nov 2026 12:54:52 +0000</pubDate><guid isPermaLink="true">https://cp-algorithms.com/algebra/factorization.html</guid></item><item><title>Euler&apos;s totient function</title><description>&lt;h1&gt;Euler&apos;s totient function&lt;/h1&gt;
&lt;p&gt;Euler&apos;s totient function, also known as &lt;strong&gt;phi-function&lt;/strong&gt; $\phi (n)$, counts the number of integers between 1 and $n$ inclusive, w...&lt;/p&gt;</description><link>https://cp-algorithms.com/algebra/phi-function.html</link><source url="https://cp-algorithms.com/feed_rss_updated.xml">Algorithms for Competitive Programming</source><pubDate>Wed, 11 Nov 2026 12:54:52 +0000</pubDate><guid isPermaLink="true">https://cp-algorithms.com/algebra/phi-function.html</guid></item><item><title>Binary Exponentiation</title><description>&lt;h1&gt;Binary Exponentiation&lt;/h1&gt;
&lt;p&gt;Binary exponentiation (also known as exponentiation by squaring) is a trick which allows to calculate $a^n$, where $n$ is a non-nega...&lt;/p&gt;</description><link>https://cp-algorithms.com/algebra/binary-exp.html</link><source url="https://cp-algorithms.com/feed_rss_updated.xml">Algorithms for Competitive Programming</source><pubDate>Wed, 11 Nov 2026 12:54:52 +0000</pubDate><guid isPermaLink="true">https://cp-algorithms.com/algebra/binary-exp.html</guid></item><item><title>Fibonacci Numbers</title><description>&lt;h1&gt;Fibonacci Numbers&lt;/h1&gt;
&lt;p&gt;The Fibonacci sequence is defined as follows:&lt;/p&gt;
&lt;p&gt;$$F_0 = 0, F_1 = 1, F_n = F_{n-1} + F_{n-2}$$&lt;/p&gt;
&lt;p&gt;The first elements of the sequence ([OEIS ...&lt;/p&gt;</description><link>https://cp-algorithms.com/algebra/fibonacci-numbers.html</link><source url="https://cp-algorithms.com/feed_rss_updated.xml">Algorithms for Competitive Programming</source><pubDate>Wed, 11 Nov 2026 12:54:52 +0000</pubDate><guid isPermaLink="true">https://cp-algorithms.com/algebra/fibonacci-numbers.html</guid></item><item><title>Linear Diophantine Equations</title><description>&lt;h1&gt;Linear Diophantine Equation&lt;/h1&gt;
&lt;p&gt;A Linear Diophantine Equation (in two variables) is an equation of the general form:&lt;/p&gt;
&lt;p&gt;$$ax + by = c$$&lt;/p&gt;
&lt;p&gt;where $a$, $b$, $c$ are...&lt;/p&gt;</description><link>https://cp-algorithms.com/algebra/linear-diophantine-equation.html</link><source url="https://cp-algorithms.com/feed_rss_updated.xml">Algorithms for Competitive Programming</source><pubDate>Wed, 11 Nov 2026 12:54:52 +0000</pubDate><guid isPermaLink="true">https://cp-algorithms.com/algebra/linear-diophantine-equation.html</guid></item><item><title>Fenwick Tree</title><description>&lt;h1&gt;Fenwick Tree&lt;/h1&gt;
&lt;p&gt;Let $f$ be some group operation (a binary associative function over a set with an identity element and inverse elements) and $A$ be an array ...&lt;/p&gt;</description><link>https://cp-algorithms.com/data_structures/fenwick.html</link><source url="https://cp-algorithms.com/feed_rss_updated.xml">Algorithms for Competitive Programming</source><pubDate>Wed, 11 Nov 2026 12:54:52 +0000</pubDate><guid isPermaLink="true">https://cp-algorithms.com/data_structures/fenwick.html</guid></item><item><title>How to Contribute</title><description>&lt;h1&gt;How to Contribute&lt;/h1&gt;
&lt;p&gt;Anyone with a &lt;a href=&quot;https://github.com&quot;&gt;GitHub account&lt;/a&gt; can contribute. You can fix a typo, improve an article or add a new one. Send your ch...&lt;/p&gt;</description><link>https://cp-algorithms.com/contrib.html</link><source url="https://cp-algorithms.com/feed_rss_updated.xml">Algorithms for Competitive Programming</source><pubDate>Sun, 08 Nov 2026 18:02:40 +0000</pubDate><guid isPermaLink="true">https://cp-algorithms.com/contrib.html</guid></item><item><title>Preview</title><description>&lt;script src=&quot;https://ajax.googleapis.com/ajax/libs/jquery/3.6.0/jquery.min.js&quot;&gt;&lt;/script&gt;
&lt;script type=&quot;text/javascript&quot;&gt;
  $(document).ready(function(){
    ...</description><link>https://cp-algorithms.com/preview.html</link><source url="https://cp-algorithms.com/feed_rss_updated.xml">Algorithms for Competitive Programming</source><pubDate>Sun, 08 Nov 2026 15:53:09 +0000</pubDate><guid isPermaLink="true">https://cp-algorithms.com/preview.html</guid></item><item><title>Treap</title><description>&lt;h1&gt;Treap (Cartesian tree)&lt;/h1&gt;
&lt;p&gt;A treap is a data structure which combines binary tree and binary heap (hence the name: tree + heap $\Rightarrow$ Treap).&lt;/p&gt;
&lt;p&gt;More spe...&lt;/p&gt;</description><link>https://cp-algorithms.com/data_structures/treap.html</link><source url="https://cp-algorithms.com/feed_rss_updated.xml">Algorithms for Competitive Programming</source><pubDate>Mon, 26 Oct 2026 11:51:07 +0000</pubDate><guid isPermaLink="true">https://cp-algorithms.com/data_structures/treap.html</guid></item><item><title>Prefix function - Knuth-Morris-Pratt</title><description>&lt;h1&gt;Prefix function. Knuth–Morris–Pratt algorithm&lt;/h1&gt;
&lt;h2&gt;Motivation&lt;/h2&gt;
&lt;p&gt;Suppose we want to find all occurrences of a non-empty string $s$ in a text $t$.
Starting at ...&lt;/p&gt;</description><link>https://cp-algorithms.com/string/prefix-function.html</link><source url="https://cp-algorithms.com/feed_rss_updated.xml">Algorithms for Competitive Programming</source><pubDate>Sun, 25 Oct 2026 19:00:30 +0000</pubDate><guid isPermaLink="true">https://cp-algorithms.com/string/prefix-function.html</guid></item><item><title>Bipartite Graph Check</title><description>&lt;h1&gt;Check whether a graph is bipartite&lt;/h1&gt;
&lt;p&gt;A bipartite graph is a graph whose vertices can be divided into two disjoint sets so that every edge connects two verti...&lt;/p&gt;</description><link>https://cp-algorithms.com/graph/bipartite-check.html</link><source url="https://cp-algorithms.com/feed_rss_updated.xml">Algorithms for Competitive Programming</source><pubDate>Sun, 25 Oct 2026 18:33:12 +0000</pubDate><guid isPermaLink="true">https://cp-algorithms.com/graph/bipartite-check.html</guid></item><item><title>Gray code</title><description>&lt;h1&gt;Gray code&lt;/h1&gt;
&lt;p&gt;Gray code is a binary numeral system where two successive values differ in only one bit. &lt;/p&gt;
&lt;p&gt;Denote by $G(n)$ the representation of the number $n$...&lt;/p&gt;</description><link>https://cp-algorithms.com/algebra/gray-code.html</link><source url="https://cp-algorithms.com/feed_rss_updated.xml">Algorithms for Competitive Programming</source><pubDate>Sat, 17 Oct 2026 04:36:28 +0000</pubDate><guid isPermaLink="true">https://cp-algorithms.com/algebra/gray-code.html</guid></item><item><title>Segment Tree</title><description>&lt;h1&gt;Segment Tree&lt;/h1&gt;
&lt;p&gt;A Segment Tree is a data structure that stores information about array intervals as a tree. This allows answering range queries over an array...&lt;/p&gt;</description><link>https://cp-algorithms.com/data_structures/segment_tree.html</link><source url="https://cp-algorithms.com/feed_rss_updated.xml">Algorithms for Competitive Programming</source><pubDate>Sun, 04 Oct 2026 19:00:33 +0000</pubDate><guid isPermaLink="true">https://cp-algorithms.com/data_structures/segment_tree.html</guid></item><item><title>Disjoint Set Union</title><description>&lt;h1&gt;Disjoint Set Union&lt;/h1&gt;
&lt;p&gt;This article discusses the data structure &lt;strong&gt;Disjoint Set Union&lt;/strong&gt; or &lt;strong&gt;DSU&lt;/strong&gt;.
Often it is also called &lt;strong&gt;Union Find&lt;/strong&gt; because of its two ...&lt;/p&gt;</description><link>https://cp-algorithms.com/data_structures/disjoint_set_union.html</link><source url="https://cp-algorithms.com/feed_rss_updated.xml">Algorithms for Competitive Programming</source><pubDate>Sat, 19 Sep 2026 12:39:39 +0000</pubDate><guid isPermaLink="true">https://cp-algorithms.com/data_structures/disjoint_set_union.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><source url="https://cp-algorithms.com/feed_rss_updated.xml">Algorithms for Competitive Programming</source><pubDate>Sat, 19 Sep 2026 11:59:27 +0000</pubDate><guid isPermaLink="true">https://cp-algorithms.com/num_methods/binary_search.html</guid></item><item><title>0-1 BFS</title><description>&lt;h1&gt;0-1 BFS&lt;/h1&gt;
&lt;p&gt;It is well-known, that you can find the shortest paths between a single source and all other vertices in $O(|E|)$ using [Breadth First Search](bre...&lt;/p&gt;</description><link>https://cp-algorithms.com/graph/01_bfs.html</link><source url="https://cp-algorithms.com/feed_rss_updated.xml">Algorithms for Competitive Programming</source><pubDate>Sat, 19 Sep 2026 11:15:44 +0000</pubDate><guid isPermaLink="true">https://cp-algorithms.com/graph/01_bfs.html</guid></item><item><title>Convex hull construction</title><description>&lt;h1&gt;Convex Hull construction&lt;/h1&gt;
&lt;p&gt;In this article we will discuss the problem of constructing a convex hull from a set of points.&lt;/p&gt;
&lt;p&gt;Consider $N$ points given on a p...&lt;/p&gt;</description><link>https://cp-algorithms.com/geometry/convex-hull.html</link><source url="https://cp-algorithms.com/feed_rss_updated.xml">Algorithms for Competitive Programming</source><pubDate>Sat, 19 Sep 2026 10:34:59 +0000</pubDate><guid isPermaLink="true">https://cp-algorithms.com/geometry/convex-hull.html</guid></item><item><title>Lowest Common Ancestor - Binary Lifting</title><description>&lt;h1&gt;Lowest Common Ancestor - Binary Lifting&lt;/h1&gt;
&lt;p&gt;Let $G$ be a tree.
For every query of the form &lt;code&gt;(u, v)&lt;/code&gt; we want to find the lowest common ancestor of the nodes `u...&lt;/p&gt;</description><link>https://cp-algorithms.com/graph/lca_binary_lifting.html</link><source url="https://cp-algorithms.com/feed_rss_updated.xml">Algorithms for Competitive Programming</source><pubDate>Sat, 19 Sep 2026 10:31:06 +0000</pubDate><guid isPermaLink="true">https://cp-algorithms.com/graph/lca_binary_lifting.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=&quot;https://cp-algorithms.com/dynamic_programming/intro-to-dp.html&quot;&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><source url="https://cp-algorithms.com/feed_rss_updated.xml">Algorithms for Competitive Programming</source><pubDate>Fri, 18 Sep 2026 21:47:54 +0000</pubDate><guid isPermaLink="true">https://cp-algorithms.com/dynamic_programming/knapsack.html</guid></item><item><title>Primality tests</title><description>&lt;h1&gt;Primality tests&lt;/h1&gt;
&lt;p&gt;This article describes multiple algorithms to determine if a number is prime or not.&lt;/p&gt;
&lt;h2&gt;Trial division&lt;/h2&gt;
&lt;p&gt;By definition a prime number does...&lt;/p&gt;</description><link>https://cp-algorithms.com/algebra/primality_tests.html</link><source url="https://cp-algorithms.com/feed_rss_updated.xml">Algorithms for Competitive Programming</source><pubDate>Fri, 18 Sep 2026 21:24:31 +0000</pubDate><guid isPermaLink="true">https://cp-algorithms.com/algebra/primality_tests.html</guid></item></channel></rss>