久久久久久精品无码人妻_青春草无码精品视频在线观_无码精品国产VA在线观看_国产色无码专区在线观看

代寫COMPSCI 351、代做Java/c++程序語言

時間:2024-05-24  來源:  作者: 我要糾錯



Total Points (Weight): 100 (10%)
Assignment 3
COMPSCI 351-751/SOFTENG 351:
Database Systems
Due: 31 May at 11:59 pm 2024
1 Query Processing [10 marks]
Consider the join r ▷◁ s of two relations r and s whose common attribute set is {A}. Physically, r is stored
on 25 blocks and s on 21 blocks on the disk, tuples in both relations are unordered. Assume that the buffer
pool allocated for carrying out the join has 3 frames. Compare block nested-loop join against merge join in
facilitating r ▷◁ s by analyzing their I/O costs. The I/Os for exporting the ffnal joined results to the disk is called
the reporting cost, which shall be excluded from the calculation of the I/Os of r ▷◁ s, because the reporting
costs of both nested-loop join and merge join cancel each other out in the comparison. Speciffcally,
(A) Compute the # of I/Os, excluding the reporting cost, engaged by block nested-loop join. [5 marks]
(B) Compute the # of I/Os, excluding the reporting cost, engaged by merge join in the worst-case and
best-case scenarios, respectively. Here a scenario indicates an instantiation of the tuples in r and s. [5
marks]
2 Query Processing [10 marks]
Consider three relations r1(A, B, C), r2(C, D, E), and r3(E, F), with primary keys A,C, and E, respectively.
Assume that relation r1 has 1000 tuples, r2 has 1500 tuples, and r3 has 750 tuples.
(A) Compute the size of r1 ▷◁ r2 ▷◁ r3. [4 marks]
(B) Assume that each relation has a primary index (B+tree) based on its key. Give two strategies (explicitly
show what to report as the result) for computing the join. Note that you can use ffle scan, sorting, and
index to ffnd the resulting tuples. For example, a strategy could be an execution plan below. Speciffcally,
sort r1 based on attribute C. Perform a merge join on r1 and r2 to produce intermediate relation
r12 = r1 ▷◁ r2. Materialize r12 to the disk. For each tuple t12 ∈ r12, use the index of r3 to ffnd the tuple
t3 ∈ r3 that can join t12, report t12 ▷◁ t3. [6 marks]
▷◁: index-based block nested loop join
▷◁: merge join
r1 r2
r3
3 Locking Protocol [40 marks]
Recall the Consistency of Transactions: Actions and locks must relate in the expected ways:
• A transaction can only read or write an element if it previously was granted a lock on the element and
hasn’t yet released the lock.
• If a transaction locks an element, it must later unlock that element.
For each of the transactions described below, suppose that we insert one lock and one unlock action for each
database element that is accessed. Calculate how many sequence orders of the lock, unlock, read, and write
actions are in the following cases. Please show your working. (Note: the order of the data access operations
shall not be affected.)
T1: r1(A), w1(B)
T2: r2(A), w2(A), w2(B).
(A) Consistent and two-phase locked. [10 marks]
(B) Consistent, but not two-phase locked. [4 marks]
(C) Inconsistent, but two-phase locked. [20 marks]
(D) Neither consistent nor two-phase locked. [6 marks]
14 Transaction State [10 marks]
During execution, a transaction passes through several states until it ffnally terminates.
• List all possible sequences of states (i.e., path) through which a transaction may pass. [6 marks]
• Explain the state that each possible path may occur. [4 marks]
5 Deadlock [5 marks]
(A) Explain the concept of deadlocks. [1 marks]
(B) Provide two possible solutions to deadlocks. Explain your answer. [4 marks]
6 Recovery [10 marks]
The following ffgure shows the log corresponding to a particular schedule at the point of a system crash for four
transactions T1, T2, T3, and T4. Suppose that we use immediate update protocol with check-pointing. Describe
the recovery process from the system crash. Specify which transactions are rolled back, which operations in
the log are redone and which are undone and whether any cascading rollback takes places.
7 NoSQL [15 marks]
Describe a scenario in which one would prefer, respectively, as the data storage solution of a data-intensive
application, explain your reason.
(A) Document Database [3 marks]
(B) Graph Database [3 marks]
(C) Log-structured Storage (LSM) [3 marks]
(D) Column Store [3 marks]
(E) Traditional Relational Database [3 marks]
28 Bloom Filter [5 marks]
Explain the data structure of a bloom fflter and why it is used in the LSM tree.
9 Storage and Retrieval Efffciency [5 marks]
List give techniques, introduced in the course, that can improve the efffciency of data storage and retrieval of a
database system.
10 Application [5 marks]
A popular social mobile app has three functions for each user: sending messages to contacts, receiving
messages from contacts, and displaying the number of unread messages in the upper right corner of the app
logo. Once the user is online, the app is supposed to show all the unread messages to the user. However, user
feedback indicates an inconsistency between the displayed number of unread messages and the actual number.
Speciffcally, when the displayed number increases, users often have to wait for a long time (sometimes several
minutes) to see the new messages, during which the displayed number remains inconsistent with the actual
number of unread messages. Similarly, when users have read all the unread messages, it takes a long time
(sometimes several minutes) for the number to be updated accordingly. Among the following statements,
which could be possible reasons for the above inconsistency?
(A) For each user, the storage solution of the app only keeps a list of out-bounding messages.
(B) For each user, the storage solution of the app only keeps a list of in-bounding messages.
(C) The app treats users with a high number of contacts differently with the other users.
(D) The app has a cache for some of the users in storing their received message.
(E) The app cannot handle the load produced by the current users while a more scalable architecture should
be deployed.
請加QQ:99515681  郵箱:99515681@qq.com   WX:codinghelp












 

標簽:

掃一掃在手機打開當前頁
  • 上一篇:COMP30023代做、代寫C/C++編程語言
  • 下一篇:代寫股票公式 代寫選股標 代做見妖發財副圖指標
  • 無相關信息
    昆明生活資訊

    昆明圖文信息
    蝴蝶泉(4A)-大理旅游
    蝴蝶泉(4A)-大理旅游
    油炸竹蟲
    油炸竹蟲
    酸筍煮魚(雞)
    酸筍煮魚(雞)
    竹筒飯
    竹筒飯
    香茅草烤魚
    香茅草烤魚
    檸檬烤魚
    檸檬烤魚
    昆明西山國家級風景名勝區
    昆明西山國家級風景名勝區
    昆明旅游索道攻略
    昆明旅游索道攻略
  • 短信驗證碼平臺 理財 WPS下載

    關于我們 | 打賞支持 | 廣告服務 | 聯系我們 | 網站地圖 | 免責聲明 | 幫助中心 | 友情鏈接 |

    Copyright © 2025 kmw.cc Inc. All Rights Reserved. 昆明網 版權所有
    ICP備06013414號-3 公安備 42010502001045

    久久久久久精品无码人妻_青春草无码精品视频在线观_无码精品国产VA在线观看_国产色无码专区在线观看

    日韩av影视大全| 91免费视频黄| 成人手机视频在线| 我的公把我弄高潮了视频| 无码日韩人妻精品久久蜜桃| 黄色污污在线观看| 日韩一级理论片| 97碰在线视频| 国产永久免费网站| 久久久久狠狠高潮亚洲精品| 久久亚洲a v| av亚洲天堂网| 亚洲精品乱码久久久久久自慰| 精品少妇人妻av一区二区| 三年中国国语在线播放免费| 黄色a级片免费看| 欧美伦理片在线观看| 99精品在线免费视频| 免费成人深夜夜行网站视频| www.激情小说.com| 波多野结衣之无限发射| 欧美精品一区二区性色a+v| 黄大色黄女片18第一次| 国产欧美高清在线| 婷婷无套内射影院| 少妇一晚三次一区二区三区| 色婷婷激情视频| 国产 porn| 男人揉女人奶房视频60分 | 成年人网站大全| 免费不卡av在线| 欧美 国产 精品| 日本免费在线视频观看| www.超碰97.com| 五月婷婷丁香综合网| 国产成人精品无码播放| 欧美啪啪免费视频| 国产精品999视频| 777av视频| 欧美人成在线观看| 久久在线中文字幕| 欧美一区二区激情| 欧妇女乱妇女乱视频| 日韩成人三级视频| www.国产亚洲| 欧美极品少妇无套实战| 丁香六月激情婷婷| 日韩美女爱爱视频| 国产色一区二区三区| 欧美大黑帍在线播放| 三级在线免费观看| 日韩在线观看a| 日本十八禁视频无遮挡| 男人的天堂狠狠干| 欧美在线观看成人| 国产激情在线观看视频| 中文字幕第80页| 国产精品视频分类| 三级黄色片免费看| 日日噜噜夜夜狠狠久久丁香五月| 中文字幕综合在线观看| 51xx午夜影福利| 岛国大片在线播放| 欧美一区二区三区爽大粗免费| av动漫在线看| 午夜免费精品视频| 国产精品999.| 加勒比海盗1在线观看免费国语版| 日韩欧美视频免费在线观看| 国产美女主播在线| 99精品免费在线观看| www.夜夜爽| 免费观看国产视频在线| 2018国产在线| 久久婷婷国产91天堂综合精品| 爱豆国产剧免费观看大全剧苏畅| dy888午夜| 欧美 日韩 国产 高清| 麻豆传传媒久久久爱| 在线观看亚洲色图| 久久av秘一区二区三区| 国产精品视频网站在线观看| av免费观看网| 亚洲国产日韩欧美在线观看| www亚洲国产| 欧美 日本 亚洲| 黄色小视频免费网站| 成人区一区二区| 午夜欧美福利视频| 青青草综合视频| 日本一本二本在线观看| 99精品999| 性欧美大战久久久久久久| 日本久久久久久久久久久久| 强开小嫩苞一区二区三区网站| 国产最新免费视频| 日韩欧美色视频| 免费一级特黄毛片| 亚洲18在线看污www麻豆| 无码中文字幕色专区| 中文字幕中文在线| 野外做受又硬又粗又大视频√| 亚洲综合在线网站| 800av在线免费观看| 欧美男女交配视频| 国产人妻777人伦精品hd| 一级黄色片国产| 免费在线观看的av网站| 天堂v在线视频| 日韩手机在线观看视频| 国产精品igao激情视频| av污在线观看| 国产免费黄色av| 成人国产在线看| 中文字幕av不卡在线| 免费av手机在线观看| 午夜啪啪免费视频| 午夜免费福利在线| 国自产拍偷拍精品啪啪一区二区| 国产精品久久久久久久99| 黄色动漫在线免费看| 亚洲精品天堂成人片av在线播放| 亚洲成人av免费看| 国产中文字幕视频在线观看| 超级碰在线观看| 伊人国产在线视频| 欧美激情精品久久久久久小说| 日本一本中文字幕| 9l视频自拍9l视频自拍| 午夜剧场高清版免费观看| 久久无码高潮喷水| 日韩一区二区高清视频| 特级毛片在线免费观看| 国产一伦一伦一伦| 最近免费中文字幕中文高清百度| 成人午夜免费在线| 中文字幕色呦呦| 国产又大又长又粗又黄| 天天干天天色天天干| 亚洲福利精品视频| 国产裸体免费无遮挡| 国产素人在线观看| av免费观看国产| 欧美日韩激情四射| 男人的天堂视频在线| 青少年xxxxx性开放hg| 在线观看免费污视频| 另类小说色综合| 国产三级三级三级看三级| 精品久久久久久久免费人妻| 黄色一级片播放| 男人日女人bb视频| 国产aaa一级片| 精品久久久久av| 久久婷婷国产精品| 国产裸体舞一区二区三区| 久久精品免费一区二区| 国产在线精品91| 久久国产精品视频在线观看| 草草视频在线免费观看| 成人一级生活片| 妺妺窝人体色www看人体| 日韩精品免费一区| 91传媒免费视频| 国产成a人亚洲精v品在线观看| 97av中文字幕| 久久久性生活视频| 免费无码国产v片在线观看| 日韩avxxx| 亚洲第一中文av| 黄色aaaaaa| 91免费网站视频| 在线观看av的网址| 国产精品久久久久久久乖乖| 免费拍拍拍网站| 久久久999免费视频| 国产成人手机视频| 国产精品视频中文字幕| 91蝌蚪视频在线| 欧美大黑帍在线播放| 可以在线看的av网站| 亚洲一区二区蜜桃| 污网站在线免费| 一级性生活视频| 精品99在线视频| 亚洲天堂2018av| 成人污网站在线观看| 日韩精品―中文字幕| 狠狠热免费视频| 一级全黄肉体裸体全过程| 国产日韩欧美精品在线观看| 欧美女人性生活视频| 手机av在线网| 日本大片免费看| 人人爽人人av| 日本xxx免费| 激情网站五月天| 国内精品国产三级国产aⅴ久| 久草视频国产在线| 国产高清视频网站|