In general,
computer science majors should use the following algorithm called
Perfect-Solution-Top-Grade Algorithm to write a perfect solution and get the
highest score logically (just like a computer program is executed instruction
by instruction) when solving an assignment problem or a test problem.
The algorithm is
given below:
Procedure Perfect-Solution-Top-Grade(CSc
????, my name, ….)
Begin
Step
1: read and understand covered issues
in the textbook and the class notes after class. If any problems, please talk
to the instructor or others (face-to-face, phone, email,…);
Step
2: fully understand each assignment (or test) problem by listing major key
words, given conditions, goals and unclear meanings of the problem;
Step 3: concisely plan a
logical solution on a piece of paper (such as a diagram, a structure, or
draft), please check completeness and correctness of the draft based on
collected information at Step 2. Please try to find out a best solution among
several candidates in terms of correctness, conciseness, and time;
Step
4: write a real solution with major steps logically in a clear format onto the
answer sheet fully based on the logical solution at Step 3. Please organize an
elegant solution format like a Web site design;
Step 5: check the
solution (you may use simple examples to check it) in terms of correctness and
completeness based on previous Steps;
Step
6: if double-check is needed, goto Step 1, otherwise, goto Step 7.
Step
7: Stop.