Saturday, October 25, 2008

Non-equivalent Ternary Tree.

After several weeks' study on induction prove. I gotta a better sense about the ternary tree question than I was first time doing assignment 1. This question is interesting now. I checked some books about the property of trees. I kinda found a closed form formula for this question. which is 3n!/(2n!n!(2n+1)). However, It is kinda not that easy to prove. My way to solve this problem is using Sigma for different trees and get the product of them. It is sound silly comparing to that perfectly closed form formula, but it is easy to proof, and understand. 

1 comment:

Assad (Sid) Quraishi said...

Hey! I'm another csc236 student in the night class. Just wondering, how did you come around to that closed form formula? It seems pretty abstract. I just went with the sigma's they made more sense to me. Basically I thought about how a program would run to do such a question and put that into the math symbols I knew, sigma being the most convenient. How did you end up doing it in the long run?