Navigation

Tech Articles

Explore deep-dives, coding tutorials, and tech insights from the community.

l loai171 4 weeks ago
0 Comments
math

lap lap lap

K Kamikazee112 4 weeks ago
2 Comments
Euclidean algorithm for computing the greatest common divisor

Euclidean algorithm for computing the greatest common divisor¶ Given two non-negative integers   $a$  and   $b$ , we have to find their GCD (greatest common...

Math Number Theory
Read Article
K Kamikazee112 4 weeks ago
1 Comment
Binary Exponentiation

Binary Exponentiation¶ Binary exponentiation (also known as exponentiation by squaring) is a trick which allows to calculate   $a^n$ , where   $n$  is a non-...

Math Bitmasks
Read Article
K Kamikazee112 4 weeks ago
0 Comments
Disjoint Set Union

Disjoint Set Union¶ This article discusses the data structure Disjoint Set Union or DSU. Often it is also called Union Find because of its two main operations....

Trees Data Structures
Read Article
K Kamikazee112 4 weeks ago
0 Comments
Sparse Table

Sparse Table¶ Sparse Table is a data structure, that allows answering range queries. It can answer most range queries in   $O(\log n)$ , but its true power is...

Data Structures Dynamic Programming Bitmasks
Read Article
K Kamikazee112 4 weeks ago
0 Comments
Floyd-Warshall Algorithm

Floyd-Warshall Algorithm¶ Given a directed or an undirected weighted graph   $G$  with   $n$  vertices. The task is to find the length of the shortest path  ...

Graphs Trees Dynamic Programming
Read Article
K Kamikazee112 4 weeks ago
0 Comments
Dijkstra Algorithm

You are given a directed or undirected weighted graph with   $n$  vertices and   $m$  edges. The weights of all edges are non-negative. You are also given a s...

Graphs Trees Greedy
Read Article
K Kamikazee112 4 weeks ago
0 Comments
Breadth-first search

Breadth-first search¶ Breadth first search is one of the basic and essential searching algorithms on graphs. As a result of how the algorithm works, the pat...

Graphs Trees
Read Article
K Kamikazee112 4 weeks ago
0 Comments
Depth First Search

Depth First Search¶ Depth First Search is one of the main graph algorithms. Depth First Search finds the lexicographical first path in the graph from a sour...

Graphs Trees
Read Article