انت هنا الان : شبكة جامعة بابل > موقع الكلية > نظام التعليم الالكتروني > مشاهدة المحاضرة

Lec4-PL-Python: Recursive Functions

Share |
الكلية كلية تكنولوجيا المعلومات     القسم قسم شبكات المعلومات     المرحلة 1
أستاذ المادة رائد نصر كاظم العبيدي       16/03/2019 09:10:11
1. Introduction
We mentioned the structure of the function in the previous lecture as well as we highlighted many types of function, which may be utilized in Python. We also briefly noted that Python supports many inbuilt functions. In some cases, you can decompose a complex problem into smaller problems of exactly the same form. In these cases, functions can call other functions and that sometimes this helps to make a complex problem more manageable in some way. It turns out that not only can functions call other functions but the sub-problems can all be solved by using the same function. This design strategy is called recursive design, and the resulting functions are called recursive functions.

2. Function Call Another Function
It is important to understand that each of the functions we write can be used and called from other functions in the same program. This is one of the most important ways that computer scientists take a large problem and break it down into a group of smaller problems. This process of breaking a problem into smaller sub-problems is called functional decomposition.


المادة المعروضة اعلاه هي مدخل الى المحاضرة المرفوعة بواسطة استاذ(ة) المادة . وقد تبدو لك غير متكاملة . حيث يضع استاذ المادة في بعض الاحيان فقط الجزء الاول من المحاضرة من اجل الاطلاع على ما ستقوم بتحميله لاحقا . في نظام التعليم الالكتروني نوفر هذه الخدمة لكي نبقيك على اطلاع حول محتوى الملف الذي ستقوم بتحميله .
الرجوع الى لوحة التحكم