精品深夜AV无码一区二区_伊人久久无码中文字幕_午夜无码伦费影视在线观看_伊人久久无码精品中文字幕

代做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ū)
    昆明旅游索道攻略
    昆明旅游索道攻略
  • 短信驗證碼平臺 理財 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

    精品深夜AV无码一区二区_伊人久久无码中文字幕_午夜无码伦费影视在线观看_伊人久久无码精品中文字幕
    <samp id="e4iaa"><tbody id="e4iaa"></tbody></samp>
    <ul id="e4iaa"></ul>
    <blockquote id="e4iaa"><tfoot id="e4iaa"></tfoot></blockquote>
    • <samp id="e4iaa"><tbody id="e4iaa"></tbody></samp>
      <ul id="e4iaa"></ul>
      <samp id="e4iaa"><tbody id="e4iaa"></tbody></samp><ul id="e4iaa"></ul>
      <ul id="e4iaa"></ul>
      <th id="e4iaa"><menu id="e4iaa"></menu></th>
      色噜噜日韩精品欧美一区二区| 天堂中文在线看| 精品国产乱码久久久久久1区二区| 亚洲 精品 综合 精品 自拍| 欧美成人aaa片一区国产精品| 国产欧美一区二区三区视频在线观看| 中文字幕天堂av| 日韩一级片免费在线观看| 黄色精品视频在线观看| 丁香花五月婷婷| www.97av.com| a级黄色片免费看| 57pao国产成永久免费视频| 天天干天天舔天天操| 精品人妻一区二区免费| 亚洲天堂日韩av| 中文字幕免费视频观看| 中文字幕精品一区二| 在线观看精品国产| 亚洲午夜福利在线观看| 中文字幕有码av| 亚洲最大免费视频| www.亚洲黄色| 国产一区二区三区视频免费观看| 国产喷水在线观看| 久久久精品麻豆| 久久久国产高清| 欧美激情精品久久| 日韩欧美三级在线观看| 人妻丰满熟妇av无码区| 人人妻人人爽人人澡人人精品| 欧美一级特黄aaaaaa大片在线观看| 久久99精品波多结衣一区| 国产视频91在线| 久久人人爽人人爽人人| 精品久久久久一区二区| 久久久久久不卡| 免费不卡av网站| 日韩在线观看第一页| 天天摸夜夜添狠狠添婷婷| 亚洲911精品成人18网站| 欧美色图一区二区| 亚洲美女福利视频| 国产精品xxxxxx| 国产免费一区二区三区最新6 | 99re久久精品国产| 91pony九色| 韩国av中文字幕| 免费黄色激情视频| 五月婷婷六月香| 99国产精品免费| 久草视频手机在线观看| 五月天婷婷激情| 高清毛片aaaaaaaaa片| 久久久免费看片| 中文字幕人妻一区二区三区在线视频| 一出一进一爽一粗一大视频| 久久久久久久久福利| 伊人影院综合在线| 国内精品国产成人国产三级| 日本一区二区三区四区五区| www.五月天色| 五月天激情小说| 精产国品一区二区| 亚洲精品国偷拍自产在线观看蜜桃| 成人免费区一区二区三区| 视频免费1区二区三区| 国产精品23p| 性欧美成人播放77777| 国产色视频一区二区三区qq号| 天堂av2020| 国产精品久久久久久久久久久久久久久久久 | 欧美日韩中文不卡| 亚洲 另类 春色 国产| 999精品国产| 日韩精品在线观看免费| av资源免费看| 台湾佬中文在线| 九九视频免费在线观看| 亚洲一区二区偷拍| 少妇极品熟妇人妻无码| 国产综合精品视频| 亚洲男人第一av| 污视频在线免费观看| 免费在线一区二区三区| 国产破处视频在线观看| 91香蕉视频导航| 午夜一区在线观看| 免费又黄又爽又色的视频| 国产美女高潮视频| www.五月天色| 亚洲精品久久久蜜桃动漫| 日韩精品成人在线| 欧美性猛交xxxx乱大交hd| 黑人一级大毛片| 国产精品一品二区三区的使用体验| 亚洲欧美日韩一级| 亚洲欧美一区二区三区在线观看 | 丰满熟妇人妻中文字幕| 亚洲三区在线播放| 中国a一片一级一片| 五月婷婷一区二区三区| 日本伦理一区二区三区| 免费看一级一片| 久久久久在线视频| 国产一级黄色av| 国产中文字幕久久| 久久久老熟女一区二区三区91| 久久久久久久片| 日韩av手机在线免费观看| 日韩少妇一区二区| 日韩专区第一页| 神马久久久久久久| 亚洲精品乱码久久久久久久 | 国产欧美视频一区| 不卡av免费在线| www.se五月| 国产高潮流白浆喷水视频| 国产三级午夜理伦三级| 久久精品一级片| 少妇精品视频一区二区| 中文字幕在线综合| 成年人免费看毛片| 精品国产亚洲一区二区麻豆| 国产一卡二卡三卡| 国产又粗又猛又爽又黄av| 久久一二三四区| 婷婷激情5月天| av观看在线免费| 久久99久久98精品免观看软件| 黄色av片三级三级三级免费看| 久久免费激情视频| 中文乱码字幕高清一区二区| a级在线免费观看| 久久久久亚洲av无码网站| 日韩欧美激情视频| 91精品人妻一区二区三区果冻| 国产一线在线观看| 色婷婷在线影院| wwwwww在线观看| 精品人妻无码一区二区| 天天插天天干天天操| 91亚洲一线产区二线产区| 精品不卡一区二区| 亚洲av无码不卡| 国产精品视频123| 无码aⅴ精品一区二区三区| a网站在线观看| 欧美日韩免费一区二区| 亚洲综合久久av一区二区三区| 精品人妻一区二区三| 亚洲一级视频在线观看| 久久国产美女视频| 亚洲毛片一区二区三区| 免费在线观看亚洲| 杨幂一区二区国产精品| 免费一级特黄3大片视频| 亚洲人午夜射精精品日韩| 刘亦菲毛片一区二区三区| 97人妻精品一区二区三区| 日产欧产va高清| 国产一二三四区| 亚洲图片视频小说| 欧美在线视频第一页| www.五月婷| 日本一区二区三区久久| 少妇一级淫免费放| 久久久久久久久久久久久久久国产 | 加勒比一区二区| 天天干天天曰天天操| 无码aⅴ精品一区二区三区| 91精品啪在线观看国产| 色婷婷免费视频| 精品伦精品一区二区三区视频密桃| 制服.丝袜.亚洲.中文.综合懂 | 神马久久久久久久久久| 国产精品suv一区二区69| 91成人在线免费| 不卡视频免费在线观看| 亚洲精品国产精品乱码在线观看| 中文字幕在线观看视频www| 国产精品7777| 国产jk精品白丝av在线观看| 男人天堂综合网| 国产又大又粗又爽的毛片| 美女在线视频一区二区| 免费黄色一级大片| 国产精品久久久久久久久久久久久久久久久久| 妺妺窝人体色www聚色窝仙踪| 69视频免费看| 欧美熟妇精品黑人巨大一二三区 | www.激情五月.com| 中文字幕 欧美日韩| 日韩不卡的av| 欧美成人三级伦在线观看| 国产日韩在线免费观看| 国产黄色一区二区三区| www.中文字幕| 99精品999| 中文人妻一区二区三区|