1 / 12

Modeling Solutions

Modeling Solutions. Explicit problem solving. http://www.flickr.com/photos/hyougushi/337024525/sizes/o/in/photostream/. Models. Life is full of models toy airplane model train fashion models weather models geo-physical models financial models

naiara
Download Presentation

Modeling Solutions

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. Modeling Solutions Explicit problem solving http://www.flickr.com/photos/hyougushi/337024525/sizes/o/in/photostream/

  2. Models • Life is full of models • toy airplane • model train • fashion models • weather models • geo-physical models • financial models • Model : a replica or representation of some object or system.

  3. Model • Models rely on abstraction to emphasize important characteristics and remove unnecessary detail • Architects use physical models of their buildings to highlight the aesthetics • Movie creators use storyboards to model a film in terms of separate scenes • Flight simulators are models of planes for the purpose of training pilots

  4. Modeling Algorithms • Two techniques for modeling computation • Activity Diagram: • A way to model the sequence of actions that comprise an algorithm. • Also known as a flow-chart or flow-diagram • State Diagram: • A way to model the way data changes within an algorithm.

  5. Activity Diagram : Elements

  6. Details Activity : sequence of actions that can be thought of as a “single computation”. Control flow : the arrow points to what happens next. The arrow must end at either a rectangle or a diamond. An arrow can be thought of as “then do”. Decision/merge : wherever the control must split or join together. Start: the start of the algorithm End : the end of the algorithm

  7. Example • Description • Start at the top • “then do” eat dinner • “then do” snack on anchovies • “then do” study for CT100 • Note: activity diagrams don’t give details about specific steps or data. Flow of control is nonetheless well specified. Eat dinner Snack on anchovies Study for CT100

  8. Selection Pattern

  9. Example A join is required wherever two or more flows come together

  10. Optional Activities Optional activities can make good use of the selection pattern

  11. More than two A decision can split into more than two channels of activity

  12. Repetition Repetition involves a loop with conditionals

More Related