Thứ Năm, 11 tháng 8, 2011

Problems solving

    Long time ago, I had a chance to study "Creative thinking" with Prof. Phan Dung. Although I don't remember all the names of those techniques, but actually I still remember the main ideas and the applying context of them.
    At this time, I need to implement a function which produces a template for the expression. The problem is that I have 2 different templates, and I need to create a new one base on one of them. My first approach, called 'inside-out', is to use replacement technique. It took 2 days to think about this, those templates are singleton, so I need to access them by calling recursive function. Controlling 2 different recursive functions to produce a new one is quite complicated. That's the main problem.
    After failing with this approach, I turn to another one, creating a completely new template. I just need to get new information, and gather together and that's it. This approach is called 'outside-in'.
    Finally, I can solve my problem without too much difficulties. Thanks God!

Không có nhận xét nào: