اتمني منكم المساعدة (كتابة خوارزميّات بالجافا)

أرسل من قبل حليمة بولند في الأحد, 2007/09/30 - 6:13pm.

تاريخ التسجيل: 2007-09-30
مشاركات: 1

الجامعة: غير ذلك
الكلية: الهندسة المعلوماتية
المرحلة: السنة الثالثة
الاختصاص: هندسة برمجيات

الخوارزميات الثلاثة :::

1- first fit
2-best fit
3-worst fit

المطلوب كتابتهم بلغة الجافا
--------------------------------------------------------------
1- first fit
* allocate the first hole that is big enough . searching can start either at the beginning of the set holes or where the previous first-fit search ended.
* we can stop searching as soon as we find alarge enough free hole .
---------------------------------------------------------------
2-best fit
* allocate the smallest hole that is big enough .
* we must search the entire list .unless the list is kept ordered by size
* this strategy produces the smallest leftover hole .
---------------------------------------------------------------
3-worst fit
* allocate the largest hole . again we must search the entire list .unless it is sorted by size .
*this strategy produces the largest leftovet hole .which my be more useful. tha smaller leftover hole from abest fit aproach .

تحياتي الكم
اختكم حليمة

____

يرجى إستخدام عناوين معبّرة. -- الإشراف

 
دخول أو تسجيل لإرسال التعليقات | قراءة: 175