摘要: For recurrent relation with the following format: $T(n) = a T(\frac{n}{b}) + f(n)$ Let $c=\log_b a$ be the critical exponent . Master theorem compares 阅读全文
posted @ 2018-06-01 14:22 xxx's blog 阅读(176) 评论(0) 推荐(0) 编辑
摘要: A very simple algorithm. print the cartesian product of n sets print_cartesian_product(list_of_sets): out_set=set() print_cartesian_product(list_of_se 阅读全文
posted @ 2018-06-01 12:37 xxx's blog 阅读(305) 评论(0) 推荐(0) 编辑