DSA & Algorithms

105 articles in this topic

Randomized Algorithms Explained: Las Vegas, Monte Carlo and a Worked Quicksort Trace

Learn what random choices change in an algorithm, then trace randomized quicksort and calculate its expected comparisons and repeated-trial error.

Updated 4 Nov 20266 min readDSA & Algorithms

Algorithm Analysis Basics: Operation Counts, Growth Rates and Worked Examples

Learn to choose an input size, count operations exactly, simplify the result with asymptotic notation, and avoid common time and space analysis mistakes.

Updated 3 Nov 20266 min readDSA & Algorithms

Backtracking Technique: Concepts, Two Worked Examples and Exam Patterns

Trace 4-Queens and subset sum step by step, prove safe pruning rules, and avoid common backtracking errors.

Updated 2 Nov 20265 min read52 viewsDSA & Algorithms

Fast Fourier Transform (FFT): Polynomial Multiplication, Convolution and Signal Processing

Connect roots of unity, polynomial products and signal convolution through one complete four-point FFT example, including butterflies and inverse recovery.

Updated 1 Nov 20266 min readDSA & Algorithms

Branch and Bound Explained: Bounds, Pruning and Worked Examples

Learn how Branch and Bound chooses live nodes and proves optimality. Follow a best-bound knapsack trace and a smaller assignment-cost example step by step.

Updated 30 Oct 20266 min readDSA & Algorithms

Approximation Algorithms Explained: Ratios, Vertex Cover and a Worked 2-Approximation

Learn what an approximation guarantee means, how ratios differ for minimisation and maximisation, and why a simple Vertex Cover algorithm has a tight factor of 2.

Updated 29 Oct 20265 min readDSA & Algorithms

Algebraic Computation: Polynomial Multiplication, DFT and Strassen's Algorithm

Learn how representation cuts arithmetic work through one exact convolution, a four-point DFT pipeline, and a fully checked Strassen matrix product.

Updated 28 Oct 20265 min readDSA & Algorithms

Algorithm for GATE: An 8-Week Topic-by-Topic Study Plan

Follow a dependency-aware eight-week Algorithm plan with nine focused hours each week, worked examples, delayed reattempts, and a practical rule for missed sessions.

Updated 30 Oct 20265 min readDSA & Algorithms

Physical Security and Cryptography Basics: Controls, Ciphers and Worked Examples

Connect physical and logical security through Lab L-07. Learn layered controls, calculate residual risk, trace XOR, compare SHA-256 outputs and choose the right primitive.

Updated 25 Oct 20265 min readDSA & Algorithms

Array Data Structure: Memory Layout, Operations and Worked Examples

Understand how arrays map indices to memory, then practise address calculation, exact shift counts, searching and dynamic-array growth with worked examples.

Updated 24 Oct 20266 min read100 viewsDSA & Algorithms

Tree Data Structure: Types, Traversals and a Worked BST Example

Build one nine-node binary search tree, classify its shape, trace four traversals, and work through insertion, search, deletion and complexity checks.

Updated 21 Oct 20266 min read57 viewsDSA & Algorithms

Graphs in Data Structures: Complete Guide with BFS, DFS and Dijkstra Worked Examples

Learn graph terminology, representations and algorithm selection by tracing one unweighted graph with BFS and DFS, then solving a weighted graph with Dijkstra.

Updated 17 Oct 20266 min read110 viewsDSA & Algorithms