Send Close Add comments: (status displays here)
Got it!  This site uses cookies. You consent to this by clicking on "Got it!" or by continuing to use this website.nbsp; Note: This appears on each machine/browser from which this site is accessed.
Top-down thinking


1. Top-down thinking

2. Divide and conquer
Tails-tailsA divide and conquer problem solving method is a top-down method that breaks a problem into smaller parts, solves each smaller part, and combines the solution (in a bottom-up manner) to solve the original problem.

3. Top-down vs. bottom-up
It is said that problem solving is best done in a top-down method.

4. Top-down vs. bottom-up
A top-down method goes from general to specific. It is goal-oriented.

5. Top-down vs. bottom-up
A bottom-up method goes from specific to general, working towards the goal.

Question: Why is it difficult for beginning students to understand top-down and bottom-up methods?

6. Hoare: Top-down programming
Question to famous computer scientist Tony Hoare: Why is it so hard to teach beginning programmers top-down design methods?

7. Top-down thinking

8. Getting from here to there
Let us look at solving a simple problem. How would you give instructions for someone in York to get to Elizabethtown via Lancaster? You are in York and want to go to Lancaster.

9. Lancaster and York

10. Getting from A to C
How would you give instructions for someone in York to get to Elizabethtown via Lancaster?

Getting from A to C
Note: You are in York and want to go to Elizabethtown.

11. Start to stop way
That is: (start) A to B to C (destination)
That is: A then B then C (bottom-up, forward chaining)

12. Stop to start way
That is: (destination) C from B from A (start)
That is: C if B if A. (top-down, backward-chaining)

How do you like this way of giving directions?

13. Comparison
Getting from A to CWhich way of giving directions is more clear?

14. Methods
Both methods provide the same solution. With which method are you more comfortable?

15. Implementation
Programming languages example: top-down parsing and bottom-up parsing of input.

16. Abstraction
Thinking in a top-down backward-chaining way can be very helpful for solving problems in general and in computer science in particular.

17. Bottom-up trade-offs
The bottom-up, forward chaining method, in general:

18. Top-down trade-offs
The top-down, backward chaining method, in general:

19. Quote: Yogi Berra

20. Induction and deduction

21. End of page

22. Multiple choice questions for this page