powered by v43.aiУчить анатомию как художник
Русский
Step 3 · Choose a topic · Class 10

DSA

Practise algorithms and data structures through animated models. Advanced enrichment topics.

0 XP0 mastered
Your suggested learning path

0 of 14 topics mastered

Explore → practise → quiz → revise. Earlier topics are recommended preparation; every topic stays open.

Start here: Radix sort →
  1. Radix sortUp next
  2. Tries / prefix treesExplore
  3. Dijkstra shortest pathsExplore
  4. Topological sortingExplore
  5. Union–find / disjoint setsExplore
  6. 0/1 knapsackExplore
  7. Longest common subsequenceExplore
  8. Coin change / minimum coinsExplore
  9. N-Queens / backtrackingExplore
  10. Fenwick trees / prefix queriesExplore
  11. Segment trees / range sumsExplore
  12. Kruskal / minimum spanning treeExplore
  13. Bellman–Ford shortest pathsExplore
  14. KMP string matchingExplore
14 of 14 topics
01Sorting

Radix sort

DSA enrichment

Sort nonnegative integers digit by digit, starting with the least significant decimal digit. Each digit pass uses stable buckets.

Interactive explainer 3-round quiz
02Data structures

Tries / prefix trees

DSA enrichment

Insert words character by character, reusing shared prefixes. A terminal marker records a complete word even when that word is also a prefix of another.

Interactive explainer 3-round quiz
03Graphs

Dijkstra shortest paths

DSA enrichment

Repeatedly settle the unsettled vertex with minimum tentative distance, then relax its outgoing edges. The fixed graph has only nonnegative weights. This trace uses a linear scan to select the minimum.

Interactive explainer 3-round quiz
04Graphs

Topological sorting

DSA enrichment

Use Kahn’s algorithm on a fixed directed acyclic graph. Remove zero-indegree vertices and reduce their outgoing neighbours’ indegrees.

Interactive explainer 3-round quiz
05Graphs

Union–find / disjoint sets

DSA enrichment

Process undirected edges, find the root of each endpoint and merge distinct components. Union by rank and path compression keep trees shallow.

Interactive explainer 3-round quiz
06Dynamic programming

0/1 knapsack

DSA enrichment

Choose from four fixed items with weights 2,3,4,5 and values 3,4,5,8. Each item can be used at most once. A table records the best value for each item prefix and capacity.

Interactive explainer 3-round quiz
07Dynamic programming

Longest common subsequence

DSA enrichment

Compare two strings, separated by |. A subsequence preserves order but may skip characters; it need not be contiguous. The table returns the LCS length.

Interactive explainer 3-round quiz
08Dynamic programming

Coin change / minimum coins

DSA enrichment

Find the fewest coins for an exact target, with unlimited uses of each positive denomination. Unreachable states remain ∞. Zero denominations are not allowed.

Interactive explainer 3-round quiz
09Backtracking

N-Queens / backtracking

DSA enrichment

Place one queen per row so no two share a column or diagonal. Try a column, recurse to the next row, and undo a placement if the branch fails. Stop at the first solution.

Interactive explainer 3-round quiz
10Range-query structures

Fenwick trees / prefix queries

DSA enrichment

Build a one-based binary indexed tree, then query the first k values. Each node stores a block whose length is its least significant set bit.

Interactive explainer 3-round quiz
11Range-query structures

Segment trees / range sums

DSA enrichment

Build a binary hierarchy of interval sums, then query the first k values. A fully covered segment contributes its stored sum; a disjoint segment contributes zero.

Interactive explainer 3-round quiz
12Graphs

Kruskal / minimum spanning tree

DSA enrichment

Sort the fixed connected undirected graph’s weighted edges and accept an edge only when it joins different components. Stop after V−1 accepted edges.

Interactive explainer 3-round quiz
13Graphs

Bellman–Ford shortest paths

DSA enrichment

Relax every edge repeatedly on a directed graph that includes a negative edge but no negative cycle. A final extra pass checks for a reachable negative cycle.

Interactive explainer 3-round quiz
14Strings

KMP string matching

DSA enrichment

Search text for a pattern, separated by |. Build the pattern’s longest-prefix-suffix table, then reuse it on mismatches without moving the text pointer backwards. Matching is case-sensitive.

Interactive explainer 3-round quiz