العودة   منتدى طلاب وطالبات الجامعة السعودية الإلكترونية > كلية الحوسبه والمعلوماتية > قسم تقنية المعلومات > IT 344
أو البريد الالكتروني
 
مساحة إعلانية متاحة    مساحة إعلانية متاحة 

 

     
إضافة رد
 
LinkBack أدوات الموضوع انواع عرض الموضوع
قديم منذ /14-10-2017, 02:16 PM   #1

طالب نشيط

hawad غير متواجد حالياً

 

مواضيعي | ردودي

 رقم العضوية : 14091
 تاريخ الإنتساب : Apr 2015
 المشاركات : 229
 الجنس : ذكر
 مستوى التقييم : hawad is on a distinguished road
النقاط : 34

شكراً: 3
تم شكره 19 مرة في 10 مشاركة
افتراضي الواجب الاول التسليم 15/10 بكرة نتساعد بالحل


ياليت نتساعد بالحل

بكرة يسكر البرنامج








الملفات المرفقة
نوع الملف: docx Assignment 1-DBMS (1).docx‏ (143.0 كيلوبايت, المشاهدات 24)
  رد مع اقتباس
الأعضاء الذين قالوا شكراً لـ hawad على المشاركة المفيدة:

قديم منذ /15-10-2017, 01:01 AM   #2

طالب جديد

iiisalehiii غير متواجد حالياً

 

مواضيعي | ردودي

 رقم العضوية : 11826
 تاريخ الإنتساب : Oct 2014
 المشاركات : 4
 الجنس : ذكر
 مستوى التقييم : iiisalehiii is on a distinguished road
النقاط : 0

شكراً: 0
تم شكره 0 مرة في 0 مشاركة
افتراضي


حل الاسؤال الاول من هذا السلايد
Example: Given the following data file EMPLOYEE(NAME, SSN, ADDRESS, JOB, SAL, ... )
Suppose that:
record size R=150 bytes block size B=512 bytes r=3 0000 records
Then, we get:
blocking factor Bfr= B div R= 512 div 150= 3 records/block
number of file blocks b= (r/Bfr)= (3 0000/3)= 10000 blocks
For an index on the SSN field, assume the field size VSSN=9 bytes, assume the record pointer size PR=7 bytes. Then:
index entry size RI=(VSSN+ PR)=(9+7)=16 bytes
index blocking factor BfrI= B div RI= 512 div 16= 32 entries/block
number of index blocks b= (r/ BfrI)= (3 0000/32)= 938 blocks
binary search needs log2bI= log2938= 10 block accesses
This is compared to an average linear search cost of:
(b/2)= 3 0000/2= 15000 block accesses
If the file records are ordered, the binary search cost would be:
log2b= log23 0000= 15 block accesses


طبق المعادله ويطلع الجواب كامل
b
الكتاب ص 633
Aprimary indexis an ordered file whose records are of fixed length with two fields,
and it acts like an access structure to efficiently search for and access the data
records in a data file. The first field is of the same data type as the ordering key
field—called the primary key—of the data file, and the second field is a pointer to a
disk block (a block address). There is one index entry (orindex record) in the
index file for each blockin the data file. Each index entry has the value of the primary key field for the first record in a block and a pointer to that block as its two
field values. We will refer to the two field values of index entry ias <K(i),P(i)>.
To create a primary index on the ordered file shown in Figure 17.7, we use the Name
field as primary key, because that is the ordering key field of the file (assuming that
each value ofNameis unique). Each entry in the index has a Namevalue and a
pointer. The first three index entries are as follows:
<K(1) = (Aaron, Ed),P(1) = address of block 1>
<K(2) = (Adams, John),P(2) = address of block 2>
<K(3) = (Alexander, Ed),P(3) = address of block 3>
Figure 18.1 illustrates this primary index. The total number of entries in the index is
the same as the number of disk blocksin the ordered data file. The first record in each
block of the data file is called the anchor recordof the block, or simply the block
anchor.
2
Indexes can also be characterized as dense or sparse. A dense indexhas an index
entry for every search key value(and hence every record) in the data file. A sparse
(ornondense)index, on the other hand, has index entries for only some of the
search values. A sparse index has fewer entries than the number of records in the
file. Thus, a primary index is a nondense (sparse) index, since it includes an entry
for each disk block of the data file and the keys of its anchor record rather than for
every search value (or every record).








  رد مع اقتباس
قديم منذ /15-10-2017, 03:57 AM   #3

طالب جديد

yahyanayer غير متواجد حالياً

 

مواضيعي | ردودي

 رقم العضوية : 6343
 تاريخ الإنتساب : Sep 2013
 المشاركات : 45
 الجنس : ذكر
 مستوى التقييم : yahyanayer is on a distinguished road
النقاط : 0

شكراً: 4
تم شكره 8 مرة في مشاركة واحدة
افتراضي


هذا حل الاستاذ ممدوح بعد السماح بالنشر منه والشكر موصول للاخت rana

Assignment 1-DBMS (1).docx

بالتوفيق للجميع ولا تنسوا التعديل








  رد مع اقتباس
قديم منذ /15-10-2017, 03:57 PM   #4

طالب نشيط

hawad غير متواجد حالياً

 

مواضيعي | ردودي

 رقم العضوية : 14091
 تاريخ الإنتساب : Apr 2015
 المشاركات : 229
 الجنس : ذكر
 مستوى التقييم : hawad is on a distinguished road
النقاط : 34

شكراً: 3
تم شكره 19 مرة في 10 مشاركة
افتراضي


مشكورين الله يوفقكم








  رد مع اقتباس
قديم منذ /15-10-2017, 04:11 PM   #5

طالب جديد

بنت الشرقية غير متواجد حالياً

 

مواضيعي | ردودي

 رقم العضوية : 12065
 تاريخ الإنتساب : Nov 2014
 المشاركات : 18
 الجنس : أنثى
 مستوى التقييم : بنت الشرقية is on a distinguished road
النقاط : 0

شكراً: 1
تم شكره مرة واحدة في مشاركة واحدة
افتراضي


جزاكم الله خير








  رد مع اقتباس
قديم منذ /15-10-2017, 04:25 PM   #6

طالب نشيط

hawad غير متواجد حالياً

 

مواضيعي | ردودي

 رقم العضوية : 14091
 تاريخ الإنتساب : Apr 2015
 المشاركات : 229
 الجنس : ذكر
 مستوى التقييم : hawad is on a distinguished road
النقاط : 34

شكراً: 3
تم شكره 19 مرة في 10 مشاركة
افتراضي


المادة صعبة مو زي المادة الاولى

اتمنى نتساعد عليها ونحط ملفات شرح فيديو

الله يوفقكم








  رد مع اقتباس
قديم منذ /15-10-2017, 07:33 PM   #7

طالب جديد

علاوي1 غير متواجد حالياً

 

مواضيعي | ردودي

 رقم العضوية : 17309
 تاريخ الإنتساب : Oct 2015
 المشاركات : 20
 الجنس : ذكر
 مستوى التقييم : علاوي1 is on a distinguished road
النقاط : 0

شكراً: 1
تم شكره 2 مرة في مشاركة واحدة
افتراضي


شكرا للجميع

بالتوفيق انشاء الله








  رد مع اقتباس
قديم منذ /18-10-2017, 01:06 AM   #8

طالب جديد

Mazenlal غير متواجد حالياً

 

مواضيعي | ردودي

 رقم العضوية : 14761
 تاريخ الإنتساب : May 2015
 المشاركات : 23
 الجنس : ذكر
 مستوى التقييم : Mazenlal is on a distinguished road
النقاط : 0

شكراً: 9
تم شكره 0 مرة في 0 مشاركة
افتراضي


الله يعطيكم العافيه








  رد مع اقتباس
إضافة رد

مواقع النشر (المفضلة)

أدوات الموضوع
انواع عرض الموضوع

تعليمات المشاركة
لا تستطيع إضافة مواضيع جديدة
لا تستطيع الرد على المواضيع
لا تستطيع إرفاق ملفات
لا تستطيع تعديل مشاركاتك

BB code is متاحة
كود [IMG] متاحة
كود HTML معطلة
Trackbacks are متاحة
Pingbacks are متاحة
Refbacks are متاحة