2014年3月9日星期日
Week 8
The deadline of part 1 of the assginment 2 is Sunday and I started to work on it on Saturday. Well I know I'm a lazy guy lol...At first I didn't understand the question well. Why does Dan let us use multiclass rather than a single class? Then I logged into the Discussion Board and found that so many students get confused on that part. I thought a lot about that and finally figured out that different roots has different number of children so we need different classes. The most complicated part is how to transfer a regex to a tree. I design a loooooooooong recursive code which made me proud of myself. I tested the code with different sort of regex string and it does work perfectly. What a wonderful day! :)
订阅:
博文评论 (Atom)
没有评论:
发表评论