← Indietro
EsameEsame completoTesto d’esame

21 06 19

Esame completo di Data Bases 2 per il corso di Computer Engineering presso Politecnico di Milano. Materiale proveniente dall’archivio storico Studwiz e classificato per la consultazione online.

Data Bases 2Esame completo

Informazioni sul documento

Cosa trovi in questo materiale

Esame completo di Data Bases 2 per il corso di Computer Engineering presso Politecnico di Milano. Materiale proveniente dall’archivio storico Studwiz e classificato per la consultazione online.

Qualità dell’importazione: il testo è stato estratto direttamente dal documento originale.

Contenuti estratti dal documento

Passaggi rappresentativi riconosciuti nelle diverse parti del materiale. Il testo completo resta presente nella pagina per la ricerca, mentre l’anteprima compatta rende più semplice la lettura.

Pagina 1

DATA BASES 2 – JUNE 21ST, 2019 – DURATION: 2H PROF. SARA COMAI, PROF. DANIELE M. BRAGA A. Active Databases (9 p.) CITY (Name, Description) POINTOFINTEREST (POI, Name, City, Description) DIRECTCONNECTION (FromPOI1, ToPOI2, Distance) The above relational schema stores graphs of Points of Interest (POI) of several cities. Connections are directed: if it is possible to move from POI1 to POI2 and viceversa, then two tuples independently represent the two connections (and of course the distance may not be the same) . Write a set of triggers to implement the following behaviors: (a) upon deletion of a POI the incoming/outgoing connections to/from that POI must be deleted; (b) whenever a city is deleted, all the data related to that city are also deleted; (c) it is forbidden to insert a new DirectConnection from POI1 to POI2 if the distance of such connection is more than 3 times the distance from POI1 to POI2 passing through another POI; (d) if the last POI of a city is deleted, then the city is also deleted. Finally, build the triggering graph and discuss termination of the designed rule set. B. Distributed Deadlock Detection (6 p.) The nodes A, B C of a distributed transactional system are aware of the following remote and local waiting conditions: A: EBt3 ECt2 t1EC t3t5 t5t1 t5t2 B: ECt2 t3EA t2t3 C: t2EA t2EB t1t4 t4t2 Execute the Obermarck’s algorithm twice, with different conventions: • once sending messages of the form EXtitjEY forward (toward node Y) and only if i > j and • once with the “opposite” conventions, i.e., backward (toward node X) and only if i < j. Discuss the outcome, and explain it, taking into account the properties of the algorithm and the initial conditions. C. XML… and a bit of Concurrency Control (9 p.) <!ELEMENT Collection (…

Anteprima

Prima pagina del documento.

Prima pagina: 21 06 19