CSE 130 Lecture Notes - Lecture 14: Exception Handling, Donald Knuth, Computable Function

77 views4 pages

Document Summary

We don"t know where we will end up! Donald knuth: eliminate gotos in some cases, add gotos in other cases (i. e. in controlled form) Helps simplify code (can jump to labels for error checking , for example) A paradigm - has things like control flow statements. Includes things like control structures, procedures, blocks, etc. Makes code less gnarly (easier to write) Helps simplify certain areas where there can be potential faults. Control flow graphs ( cfg ) - graphs that describe control flow , where programs go, can lead to, and flow from. A: sequencing of instructions, selection (aka conditional branching), iteration (looping) Default: f (this case has no break; -- falls through to default) Chain blocks using previous constructs to program any computable function. Downside: programs = sim + blocks (super giant blobs) Procedural abstraction : way of organizing code in procedures (functions) Downside : have to actually implement them (complicates cfg)

Get access

Grade+20% off
$8 USD/m$10 USD/m
Billed $96 USD annually
Grade+
Homework Help
Study Guides
Textbook Solutions
Class Notes
Textbook Notes
Booster Class
40 Verified Answers
Class+
$8 USD/m
Billed $96 USD annually
Class+
Homework Help
Study Guides
Textbook Solutions
Class Notes
Textbook Notes
Booster Class
30 Verified Answers