99爱在线视频这里只有精品_窝窝午夜看片成人精品_日韩精品久久久毛片一区二区_亚洲一区二区久久

合肥生活安徽新聞合肥交通合肥房產生活服務合肥教育合肥招聘合肥旅游文化藝術合肥美食合肥地圖合肥社保合肥醫院企業服務合肥法律

G6017編程代做代寫、MATLAB編程設計代做

時間:2023-12-16  來源:合肥網hfw.cc  作者:hfw.cc 我要糾錯



Program Analysis G6017
Coursework 2
Due: XVAC Week 11 Thursday 21 December 2023 by 4PM
Format: Electronic submissions only by Canvas. You should write your
answers in the blanks in your answer sheet we have provided for
you and submit this answer sheet only. If you want to do your
work in a handwritten form, please print the answer sheet, fill it
properly, and then again scan it and upload the work as a single
PDF document. No paper copies of this submission will be
accepted.
Weighting 50.0 % of the coursework element for this module
25.0 % of the overall module mark
General instructions
1. Answer all of the questions.
2. Show your workings where appropriate. You can still get credit for a question
with an incorrect final answer if your workings show that you understood what
the problem was and how to solve it.
3. Do not copy the work of another student. Plagiarism is a very serious matter.
Discussion between students is to be encouraged – copying is an academic
disciplinary matter.
4. Check that you provide any working or information that the question asks for.
5. Hand your submission in on time. There are penalties for late submission.
6. If I cannot read your submission, I cannot mark it. It is your responsibility to
ensure that the presentation of your submission is appropriate for a University
student.
7. Do not forget to state units if they are relevant and apply to a question.
8. You should use any calculating aids your feel appropriate to help you solve
the problems including, although not limited to, calculators, spreadsheets
such as Excel and MATLAB.
9. If you do not understand the questions, you can get help at the workshop
sessions.
10.This assignment is marked out of a total of 100
Q1)
This question is concerned with the design and analysis of recursive algorithms.
You are given a problem statement as shown below. This problem is concerned
with performing calculations on a sequence 𝐴 of real numbers. Whilst this could
be done using a conventional loop-based approach, your answer must be
developed using a recursive algorithm. No marks will be given if your answer
uses loops.
𝐹𝑖𝑛𝑑𝐴w**7;Ү**;w**3;𝑎𝑔Ү**;𝐴𝑛𝑑𝑃w**3;w**0;𝑑w**6;𝑐w**5;(𝑎1, … , 𝑎𝑛) such that 𝑛 > 1
Input: A sequence of real values 𝐴 = (𝑎1, … , 𝑎𝑛
).
Output:, A 2-tuple (𝑎w**7;Ү**;w**3;𝑎𝑔Ү**;, w**1;w**3;w**0;𝑑w**6;𝑐w**5;) containing the average (𝑎w**7;Ү**;w**3;𝑎𝑔Ү**;) of all the
values and the product (w**1;w**3;w**0;𝑑w**6;𝑐w**5;) of all the values of the elements in 𝐴.
Your recursive algorithm should use a single recursive structure to find the
average and product values, and should not use two separate instances of a
recursive design. You should not employ any global variables.
(a) Produce a pseudo code design for a recursive algorithm to solve this
problem.
[5 marks]
(b) Draw a call-stack diagram to show the application of your recursive
algorithm when called using the sequence = (24, 8, −4, 6, −6, 3).
[5 marks]
(c) Write down the set of recurrence equations for your recursive algorithm.
Remember that one of the equations should correspond to the recursive
algorithm base case.
[4 marks]
(d) Using the recurrence equations you gave in your answer for part (c),
determine the running time complexity of your recursive algorithm.
[6 marks]
Q2)
A piece of code implementing a recursive algorithm has been produced, and a
student has analysed the recurrences. They have produced the recurrence
equations as shown below:
𝑇(𝑛) = 𝑇(𝑛 − 3) + 2(𝑛 − 3) + 𝑐1
𝑇(3) = 𝑐2
So the recursive algorithm features a base case when the size of the problem is
𝑛 = 3. The values of 𝑐1 and 𝑐2 are constants. You should assume the initial value
of 𝑛 (the size of the problem) is divisible by 3.
Determine the running time complexity of this recursive algorithm. To get the full
marks, your analysis should be as complete as possible. To get an idea of how to
perform a complete analysis, refer to the example recursive algorithm analysis on
Canvas. You can verify your analysis by modelling the recurrence equations in a
program like Excel or MATLAB. Your answer must include:
(a) Evidence of at least two cycles of substitutions to establish the running
time function 𝑇(𝑛).
(b) A clear statement of the generalisation of that pattern to 𝑘 iterations of
the recursive step.
(c) A statement of the number of iterations required to solve a problem of
size 𝑛.
(d) A statement of the final overall running time complexity that follows
from your previous algebra.
You may find it useful to know that the formula for a sum of an arithmetic
sequence of numbers of the form (1,2,3, … . 𝑘) is given by the formula:
∑ 𝑚
𝑚=𝑘
𝑚=1
=
𝑘(𝑘 + 1)
2
[20 marks]
Q3)
This question is concerned with dynamic programming.
A bottom up dynamic programming method is to be used to solve the subset sum
problem. The problem is to find the optimal sum of weighted requests from a set
of requests 𝐴 subject to a weight constraint W. The set of weighted requests 𝐴 =
{𝛼1, 𝛼2, 𝛼3, 𝛼4, 𝛼5, 𝛼6} can be summarised as following:
Request 𝒘(𝜶𝒊)
𝛼1 2
𝛼2 2
𝛼3 1
𝛼**
𝛼5 7
𝛼6 1
The maximum weight constraint is 13.
Using the following algorithm (reproduced from the notes on Canvas):
(a) Produce a table showing the space of the problem and all of the sub
problems, and use that table to determine the optimal subset sum of
requests when the weight constraint of 13 is applied. The table should
take the form of a matrix with 7 rows (values of 𝑖 in the range 0 to 6
inclusive) and 14 columns (values of w**8; in the range 0 to 13 inclusive).
[20 marks]
Q4)
In this question, we consider the operation of the Ford-Fulkerson algorithm on
the network shown overleaf:
Each edge is annotated with the current flow (initially zero) and the edge’s
capacity. In general, a flow of w**9; along an edge with capacity 𝑦 is shown as w**9;/𝑦.
(a) Show the residual graph that will be created from this network with the
given (empty) flow. In drawing a residual graph, to show a forward edge
with capacity w**9; and a backward edge with capacity 𝑦, annotate the original
edge w**9;⃗; 𝑦**; .
[4 marks]
(b) What is the bottleneck edge of the path (w**4;, w**7;1, w**7;3, w**7;5,w**5;) in the residual
graph you have given in answer to part (a) ?
[2 marks]
(c) Show the network with the flow (w**4;, w**7;1, w**7;3, w**7;5,w**5;) that results from
augmenting the flow based on the path of the residual graph you have
given in answer to part (a).
[3 marks]
(d) Show the residual graph for the network flow given in answer to part (c).
[4 marks]
(e) What is the bottleneck edge of the path (w**4;, w**7;3, w**7;4,w**5;) in the residual graph
you have given in answer to part (d) ?
[2 marks]
(f) Show the network with the flow that results from augmenting the flow
based on the path (w**4;, w**7;3, w**7;4,w**5;) of the residual graph you have given in
answer to part (d).
[3 marks]
(g) Show the residual graph for the network flow given in answer to part (f).
[4 marks]
(h) What is the bottleneck edge of the path (w**4;, w**7;2, w**7;3, w**7;1, w**7;4,w**5;) in the residual
graph you have given in answer to part (g) ?
[2 marks]
(i) Show the network with the flow that results from augmenting the flow
based on the path (w**4;, w**7;2, w**7;3, w**7;1, w**7;4,w**5;) of the residual graph you have given
in answer to part (g).
[3 marks]
(j) Show the residual graph for the network flow given in answer to part (i).
[4 marks]
(k) Show the final flow that the Ford-Fulkerson Algorithm finds for this
network, given that it proceeds to completion from the flow rates you have
given in your answer to part (i), and augments flow along the edges
請加QQ:99515681 或郵箱:99515681@qq.com   WX:codehelp

掃一掃在手機打開當前頁
  • 上一篇:COMP1038代做、C/C++程序語言代寫
  • 下一篇:代做COMP2046、代寫Memory Management
  • 無相關信息
    合肥生活資訊

    合肥圖文信息
    急尋熱仿真分析?代做熱仿真服務+熱設計優化
    急尋熱仿真分析?代做熱仿真服務+熱設計優化
    出評 開團工具
    出評 開團工具
    挖掘機濾芯提升發動機性能
    挖掘機濾芯提升發動機性能
    海信羅馬假日洗衣機亮相AWE  復古美學與現代科技完美結合
    海信羅馬假日洗衣機亮相AWE 復古美學與現代
    合肥機場巴士4號線
    合肥機場巴士4號線
    合肥機場巴士3號線
    合肥機場巴士3號線
    合肥機場巴士2號線
    合肥機場巴士2號線
    合肥機場巴士1號線
    合肥機場巴士1號線
  • 短信驗證碼 豆包 幣安下載 AI生圖 目錄網

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

    Copyright © 2025 hfw.cc Inc. All Rights Reserved. 合肥網 版權所有
    ICP備06013414號-3 公安備 42010502001045

    99爱在线视频这里只有精品_窝窝午夜看片成人精品_日韩精品久久久毛片一区二区_亚洲一区二区久久

          9000px;">

                天堂成人国产精品一区| 在线播放中文一区| 亚洲国产日韩a在线播放| 中文字幕在线不卡| 中文字幕二三区不卡| 欧美精品一区在线观看| 日韩欧美国产综合| 欧美一区二区三区人| 欧美午夜精品免费| 欧美性大战久久久久久久蜜臀 | 欧美久久久久久蜜桃| 91国产免费观看| 欧美亚洲精品一区| 日韩一区二区三区在线观看| 日韩欧美国产综合在线一区二区三区| 日韩美女视频在线| 中文字幕av一区二区三区| 国产精品国产三级国产aⅴ无密码| 国产精品久久久久一区二区三区| 亚洲图片欧美激情| 亚洲国产aⅴ天堂久久| 石原莉奈在线亚洲二区| 精品一区二区三区影院在线午夜 | 日韩久久久精品| 久久精品这里都是精品| 国产精品三级在线观看| 一区二区三区电影在线播| 天使萌一区二区三区免费观看| 七七婷婷婷婷精品国产| 国产成人免费av在线| av亚洲产国偷v产偷v自拍| 在线免费观看日本欧美| 日韩美女在线视频 | 欧美丰满少妇xxxbbb| 欧美mv日韩mv亚洲| 玉足女爽爽91| 久久成人免费电影| 色综合天天综合在线视频| 7777精品伊人久久久大香线蕉超级流畅| 精品国产亚洲一区二区三区在线观看| 国产精品国产自产拍高清av| 婷婷中文字幕一区三区| 国产成人无遮挡在线视频| 欧美军同video69gay| 国产欧美一区在线| 视频一区二区不卡| 一本大道久久a久久综合| 精品国产91乱码一区二区三区| 亚洲欧美成aⅴ人在线观看| 激情文学综合插| 欧美日韩色一区| 中文字幕一区二区三区精华液| 秋霞成人午夜伦在线观看| 色婷婷综合久久久中文字幕| 国产亚洲成av人在线观看导航 | 高清不卡在线观看| 欧美日韩国产经典色站一区二区三区| 国产亚洲精品资源在线26u| 午夜一区二区三区视频| 欧美日韩在线综合| 精品在线免费观看| 欧美日本不卡视频| 一区二区三区四区不卡在线| 国产精品一品二品| 精品国产sm最大网站| 久久精品72免费观看| 欧美精品粉嫩高潮一区二区| 亚洲欧美区自拍先锋| av在线播放成人| 欧美激情一二三区| 国产福利精品导航| 久久久久综合网| 国产精品一区二区久激情瑜伽| 日韩你懂的电影在线观看| 免费成人在线网站| 欧美大度的电影原声| 久久国产精品第一页| 精品国产一二三区| 国产一区二区在线免费观看| 久久久五月婷婷| 国产欧美一区二区精品性色超碰| 久久久91精品国产一区二区三区| 粗大黑人巨茎大战欧美成人| 欧美成人一级视频| 日日摸夜夜添夜夜添亚洲女人| 欧美日韩电影在线| 天天色图综合网| 欧美一个色资源| 国产在线精品一区二区不卡了 | 美女精品一区二区| 91麻豆精品久久久久蜜臀| 五月激情综合色| 欧美一二三区在线观看| 精品一区二区在线看| 国产亚洲污的网站| av成人免费在线| 亚洲一区二区在线免费看| 欧美在线免费视屏| 久久99热狠狠色一区二区| 久久久亚洲欧洲日产国码αv| 国产成人亚洲综合a∨婷婷图片| 中文字幕在线不卡一区二区三区| 日本高清不卡视频| 久久激五月天综合精品| 欧美最猛黑人xxxxx猛交| 成人91在线观看| 懂色av中文一区二区三区| 成人福利视频在线看| 国产精品色哟哟网站| 精品视频1区2区| 久久99精品久久只有精品| 中文字幕 久热精品 视频在线 | 这里只有精品99re| 国产精品123区| 亚洲国产一区二区在线播放| 精品捆绑美女sm三区| 91在线你懂得| 美女久久久精品| 亚洲精品视频在线| 精品精品国产高清a毛片牛牛| 成人精品鲁一区一区二区| 天天综合天天做天天综合| 国产婷婷色一区二区三区在线| 欧美在线观看一二区| 福利电影一区二区三区| 蜜臀久久99精品久久久久久9| 国产精品毛片久久久久久| 91精品国产入口| 午夜视黄欧洲亚洲| 日韩视频免费观看高清完整版在线观看 | 自拍偷拍国产精品| 日韩欧美你懂的| 在线免费观看成人短视频| 国产美女av一区二区三区| 亚洲成av人片在线观看| 亚洲欧美影音先锋| 国产亚洲婷婷免费| 欧美一二三四在线| 欧美日韩高清不卡| 日本高清无吗v一区| 成人动漫av在线| 精品影视av免费| 日本亚洲免费观看| 亚洲永久精品国产| 久久欧美中文字幕| 日韩欧美卡一卡二| 日韩一区二区免费电影| 7777精品伊人久久久大香线蕉经典版下载 | 欧美午夜精品一区二区蜜桃| 成人精品小蝌蚪| 国产成人av福利| 国产.欧美.日韩| 国产乱妇无码大片在线观看| 精品一区二区三区免费观看| 久热成人在线视频| 久久国产成人午夜av影院| 日本va欧美va精品发布| 亚洲chinese男男1069| 午夜精品久久久久影视| 亚洲成人自拍一区| 五月激情综合网| 蜜臀av一级做a爰片久久| 日产国产高清一区二区三区| 日韩电影在线观看网站| 日韩电影一区二区三区| 日韩av中文字幕一区二区三区| 亚洲不卡av一区二区三区| 亚洲国产aⅴ成人精品无吗| 亚洲v日本v欧美v久久精品| 日韩高清在线不卡| 极品少妇xxxx精品少妇偷拍| 激情av综合网| 国产美女在线观看一区| 国产白丝网站精品污在线入口| 北条麻妃一区二区三区| 色妹子一区二区| 欧美三级电影一区| 91精品国产综合久久久蜜臀粉嫩| 日韩一区二区视频| 国产女同性恋一区二区| 亚洲视频在线观看三级| 午夜视频久久久久久| 久久99精品国产麻豆不卡| 国产高清不卡一区| 在线观看欧美精品| 日韩免费性生活视频播放| 国产精品水嫩水嫩| 午夜精品福利一区二区蜜股av| 国产一区二区在线电影| 色香蕉久久蜜桃| 欧美电影免费观看高清完整版在| 久久日一线二线三线suv| 亚洲天堂中文字幕| 麻豆国产精品777777在线| a级高清视频欧美日韩| 欧美日韩一区二区三区不卡| 精品88久久久久88久久久| 亚洲精品免费播放| 国产在线国偷精品免费看| 日本高清不卡aⅴ免费网站|