[Instructions] [Search] [Current] [News] [Syllabus] [Glance] [Links] [Handouts] [Outlines] [Labs] [Assignments] [Quizzes] [Questions] [Exams] [Examples]
Back to The Building Blocks of Computer Programs. On to Analyzing Algorithms.
Held Friday, February 4, 2000
Overview
Today's outline does not yet have an overview. Please let me know if you think it should have one.
Question 8 for today's class: Describe unambiguously how to find the lowest grade in a list of grades.
Question 9 for Monday's class: Suppose you've been given two sets of instructions that solve the same problem. What criteria might you use to determine whether one is better than the other?
Notes
Contents
Summary
Set the value of variable to expression
Set the value of x to 5
Set the value of x to (the value of y plus 5)
x = 5
x = y + 5
if (condition) then what to do if the condition holds
if (condition) then what to do if the condition holds otherwise what to do if the condition does not hold
Repeat steps X through Y N times
Repeat the following substeps N times
For variable = 1 to N ...
For each variable in group ...
Repeat steps X through Y until condition
Repeat the following substeps until condition
bc
(basic calculator) for this example.
bc
has two basic operations:
var = expression
var
bc
by typing bc
in a dtterm
window.
a
.
a
in variable b
.
b
.
c
.
c
.
c
has that value?
scale(20)
and try setting and printing the value of
c
again.
a
.
a
in variable b
.
b
and 7 in c
.
a
in d
.
b/d
in a
.
a
.
a
in variable b
.
b
.
bc
by typing control-D.
Saturday, 22 January 2000
Friday, 4 February 2000
Back to The Building Blocks of Computer Programs. On to Analyzing Algorithms.
[Instructions] [Search] [Current] [News] [Syllabus] [Glance] [Links] [Handouts] [Outlines] [Labs] [Assignments] [Quizzes] [Questions] [Exams] [Examples]
Disclaimer Often, these pages were created "on the fly" with little, if any, proofreading. Any or all of the information on the pages may be incorrect. Please contact me if you notice errors.
This page may be found at http://www.math.grin.edu/~rebelsky/Courses/CS105/2000S/Outlines/outline.08.html
Source text last modified Fri Feb 4 09:50:16 2000.
This page generated on Fri Feb 4 09:48:50 2000 by Siteweaver. Validate this page's HTML.
Contact our webmaster at rebelsky@grinnell.edu