狠狠综合久久久久综合网址-a毛片网站-欧美啊v在线观看-中文字幕久久熟女人妻av免费-无码av一区二区三区不卡-亚洲综合av色婷婷五月蜜臀-夜夜操天天摸-a级在线免费观看-三上悠亚91-国产丰满乱子伦无码专区-视频一区中文字幕-黑人大战欲求不满人妻-精品亚洲国产成人蜜臀av-男人你懂得-97超碰人人爽-五月丁香六月综合缴情在线

代做COMPSCI 369、代寫Java/Python語言編程

時間:2024-06-12  來源:  作者: 我要糾錯



THE UNIVERSITY OF AUCKLAND
FIRST SEMESTER, 2023
COMPUTER SCIENCE
Computational Methods in Interdisciplinary Science
NOTE: This is a restricted book exam. You are allowed a single sheet of A4 paper with notes written
on it.
This exam has 16 questions, and it is worth 120 marks in total.
There are 4 sections.
Section A consists 4 short answer questions worth 30 marks in total.
Section B consists 5 short answer questions worth 20 marks in total.
Section C consists 4 short answer questions worth 32 marks in total.
Section D consists 3 short answer questions worth 38 marks in total.
Answer all questions
The exam is worth 55% of the final grade
Page 1 of 7COMPSCI 369
Section A: Computational Biology, Numerical Integration &
Game Theory
Computational Game Theory
1. In lectures we discussed David Chess’s paper ‘Simulating the evolution of behavior: the iterated
prisoners’ dilemma problem’. In this paper, Chess reported on four phases in his model: “The Era
of Exploitation,” “The Nadir,” “The Growth of Trust,” and “Equilibrium.”
(a) Describe each of the four phases and their relation to each other. [4 marks]
(b) Explain two reasons why it was necessary to use computational methods to study this model.
[3 marks]
Modelling Dynamical Systems
2. The following equation specifies a discrete-time dynamical system. In this equation, α is a parameter.
xt+1
= α min(xt, 1 − xt)
(a) When α < 1, there is a single fixed point. What is it? [1 mark]
(b) When α = 1, there are an infinite number of fixed points. What are they? [2 marks]
(c) What would be appropriate to use as labels for each axis of a bifurcation diagram of this
system? [2 marks]
(d) Write pseudocode for generating a bifurcation diagram for this system. [10 marks]
3. Briefly describe the Euler and Runge-Kutta methods for numerical integration and explain the
relationship between them. [4 marks]
4. Identify a situation where Euler integration would be perfectly accurate and explain why this is the
case. [4 marks]
Page 2 of 7COMPSCI 369
Section B: Sequence Alignment
5. The partially completed F matrix for calculating the local alignment of the sequences GCT and
TAACT is given below. The score matrix is given by s(a, b) = −2 when a 6= b and s(a, a) = 4.
The linear gap penalty is d = −3.
T C C A T
0 0 0 0 0 0
G 0 0 0 0 0 0
C 0 0 4 4 1 u
T 0 4 1 v w x
(a) Complete the matrix by finding values for u, v, w and x and showing traceback pointers.
[4 marks]
(b) Give the score for the best local alignment of these two sequences and provide an alignment
that has this score. [3 marks]
6. What is the biological motivation for using an affine rather than a linear gap penalty? [2 marks]
7. Computationally, how can one efficiently perform alignment with an affine gap penalty and what
is the computational cost of doing so when compared to a linear gap? Use asymptotic notation as
part of your answer. [4 marks]
8. Describe the main barrier to finding an exact solution to the multiple alignment problem. Use
asymptotic notation as part of your answer. [2 marks]
9. Describe the main steps of the heuristic algorithm we discussed in lectures for solving the multiple
alignment problem, including the use of neutral characters. (You do not need to give precise
formulae for how the distances are calculated.) [5 marks]
Page 3 of 7COMPSCI 369
Section C: Simulation and HMMs
10. What does it mean for a sequence of random variables X0, X1, X2, . . . to have the Markov property?
 Express your answer in plain English and in mathematical notation. [2 marks]
11. You are given a method choice(x,prob), where the arrays x and prob are of equal length,
and the sum of the elements of prob is 1. choice(x,prob) returns x[i] with probability
prob[i].
Write a pseudo-code method simHMM(a,e,L,s) that takes as input a transition matrix a, an
emission matrix e, a length L and a start state s. It should return state and symbol sequences of
length L with the state sequence starting in state s. Use integers corresponding to array indices to
represent states and emissions. [6 marks]
12. Given the method choice(x,prob) as defined in Question 11, write a pseudo-code method
randwalk(k) that simulates a random walk of length k starting at 0 where steps of -1 and +1
are equally likely. Assume the argument k is a positive integer. Your method should return an
array of length k where walk[i] is the position of the random walk after i steps. Show how you
can use this method to estimate the probability that the position of a random walker after 50 steps
is more than 10 steps from its starting point. [5 marks]
Page 4 of 7COMPSCI 369
13. Consider an HMM with states A, B, C each of which emit symbols Q, R, S, T. The transitions are
given by the following table which has omitted the transition probabilities into state C.
The model starts in state A 60% of the time, state C 40% of the time and never in state B.
The emission probabilities for the model are given by the following table.
Q R S T
A 0.4 0.2 0.15 0.15
B 0.2 0.6 0.1 0.1
C 0.05 0.2 0.2 0.55
(a) Write down the values of the missing elements in the transition matrix. [2 marks]
(b) Sketch a diagram of the HMM, showing all states, possible transitions and transition probabilities.
 Include the begin state but no end state. Do not include emission probabilities in the
diagram. [3 marks]
(c) Explain why the length of a run of Bs in a state sequence follows a geometric distribution and
give the length of an average run of Bs. [3 marks]
(d) What is the joint probability P(x, π) of the state sequence π = ABB and the symbol sequence
x = QTR? Leave your answer as a product or sum of numbers. [3 marks]
(e) Complete the entries i, j and k in the forward matrix below using the recursion fk(i + 1) =
ek(xi+1)
P
l
alkfl(xi). Remember to show your working.
0 Q T
0 1 0 0
A 0 0.24 k
B 0 i
C 0 j
[5 marks]
(f) The forward algorithm is used to calculate P(x). When π = ABB and x =QRR, is P(x)
greater than, less than, or equal to P(x, π)? Justify your answer. [3 marks]
Page 5 of 7COMPSCI 369
Section D: Trees
14. Let the symmetric matrix
specify the pairwise distances, Dij , between the four sequences x1, . . . , x4.
(a) Construct a UPGMA tree from D showing your working. [5 marks]
(b) Will UPGMA or neighbour-joining (or both or neither) reconstruct the correct tree in this
case? Explain your answer. [2 marks]
(c) Describe when you would use neighbour-joining and when you would use UPGMA. [3 marks]
15. Consider the four aligned sequences, W,X,Y, and Z:
12345
W: CCGTT
X: GCAAT
Y: CCATT
Z: GAGAT
(a) Explain what parsimony informative means, and identify the parsimony informative sites in
the alignment. [2 marks]
(b) By calculating the parsimony score for each possible tree topology for these four taxa, find
the maximum parsimony tree. [5 marks]
(c) Demonstrate (for example, on a single branch in a one of your trees) how ancestral reconstructions
can be used to estimate branch length on the maximum parsimony tree. [4 marks]
(d) Describe two significant drawbacks of the parsimony method. [3 marks]
Page 6 of 7COMPSCI 369
16. (a) Why do we rely on heuristic methods to find a maximum likelihood tree? Describe one such
heuristic and explain whether this heuristic will typically find the tree that maximises the
likelihood. [4 marks]
(b) Given mutation rate parameter µ and normalised rate matrix Q, how do you calculate the
probability that a C mutates to a T along a lineage of length t = 3? (Recall we denote, for
example, the (A, A)th entry of a matrix B by BAA.) [3 marks]
(c) Let X and Y be sequences of length L. How can you use the calculation in part (b) to
calculate the probability that X mutates into Y over a lineage of length t = 3? Explain any
assumptions you are making. [2 marks]
(d) In order to efficiently calculate the likelihood of the tree, what assumption do we make about
the mutation process on different lineages? [2 marks]
(e) In parsimony and distance based methods, sites that are constant across all sequences are
not informative about the tree. Explain whether or not the same applies to likelihood based
methods. [3 marks]
請加QQ:99515681  郵箱:99515681@qq.com   WX:codinghelp













 

標(biāo)簽:

掃一掃在手機打開當(dāng)前頁
  • 上一篇:ICS3U編程代寫、代做Java/Python程序設(shè)計
  • 下一篇:代寫股票公式 代寫選股公式 通達新尾盤掘金公式
  • 無相關(guān)信息
    昆明生活資訊

    昆明圖文信息
    蝴蝶泉(4A)-大理旅游
    蝴蝶泉(4A)-大理旅游
    油炸竹蟲
    油炸竹蟲
    酸筍煮魚(雞)
    酸筍煮魚(雞)
    竹筒飯
    竹筒飯
    香茅草烤魚
    香茅草烤魚
    檸檬烤魚
    檸檬烤魚
    昆明西山國家級風(fēng)景名勝區(qū)
    昆明西山國家級風(fēng)景名勝區(qū)
    昆明旅游索道攻略
    昆明旅游索道攻略
  • NBA直播 短信驗證碼平臺 幣安官網(wǎng)下載 歐冠直播 WPS下載

    關(guān)于我們 | 打賞支持 | 廣告服務(wù) | 聯(lián)系我們 | 網(wǎng)站地圖 | 免責(zé)聲明 | 幫助中心 | 友情鏈接 |

    Copyright © 2025 kmw.cc Inc. All Rights Reserved. 昆明網(wǎng) 版權(quán)所有
    ICP備06013414號-3 公安備 42010502001045

    狠狠综合久久久久综合网址-a毛片网站-欧美啊v在线观看-中文字幕久久熟女人妻av免费-无码av一区二区三区不卡-亚洲综合av色婷婷五月蜜臀-夜夜操天天摸-a级在线免费观看-三上悠亚91-国产丰满乱子伦无码专区-视频一区中文字幕-黑人大战欲求不满人妻-精品亚洲国产成人蜜臀av-男人你懂得-97超碰人人爽-五月丁香六月综合缴情在线
  • <dl id="akume"></dl>
  • <noscript id="akume"><object id="akume"></object></noscript>
  • <nav id="akume"><dl id="akume"></dl></nav>
  • <rt id="akume"></rt>
    <dl id="akume"><acronym id="akume"></acronym></dl><dl id="akume"><xmp id="akume"></xmp></dl>
    青青青在线观看视频| 天天看片天天操| 日韩欧美中文视频| 一区二区三区国产免费| 欧美成人黑人猛交| 免费高清在线观看免费| 国产原创popny丨九色| 精品国产一区二区三区无码| 欧美中文字幕在线观看视频| 久久久久久久久影视| 400部精品国偷自产在线观看| 潘金莲一级淫片aaaaaa播放1| 四虎1515hh.com| 香蕉视频免费版| www插插插无码免费视频网站| 欧美极品少妇无套实战| 国产午夜伦鲁鲁| 亚洲欧美激情网| 在线观看中文av| 青草青青在线视频| 免费在线观看的毛片| 激情在线观看视频| 91成人综合网| 天堂社区在线视频| 91精品国产毛片武则天| 成年人深夜视频| 久久久久久三级| 天天综合五月天| 精品视频无码一区二区三区| 我要看一级黄色大片| 天堂在线精品视频| 丰满的少妇愉情hd高清果冻传媒| 岳毛多又紧做起爽| av片中文字幕| 亚洲av无日韩毛片久久| 中文字幕超清在线免费观看| 国内性生活视频| 国产盗摄视频在线观看| 国产偷人视频免费| 日韩精品免费一区| 九九热在线免费| 中文字幕第80页| 尤物av无码色av无码| 中文字幕第100页| 成年人视频观看| 超级碰在线观看| 性猛交ⅹ×××乱大交| 成年网站在线免费观看| 污色网站在线观看| 天天夜碰日日摸日日澡性色av| 少妇高清精品毛片在线视频| 欧美日韩一级在线| 日本黄色的视频| 日韩 欧美 高清| 日韩一级性生活片| 国产手机视频在线观看| 欧美精品无码一区二区三区| 亚洲熟妇av日韩熟妇在线| av影院在线播放| 国产精品久久成人免费观看| 男女污污的视频| 搡女人真爽免费午夜网站| 日本www在线播放| aa在线观看视频| 日韩av三级在线| 日本精品一区二区三区四区 | 手机看片一级片| 国产欧美精品一二三| wwwwww.色| 91色国产在线| 五月天av在线播放| 亚洲黄色片免费| 欧美精品一区二区性色a+v| 亚洲欧美日韩一二三区| 男人天堂网站在线| 日韩极品视频在线观看| 日韩精品在线视频免费观看| 国产玉足脚交久久欧美| 国产成人三级视频| 亚洲免费黄色网| 日韩精品第1页| 999香蕉视频| av噜噜在线观看| 日韩 欧美 自拍| 国产中文字幕在线免费观看| 日av中文字幕| 日韩欧美亚洲另类| 国产主播中文字幕| 欧美精品久久久久久久免费| 国产aaa一级片| www.五月天色| av在线播放亚洲| 九九热精品在线播放| 粉嫩av一区二区三区天美传媒| 在线一区二区不卡| 在线免费观看av网| av免费观看国产| 最新国产黄色网址| 狠狠干 狠狠操| 亚洲一二区在线观看| 91九色丨porny丨国产jk| 91极品视频在线观看| 国产va亚洲va在线va| 777视频在线| 无码人妻丰满熟妇区96| 久久成年人网站| 妺妺窝人体色www在线观看| 国产一二三四五| 黄色小视频免费网站| 日韩小视频在线播放| aaaaaaaa毛片| 国产精品va无码一区二区| 青娱乐精品在线| 亚洲欧美激情网| 中国丰满人妻videoshd| 99re99热| 污污的视频免费观看| 午夜视频在线瓜伦| 欧美 日韩 亚洲 一区| 午夜剧场在线免费观看| 无码无遮挡又大又爽又黄的视频| 天天干天天操天天干天天操| 黄大色黄女片18第一次| 黄在线观看网站| 777米奇影视第四色| 一女被多男玩喷潮视频| 欧美人成在线观看| 免费在线观看污网站| 9l视频白拍9色9l视频| 超碰在线公开97| 蜜臀一区二区三区精品免费视频| 黄色片一级视频| 欧美在线观看视频网站| 性刺激的欧美三级视频| 日韩精品一区二区三区不卡 | 国产三级国产精品国产专区50| 久久久久久久久久福利| 国产免费黄视频| 777777av| 日韩精品一区二区三区色欲av| 免费成人在线视频网站| 一本大道熟女人妻中文字幕在线 | 亚洲综合20p| 黄频视频在线观看| 国产成人精品免费看在线播放| 亚洲欧美天堂在线| 精品日韩在线播放| 大胆欧美熟妇xx| 黄色成人在线看| 男人天堂成人在线| 午夜免费看毛片| 亚洲精品偷拍视频| 丰满爆乳一区二区三区| 亚洲欧美视频二区| 特级西西444| 亚洲狼人综合干| 99亚洲精品视频| 免费国产黄色网址| 欧美 国产 小说 另类| 捷克做爰xxxⅹ性视频| 久久人妻无码一区二区| 午夜在线视频免费观看| 国产欧美精品aaaaaa片| av影院在线播放| 免费一级特黄录像| 992tv快乐视频| 日本激情视频在线| 你真棒插曲来救救我在线观看| 免费男同深夜夜行网站| 日韩一级特黄毛片| 久久人人爽av| 无码人妻丰满熟妇区毛片| 日本黄色播放器| 欧美成人福利在线观看| 无罩大乳的熟妇正在播放| 国产又粗又猛大又黄又爽| 日韩中文字幕二区| 日韩小视频网站| 在线观看av免费观看| 欧美一区二区中文字幕| 超碰成人在线播放| 亚洲熟妇av一区二区三区| 天堂v在线视频| 亚洲久久中文字幕| 免费观看美女裸体网站| 裸体裸乳免费看| а 天堂 在线| 亚洲精品在线网址| 免费高清在线观看免费| 欧日韩免费视频| 国产资源第一页| www.-级毛片线天内射视视| 人妻无码视频一区二区三区| 18禁网站免费无遮挡无码中文| 四虎免费在线观看视频| 女人高潮一级片| 手机福利在线视频| 免费av手机在线观看| 国产又黄又爽免费视频| 青娱乐国产精品视频|