During the lectures, I got some information about the assignment 3, and I also learned something about the variable name.
As for the assignment 3, there are two ways to finish this assignment, but in either way, we should learn how to reduce the runtime by avoiding some useless steps. Indeed, when I used my recursive functions, it ran really slowly and in this case, I never succeeded in running a 4 * 4 grid. These improvement will help our functions to work better, and maybe that will make it possible for our functions to run in a 4 * 4 grid. In fact, I have some questions about how to judge whether an improvement can reduce the runtime considerably. I think we will soon learn how to do it.
And as for the variable name. I learned that the if we set a global variable A, and we also set a parameter A for a function. then the function will first refer to the parameter A, rather than the global variable A. That is vital for us, as this may lead to some unexpected error during the running of the program.
The problem I encountered during this week was that I didn't know how to calculate the runtime. I asked one of my friend who had this course before. He told me that I just need to approximately determine what type the function was, and didn't have to add every constant, that made me feel much easier to calculate the runtime.
The problem I encountered during this week was that I didn't know how to calculate the runtime. I asked one of my friend who had this course before. He told me that I just need to approximately determine what type the function was, and didn't have to add every constant, that made me feel much easier to calculate the runtime.
This week is kind of vacant and maybe next time, I should do something by myself to get some improvement. I tried to read the required reading, but just found out that it was kind of difficult for me to understand the documentation. The notes are easier to understand, but now we have no notes. I think maybe the instructor can give us more notes to help us to learn, that will be helpful.
No comments:
Post a Comment