首页 > 其他分享 >DTS207TC Database Development and Design

DTS207TC Database Development and Design

时间:2024-12-16 19:52:56浏览次数:6  
标签:Development code matrix Provide DTS207TC running Design table your

Module code and Title

Database Development and Design (DTS207TC)

School Title

School of AI and Advanced Computing

Assignment Title

001: Assessment Task 1 (CW)

Submission Deadline

23:59, 15th Dec (Friday)

Final Word Count

NA

Database Development and Design (DTS207TC)

Assessment 001: Individual Coursework

Due: Dec 15th, 2024 @ 23:59 Weight60%

Maximum Marks: 100

Overview & Outcomes

This course work will be assessed for the following learning outcomes:

A. Identify and apply the principles underpinning transaction management within DBMS.

B. Demonstrate an understanding of advanced SQL topics.

E. State the main concepts in data warehousing and data mining.

Submission

You must submit the following files to LMO: 1)A report named as Your_Student_ID.pdf.

2)A directory containing all your source code, named as Your_Student_ID_code.

NOTE: The report shall be in A4 size, size 11 font, and shall not exceed 8 pages in length. You can include only key code snippets in your reports. The complete source code can be placed in the attachment.

Assessment Tasks

Matrix multiplication is a fundamental operation in linear algebra where two matrices are multiplied to produce a new matrix. Specifically, if we have two matrices A and B, the product  of these matrices, denoted as AB,代写DTS207TC Database Development and Design is calculated by taking the dot product of the rows of A with the columns of B. For example, for two matrices of dimension 2x2, their matrix multiplication formula is

 

To test your proficiency in SQL under an open-book setting, this assignment requires you to implement matrix multiplication using SQL. It is divided into the following steps:

1)   The Python function in the attachment is capable of generating an N-dimensional square

matrix composed of random numbers in the format of (row_id, col_id, value). First, use a Python program to invoke this function and generate such a matrix, then import it into a table M in PostgreSQL. Additionally, discuss the impact of database transaction mechanisms on the performance of record insertion. Record the program running time (ideally, <10s) when N=500 and take a screenshot. (20 marks)

2)   Perform. a “pivot” operation on the table M from 1) (write the PL/pgSQL manually without using crosstab) to generate a data table A. You can design your own schema for table A,  but ensure that each row of the matrix is placed in a separate record. Note that N cannot be predetermined in the program. Provide a screenshot of the computation results when  N=3 and perform. a correctness check. Provide another screenshot of the running time (ideally, <1s) when N=500. (20 marks)

3)   Using PL/pgSQL, perform a matrix transposition on table A from 2) and store the results in another table with the same schema as A. Provide a screenshot of the computation results when N=3 and perform. a correctness check. Provide another screenshot of the running time (ideally, <1s) when N=500. (20 marks)

4)   Using PL/pgSQL, calculate the matrix multiplication of the matrix stored in table A from 2) with itself, and store the results in another table with the same schema as A. Provide a screenshot of the computation results when N=3 and perform. a correctness check. Provide another screenshot of the running time (ideally, <1 min) when N=500. (20 marks)

5)   For the above tasks 1-4, check the program's running time when N=1700. Provide

corresponding screenshots. The ideal running times should not exceed: 2 minutes for task 1, 10 seconds for task 2, 10 seconds for task 3, and 30 minutes for task 4. (20 marks)

NOTE:

a.    Provide a brief introduction to the program logic in your own words; including code snippets is encouraged, but please do not directly paste the entire program into the report without explanation;

b.   For your full academic development, the use of generative AI to gain inspiration is allowed  for this assignment; however, out of mutual respect, please do not directly paste its output into your assignment and submit it;

c.   To prove that you have indeed completed this assignment and did not rely solely on generative AI, please provide screenshots of the running results for each task.

 

标签:Development,code,matrix,Provide,DTS207TC,running,Design,table,your
From: https://www.cnblogs.com/CSE2425/p/18611025

相关文章

  • EEEE 2067 - Design and Implementation of Engineering
    EEEE2067-DesignandImplementationofEngineeringSoftwareDepartmentofElectricalandElectronicEngineeringCourseworkAutumn2024/25“IntelligentRecyclingMachine”Thiscourseworkconstitutes40%ofyourtotalassessmentinthismodule.LOAddress......
  • Ant Design Vue使用a-table动态设置columns
    一、需求一个页面显示多个列表数据,需要改变表头columns参数等二、问题1、设置columns之后,因为a-table中的columns、data-source是响应式的,所以可以看到切换渲染是可以正常完成的,数据、表头都是正常的。2、由于列表数据除了直接取过来显示的之外,还有部分数据需要根据值进行判断......
  • M1安装pyqt5,pyqt5-tools,pyqt5designer
    M1安装pyqt5,pyqt5-tools,pyqt5designerpycharm可以安装pyqt5,安装pyqt5-tools,pyqt5designer都失败了。 在终端中输入:1brewinstallqt在这里brew会重新安装一个python,我这里安装的是python3.9.7版本。 按照网上的说法,使用homebrew下载这几个库,下载的python版......
  • Zuul powers some of the largest Open Source development efforts
    ZuulpowerssomeofthelargestOpenSourcedevelopmenteffortshttps://zuul-ci.org/ ProjectGatingKeepyourbuildsevergreenbyautomaticallymergingchangesonlyiftheypasstests.CI/CDwithAnsibleUsethesameAnsibleplaybookstodeployyours......
  • VS内置QT插件,打开QT项目,直接用QT Designer打开ui文件闪退问题
    1.问题点概述VS内集成QT插件和环境下(本例子使用VS2015),创建或者打开QT项目,直接双击打开相关ui文件,几秒后会出现闪退问题,具体如下图所示。闪退后的弹窗报警2.解决方法1.右击ui文件,选择打开方式,在点击右侧“添加”按钮,如图:2.在弹出的添加程序窗口,点击程序那栏的右侧三点标......
  • CS 538 Feature Design
    Homework9:FeatureDesignCS538:ProgrammingLanguagesDeadline:December1323:59Objective:Thisprojectisdesignedtochallengeyourabilitytocondensecomplexinformationintoaclearandinsightfulone-pagedocument.Youwillexploreandcomparea......
  • SpringBoot3+Vue3+ArcoDesign后台管理系统源码 | 小蚂蚁云
     项目介绍基于SpringBoot3、SpringSecurity、MybatisPlus、Vue3、TypeScript、Vite、ArcoDesign、MySQL等技术栈实现的单体前后端分离后台管理系统;后端基于Java语言采用SpringBoot3、SpringSecurity、MybatisPlus、MySQL等主流技术栈,前端基于Vue3、TypeScript、Vite等技术栈......
  • SpringBoot3+Vue3+ArcoDesign | 小蚂蚁云
    项目介绍基于SpringBoot3、SpringSecurity、MybatisPlus、Vue3、TypeScript、Vite、ArcoDesign、MySQL等技术栈实现的单体前后端分离后台管理系统;后端基于Java语言采用SpringBoot3、SpringSecurity、MybatisPlus、MySQL等主流技术栈,前端基于Vue3、TypeScript、Vite等技术栈实......
  • vue ant design 选中搜索数据高亮
    <a-tree:tree-data="treeData"v-model="tree.checkedKeys":expanded-keys="tree.expandedKeys":replaceFields="tree.replaceFields":checkable="tree.checkable&qu......
  • egg+designpro开发内容管理系统实战
    前端架构师egg+designpro开发内容管理系统实战https://www.bilibili.com/video/BV1La411X74h 1+12前端架构师任务1:1.cms-apiwww.zhufengpeixun.cn/architecture/html/30.cms-7-api.html#t63.2%20config/config.default.jsnpmiegg-init-g用cli用模板....https://git......