# In what sense do the following three steps not constitute an algorithm?

I need a little help with my computer science homework...

Step 1. Draw a straight line segment between the points with rectangular coordinates (2,5) and (6,11).

Step 2. Draw a straight line segment between the points with rectangular coordinates (1,3) and (3,6).

Step 3. Draw a circle whose center is at the intersection of the previous line segments and whose radius is 2.

#### Answers

algorithms don't have hard coded values. Those instructions tell you how to draw a circle at a very specific point with a very specific radius.

An algorithm would replace all the magic numbers (1,2,3,5,6 and 11 are all magic numbers), with variables. If there is a relationship between those numbers, then the algorithm would capture that.

#1

An algorithm is a formula. Something that could be repeated.

the Sierpinski triangle is an algorithm, because it's given that you're starting with an empty triangle. The 'starting with an empty triangle' is not part of the algorithm.

What you have is something that would be the INITIAL SHAPE of an algorithm. The algorithm would be something that's performed on that shape.

#2