Algorithm Design: The Divide And Conquer Concept
A complex problem like writing a computer game needs to be broken into three parts:
For example:
- begin the game
- repeat player’s turn until the player guesses right answer or seven turns are completed
- end the game
Further refinements may further “divide and conquer” main pieces into smaller ones and/or “add more details” to each part.