Beruflich Dokumente
Kultur Dokumente
2.)
Example: An order would not exist without a product and a person to create the order, so it could be argued that an order would be described as a weak entity and that products ordered would be a multivalued attribute of the order.
Generalization: Process of minimizing differences between entities by identifying their common characteristics. Generalization and Specialization are important relationships that exist between a higher level entity set and one or lower level entity sets. Generalization is the result of taking the union of two or lower level entity sets to produce a higher level entity sets. In Generalization, each higher level entity must also be a lower level entity. In specialization, some higher level entities may not have lower-level entity sets at all. 4.) Differentiate between static and dynamic hash functions. Ans: Static hashing: In static hashing, the hash function maps search-key values to a fixed set of locations. Static Hashing has the number of primary pages in the directory fixed. Thus, when a bucket is full, we need an overflow bucket to store any additional records that hash to the full bucket. When searching for a record, the original bucket is accessed first, then the overflow buckets. Provided there are many keys that hash to the same bucket, locating a record may require accessing multiple pages on disk, which greatly degrades performance. Dynamic hashing: In dynamic hashing a hash table can grow to handle more items. The associated hash function must change as the table grows. The problem of lengthy searching of overflow buckets is solved by Dynamic Hashing. In Dynamic Hashing the size of the directory grows with the number of collisions to accommodate new records and avoid long overflow page chains. Extendible and Linear Hashing are two dynamic hashing techniques.