CS371p Fall 2021: Xuefei Zhao
2 min readOct 24, 2021
- What did you do this past week?
This past week I continued to work on the Allocator project with my partner. It took us a little bit of time to figure out the input to the deallocate method, but the coalescing part was straightforward to us. The implementation of the RunAllocator program was also not hard. I spent a lot of time on the acceptance tests generator. Because each request must be valid, I had to do a lot of checks while writing the test cases. For example, I had to keep track of all the allocation and deallocation requests in the current test case as well as the current status of the container so that I know the largest possible size for an allocation and the number of busy blocks in the containers that I can deallocate. Gladly we got everything working and submitted the assignment much earlier than we expected. - What’s in your way?
I feel I’ve learned a lot from the lectures and the papers, but I didn’t really apply them to my projects, especially the principles discussed in the papers. - What will you do next week?
There’s a lot going on the next week. I have an exam on Thursday and an assignment due on the same day, and I also have an interview on Friday. Besides those, I also have 2 other ongoing projects that I need to meet regularly with my teammates. - If you read it, what did you think of the Paper #8: Interface Segregation Principle?
The Interface Segregation Principle is not a novel idea to me. I think it’s intuitive to have a class that inherits multiple interfaces if the class depends on both of the interfaces. However, an alternative to the approach, as the author mentioned, is the idea of constructing an adapter class. I’ve never seen a real project that uses an adapter class, so I’m a bit confused about what does it mean by doing translations with the adapter class. - What was your experience of algorithms and iterators? (this question will vary, week to week)
I used iterators a lot to iterate through a container. However, I had never looked into the implementation of C++ iterators until this class. And it’s interesting to have different types of iterators that have different capabilities. - What made you happy this week?
I got to take a break from projects and hang out with my friends this weekend. - What’s your pick-of-the-week or tip-of-the-week?
OpenCV is a very powerful tool for computer vision. It contains many popular tools to process images, and it is widely used for image processing in Deep Learning as well as robots perceptions.