L5 - Slide 19 (Corrected) - Execution Trace : Choose(2, 4)...

Info iconThis preview shows page 1. Sign up to view the full content.

View Full Document Right Arrow Icon
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: Execution Trace : Choose(2, 4) c(2,4) ret c(1,3) + c(2,3) c(1,3) ret c(0,2) + c(1,2) c(2,3) ret c(1,2) + c(2,2) c(0,2) return 1 c(1,2) ret c(0,1) + c(1,1) c(1,2) ret c(0,1)+c(1,1) c(2,2) return 1 c(0,1) return 1 c(1,1) return 1 c(0,1) return 1 c(1,1) return 1 The final answer is the sum of those base cases [CS1102C AY0708S1 L5] 19 --71 ...
View Full Document

This note was uploaded on 08/02/2009 for the course ECE CS1102C taught by Professor Dr.tansuntuck during the Spring '07 term at National University of Singapore.

Ask a homework question - tutors are online