سوال ۶۳ کنکور ارشد علوم کامپیوتر ۱۴۰۲
اهمیت
۰/۵
با توجه به رابطه بازگشتی زیر، از چه مرتبهای است؟
پاسخ صحیح: گزینهٔ C —
پاسخ تشریحی
The recurrence relates the value at the cube to the value at the previous cube . The trick is to unroll over the cube arguments, then change variables back at the end.
Unroll the recurrence. Starting from the argument and stepping down through :
Each descent peels off one term, so
Change variables. Let , so that . Substituting back:
Renaming to , we get , which is option 3.
Exam trick: When the recurrence's argument is a function of (here , not ), sum the costs in the natural variable first ( here), then translate the answer back into the actual input size via the inverse map ().
#recurrence-relation#variable-substitution#asymptotic-analysis#subtract-and-conquer#big-theta