From Backlog to Algorithm: Divide and Conquer i...

From Backlog to Algorithm: Divide and Conquer in Software Engineering

What do backlog refinement, software architecture, clean code. AI vibe coding, and efficient algorithms have in common? They all share the same fundamental principle: divide and conquer.

Complexity is one of the greatest challenges in software engineering. Whether we are dealing with business requirements, architectural decisions, code maintainability, or algorithmic efficiency, breaking down complex problems into smaller, manageable pieces is an essential skill.

In this talk, we will explore divide and conquer as a universal mental model for software engineers. We will follow this principle across different levels of abstraction – from product vision and backlog refinement, through architectural decomposition and separation of responsibilities in code, to classical algorithmic techniques.

We will discover how this approach helps us reduce complexity, manage uncertainty, minimize risk, and build more maintainable and extensible software.

Divide and conquer is not just an algorithmic technique. It is a way of thinking that can transform how we approach software engineering at every level.

Leszek Prabucki

November 27, 2026

Annual Pro sale · Save $30

Have presentations of your own?

Share with private links, password protection, and more control over your work.

Transcript

19 slides
  1. From Backlog to Algorithm: Divide and Conquer in Software Engineering

    Leszek Prabucki PHP/Angular Tech Leader [email protected] / linkedin.com/in/leszek-prabucki/ | www.iteo.com
  2. What will we cover? • Why complexity is our main

    challenge and how to reduce it • Divide and conquer as a mental model for software engineers • From vision to backlog: breaking down problems in planning and refinement System decomposition: divide and conquer in architecture Separating responsibilities in code Divide and conquer in algorithms Divide and conquer in AI and vibe coding Summary • • • • •
  3. Why complexity is our main challenge and how to reduce

    it • Types of complexity ◦ Computational/algorithmic ▪ Time ▪ Space ◦ Structural (in code) ◦ Essential (inherent) ◦ Cognitive (psychological)
  4. Why complexity is our main challenge and how to reduce

    it • • • • Types of complexity ◦ Computational/algorithmic ▪ Time ▪ Space ◦ Structural (in code) ◦ Essential (inherent) ◦ Cognitive (psychological) Changing requirements and stakeholders Changes in the market and the business Changes in the team
  5. Divide and conquer as a mental model for software engineers

    Problem Split into Split into Smaller problem Split into Smaller problem Split into Solve Tiny problem Tiny problem Solve Solve Solution Solution Merge into Solution to smaller problem Merge into Solution to smaller problem Merge into Merge into Solution
  6. Divide and conquer as a mental model for software engineers

    Interestingly, the same pattern appears in: • • • • planning the team's work, designing the architecture, structuring the code, and designing algorithms. Only the level of abstraction changes.
  7. From vision to backlog: breaking down problems in planning and

    refinement We always start with something large and vague: a vision, a business goal, or a user problem. In this form, we cannot estimate it, plan it, or implement it. So we start breaking it down: • • • a vision becomes an epic, an epic breaks down into user stories, and these break down into technical subtasks. In practice, refinement is a process of systematically breaking down a problem. Each meeting aims to make work items smaller and reduce their uncertainty, rather than simply reach an agreement.
  8. From vision to backlog: breaking down problems in planning and

    refinement Tasks that are broken down well: • • • • are easier to estimate, take less time to complete, provide feedback sooner. Poorly split tasks blow up during the sprint. At this stage, divide and conquer is about mitigating risk and uncertainty, rather than code.
  9. System decomposition: divide and conquer in architecture • We identify

    boundaries of responsibility and cohesive units, then separate modules or systems along those boundaries.
  10. System decomposition: divide and conquer in architecture • • We

    identify boundaries of responsibility and cohesive units, then separate modules or systems along those boundaries. We consider architectural drivers when deciding where to split the system. For example, we may separate modules to minimize code dependencies for faster updates, or to let another team maintain a module.
  11. System decomposition: divide and conquer in architecture • • •

    We identify boundaries of responsibility and cohesive units, then separate modules or systems along those boundaries. We consider architectural drivers when deciding where to split the system. For example, we may separate modules to minimize code dependencies for faster updates, or to let another team maintain a module. We aim to keep modules reasonably independent so that local changes do not have global consequences.
  12. System decomposition: divide and conquer in architecture • • •

    • We identify boundaries of responsibility and cohesive units, then separate modules or systems along those boundaries. We consider architectural drivers when deciding where to split the system. For example, we may separate modules to minimize code dependencies for faster updates, or to let another team maintain a module. We aim to keep modules reasonably independent so that local changes do not have global consequences. Modules must integrate with one another to deliver business value.
  13. Separating responsibilities in code To make code more extensible and

    introduce changes effectively, we can split a complex piece of code into smaller modules, following principles such as SOLID or CUPID. These changes might include adding caching to improve performance, adding notifications and broadcasting to other systems, or adding functionality to existing processes. With divide and conquer, we split code into smaller logical pieces and define extension points through interfaces. We must preserve the integrity of the overall solution: the pieces must work together to solve the original problem. Design patterns help us achieve this.
  14. Divide and conquer in algorithms • Binary Search - split

    a sorted search space into two halves and discard one half at each step. Complexity: O(log n). • Merge Sort - split an array into two equal parts, sort the subarrays, and merge the results. Complexity: O(n log n). Quick Sort - partition an array around a chosen element (the pivot), then recursively sort the independent parts. Average complexity: O(n log n). Worst case: O(n²). Exponentiation by Squaring - halve the exponent and adjust for even or odd exponents to reduce the number of multiplications. Complexity: O(log n). • • • Closest Pair of Points - split a set of points along an axis (e.g., X), combine the results, and check a narrow strip in the middle. Complexity: O(n log n).
  15. Divide and conquer in AI and vibe coding Smaller tasks

    and focused prompts can improve results by making each AI-generated change easier to review and test. • Split the feature into small tasks, each with one clear goal. • Give each prompt the relevant context, interfaces, and acceptance criteria. • Review and test each change, then integrate the pieces and test the full flow. Example: prompts for a CSV import feature 1. "Define the CSV format and validation rules." 2. "Implement parsing and add unit tests." 3. "Add persistence and test the complete import." Sources: GitHub Docs (prompt engineering and vibe coding)

More Decks by Leszek Prabucki

Other Decks in Technology