Third software engineering jobs
Github Address: https://github.com/Ivanpppp/031702145
Topic Analysis:
Sudoku is a disk nine palaces, each palace is divided into nine small cell. Given certain conditions known digital and solving this eighty-one grid, using logic and reasoning
filled figures 1-9 in other spaces. 1-9 so that each number appears only once in each row, each column and each palace, also known as "squares."
Each number in each row, each column only once
PSP table
Personal Software Process Stages | Estimated time consuming (minutes) | The actual time-consuming (minutes) |
---|---|---|
plan | 30 | 120 |
Estimate how much time this task requires | 1215 | 1500 |
Develop | 60 | 380 |
Needs analysis (including learning new technologies) | 60 | 500 |
Generate design documents | 60 | 300 |
Design Review | 30 | 120 |
Code specifications (development of appropriate norms for the current development) | 60 | 120 |
Specific design | 120 | 240 |
Specific coding | 60 | 240 |
Code Review | 30 | 30 |
Test (self-test, modify the code, submit modifications) | 120 | 120 |
report | 30 | 60 |
testing report | 30 | 30 |
Computing workload | 30 | 30 |
Later summarized, and process improvement plan | 15 | 50 |
total | 1950 | 3840 |
The time calculation is not particularly detailed, next time will be improved in every aspect in fact not remember so clearly
Code
Will speak about the problems encountered it.
Because before no contact Guoshu alone, so we go to understand what the principles of Sudoku, the game play a few games
and because the late procrastination, leading almost to ddl and we have to write a blog and code.
1. First, the command line will not use transmission parameters, here the generation of the code reference to the students
discover main () function parameters write up
int main like (int argc, char * argv [ ]), from the parameter that arfv read [] in
2. pass in argument is a string type, you need to type int, here also checked the Internet the information found atoi () function can be cast directly
3. no idea of the algorithm for Sudoku, Sudoku program has been browsing the web to see before and found two ways, backtracking and depth search algorithm
4. Content data structure almost forgotten, went back to school while the depth search algorithm, a new understanding of the next, that is, has been conducting recursion