Skip to content
Data Structures and Algorithms / Algorithm Design Paradigms

Worked Examples — Choosing a Design Paradigm in Practice

This topic has built three design paradigms and shown, concretely, when each one is (and isn't) the right tool: divide-and-conquer for independent subproblems, greedy for problems with a provable exchange-argument-safe local choice, and dynamic programming for overlapping subproblems where greedy's exchange argument fails. This capstone lesson is a decision guide: a short diagnostic checklist, followed by three worked finance-flavoured examples that walk through the actual reasoning process of choosing a paradigm, not just stating the answer.

In this lesson

  1. Learning objectives
  2. The diagnostic checklist
  3. Worked example 1: parallel backtest aggregation
  4. Worked example 2: capital allocation across discrete deals
  5. Worked example 3: minimum-cost network connectivity
  6. The transferable skill

Before you start

The full lesson, with worked examples and exercise solutions, is for members.

Read the full lesson

New to SelfMadeQuant.com? See membership options or explore the curriculum.