Edit History


Edit history of sicp-ex-2.29

RevTimeChangesOperations
Log
52013-06-07 04:17:27+28 -0 line(s)[View this version, source] [Diff to previous]
Added another variation on the 3rd part.
42012-08-05 15:39:11+26 -0 line(s)[View this version, source] [Diff to current|previous]
better balanced? predicate
32011-12-20 17:05:33+0 -1 line(s)[View this version, source] [Diff to current|previous]
A (possible) alternative solution: (define (total-weight mobile) (if (number? (branch-structure mobile)) (branch-structure mobile) (+ (total-weight (left-branch mobile)) (total-weight (right-branch mobile))))) (define (balanced? mobile) (define (torque mobile) (if (number? (branch-structure mobile)) (* (branch-length mobile) (branch-structure mobile)) (- (torque (left-branch mobile)) (torque (right-branch mobile))))) (= (torque (left-branch mobile)) (torque (right-branch mobile))))
22010-02-17 10:16:03+7 -0 line(s)[View this version, source] [Diff to current|previous]
ADD: nav
12007-12-26 20:11:42+159 -0 line(s)[View this version, source] [Diff to current|previous]
initial draft
[Diff from epoch]