CSE 214 Lecture 2: Lecture2-SoftwareDevelopment
Document Summary
Specification of the task (check how many features you would need. Design of a solution for each task (algorithms) Documentation and maintenance (fixing bugs and maintaining documentation that it would be useful for other developers) Exceptions thrown (make sure that the program does not terminate on its own) Radius - radius of a circle is in inches. Returns the area of the circle with the given radius. How many actions are actually needed to run. 6. (load a, load b, add, store c) In java, this is only considered only to be one operation even if more items are added. Another example: for (x=1; x<=n; x++) c = a+b; It is the main operation that it is doing. Big o expresses this function as a simplified function of n (input size) O(n) - a function of n (more efficient) Let t(n) and f(n) be functions mapping nonnegative integers to real numbers.