

Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
Prepare for your exams
Study with the several resources on Docsity
Earn points to download
Earn points by helping other students or get them with a premium plan
Information about a university homework assignment for a database management system course. The assignment includes four problems related to the relational data model, array-based data modeling, null values in boolean columns, and r-tree indexing for high dimensional data. Students are required to submit hard copies of their solutions and email digital copies to the ta.
Typology: Assignments
1 / 3
This page cannot be seen from the preview
Don't miss anything!


NOTE : Please submit a hard copy of your homework. Bring it to the lecture table at the beginning of the lecture on 12th September, 2007. The hard copy should be as clearly readable as possible. You may be subtracted points for unreadability and ugly presentation.
I2CS Students : You should email your solutions to the TA([email protected]) in the pdf or the word format. Please send your email with subject “ CS511-HW1 ” and solution file attached by 2PM UIUC time (CST).
Problem 1: Relational Model [20 Pts]
Briefly mention two flaws of the relational data model.
Relational model has bunch of shortcomings. For instance:
Problem 2: Relational Model [30 Pts]
Scientists use multiple sensors to gather temperature information of a specific object in scientific observations in order to obtain exact result. Each sensor observes temperature information every second, and sends the data to the main server to be stored on specific times. A sensor would sometime report nothing (null value) or wrong value due to the physical problems. Scientists have to use data from all sensors to find out the most precise temperature at each time. Hence, they merge and take average of the observed data for each time spot. They also compute differences among data gathered in different times, or compound them to see temperature behavior during longer time period. One dimensional array is a good fit to represent this data. Specify and formulate an exact data model to represent the data and an algebra that covers the required operations. You could add additional data item(s) to the array structure in your model.
Problem asks for array based model. In this model the basic elements instead of relation, is one dimensional array. Each observation could be modeled by an array A [N+M], which stores observations over N time steps. Extra M element could be used to store information like the starting time of observation and so on. We use just the observation start time here. In order to cover the final operations we will need the following basic operations:
It is easy to show that having a database management system based on the above model; the required operations could be implemented. We can formulate the required operations like difference among two arrays as basic operations, but it is redundant.
Obviously there could be various solutions for this problem. The solutions that had redundant operations were given complete points. Relation based models were given complete points as well.
Problem 3: System R [30 Pts]
In relational database management systems like system R when user does not assign any value to a column in a row, it is tagged by especial value called null. 1- Give two different interpretations of having a null value in a column of type Boolean. 2- Logical conjunction ( AND ) and logical disjunction ( OR ) consider just true and false as their input and output values. For each interpretation in previous part, create a new truth table for those operations that includes null value.
Operand 1 Operand 2 AND OR TRUE NULL NULL TRUE FALSE NULL FALSE NULL NULL NULL NULL NULL