+ All Categories
Home > Education > Top Down and Bottom Up Design Model

Top Down and Bottom Up Design Model

Date post: 06-May-2015
Category:
Upload: oxus-20
View: 449 times
Download: 2 times
Share this document with a friend
Description:
Complex problems can be solved using Top-down design model, also known as Step-wise refinement, where we break the problem into parts and then break the parts into sub parts and finally soon, each of the parts will be easy to code and accomplish…
12
Design Model Top Down & Bottom Up Abdul Rahman Sherzad
Transcript
Page 1: Top Down and Bottom Up Design Model

Design Model

Top Down

&

Bottom Up

Abdul Rahman Sherzad

Page 2: Top Down and Bottom Up Design Model

Top Down Design Model

» In top-down model, an overview of the system is

formulated, without going into detail for any part of

it.

» Each part of the system is then refined in more

details.

» Each new part may then be refined again, defining

it in yet more details until the entire specification is

detailed enough to validate the model.

https://www.facebook.com/Oxus20

2

Page 3: Top Down and Bottom Up Design Model

Top Down Concept in Problem Solving

» If we look at a problem as a whole, it may seem impossible to solve because it is so complex. Examples: ˃ writing a University System program

˃ writing a word processor

» Complex problems can be solved using top-down design, also known as stepwise refinement, where ˃ We break the problem into parts

˃ Then break the parts into parts

˃ Soon, each of the parts will be easy to do 3

https://www.facebook.com/Oxus20

Page 4: Top Down and Bottom Up Design Model

Top Down Design

https://www.facebook.com/Oxus20

4

Page 5: Top Down and Bottom Up Design Model

Top Down Design

https://www.facebook.com/Oxus20

5

Page 6: Top Down and Bottom Up Design Model

Advantages of Top-Down Design

» Breaking the problem into parts helps us to clarify what

needs to be done.

» At each step of refinement, the new parts become less

complicated and, therefore, easier to figure out.

» Parts of the solution may turn out to be reusable.

» Breaking the problem into parts allows more than one

person to work on the solution.

https://www.facebook.com/Oxus20

6

Page 7: Top Down and Bottom Up Design Model

Example

» Problem:

» Write a program that

draws this picture of a

house.

https://www.facebook.com/Oxus20

7

outline of the house

chimney

Windows Door

Page 8: Top Down and Bottom Up Design Model

The Top Level

» Draw the outline of the house

» Draw the chimney

» Draw the door

» Draw the windows

Main

Draw Chimney

Draw Door

Draw Windows

Draw Outline

https://www.facebook.com/Oxus20

8

Page 9: Top Down and Bottom Up Design Model

Observation

» The door has both a frame and knob. We could break this into two steps.

Main

Draw Chimney

Draw Door

Draw Windows

Draw Outline

Draw Door Frame

Draw Knob

https://www.facebook.com/Oxus20

9

Page 10: Top Down and Bottom Up Design Model

Bottom-up Design

» In bottom-up design individual parts of the system

are specified in details.

» The parts are then linked together to form larger

components, which are in turn linked until a

complete system is formed.

» Object-oriented languages such as C++ or JAVA use

bottom-up approach where each object is

identified first.

https://www.facebook.com/Oxus20

10

Page 11: Top Down and Bottom Up Design Model

Bottom up Design

https://www.facebook.com/Oxus20

11

Page 12: Top Down and Bottom Up Design Model

END

12

https://www.facebook.com/Oxus20


Recommended