ENع
الدرس 22 · Algorithms

Dynamic programming

لم يُترجم بعد؛ يُعرض باللغة الإنجليزية

Some problems ask the same smaller questions over and over. Plain recursion for the 30th Fibonacci number makes over 2.6 million calls, yet there are only 31 different questions. Dynamic programming stores each answer once and reuses it. Watch a table of memory cells fill left to right, first with Fibonacci numbers, then with the fewest coins for each amount.

12 دقيقة12 خطوات5 أسئلةIntermediate
شكل 22 · تفاعلي
جارٍ تحميل الرسم…
أو ← →

اختبار يتاح بعد الخطوة الأخيرة.