منتدى طلاب وطالبات الجامعة السعودية الإلكترونية

منتدى طلاب وطالبات الجامعة السعودية الإلكترونية (https://www.alseu.com/)
-   CS 141 (https://www.alseu.com/f79/)
-   -   شاركونا الحل CS-141 Assignment 3 _ Dec 2017 (https://www.alseu.com/t27057/)

San 04-12-2017 07:25 PM

شاركونا الحل CS-141 Assignment 3 _ Dec 2017
 
نحتاج مشاركة الجميع لحل الواجب الثالث .... فلا تبخلوا علينا ،،،
وللجميع الدعاء بالتوفيق .

San 05-12-2017 07:18 PM

ننتظر مشاركاتكم على احر من الجمر .!!؟؟

عبدالإله- 05-12-2017 07:49 PM

Q1

Advantages:
•**The linear search is simple - It is very easy to understand and implement;
•**It does not require the data in the array to be stored in any particular order.


Disadvantages:
•**The linear search is inefficient - If the array being searched contains 20,000 elements, the algorithm will have to look at all 20,000 elements in order to find a value in the last element. In an average case, an item is just as likely to be found near the beginning of the array as near the end. Typically, for an array of N items, the linear search will locate an item in N/2 attempts. If an array has 50,000 elements, the linear search will make a comparison with 25,000 of them in a typical case. This is assuming that the search item is consistently found in the array.

San 05-12-2017 07:54 PM

سلمت يداك يا عبدالاله quuuush

iNaif 05-12-2017 07:55 PM

السؤال الرابع احد حلة

iagrainee 05-12-2017 08:03 PM

passes required to sort.
Passes 6 5 4 2 3
5 5 6 4 2 3
4 4 5 6 2 3
2 2 4 5 6 3
3 2 3 4 5 6

هذا حلي لسؤال الثاني ولا ادري صح او خطا


الساعة الآن 01:46 PM

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.6.1 TranZ By Almuhajir

Security team