爱情鸟第一论坛com高清免费_91免费精品国自产拍在线可以看_亚洲一区精品中文字幕_男人操心女人的视频

代做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













 

標簽:

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

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

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

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

    爱情鸟第一论坛com高清免费_91免费精品国自产拍在线可以看_亚洲一区精品中文字幕_男人操心女人的视频
    <strike id="bfrlb"></strike><form id="bfrlb"><form id="bfrlb"><nobr id="bfrlb"></nobr></form></form>

        <sub id="bfrlb"><listing id="bfrlb"><menuitem id="bfrlb"></menuitem></listing></sub>

          <form id="bfrlb"></form>

            <form id="bfrlb"></form>

              <address id="bfrlb"></address>

              <address id="bfrlb"></address>
              欧美精品观看| 欧美激情四色| 久久青草福利网站| 亚洲综合视频一区| 欧美黄网免费在线观看| 欧美色图一区二区三区| 欧美一区二区三区免费视频| 久久久久青草大香线综合精品| 亚洲三级电影全部在线观看高清| 欧美精品日韩综合在线| 久久人人爽爽爽人久久久| 最新国产乱人伦偷精品免费网站| 久久一区亚洲| 国产精品久久久久7777婷婷| 亚洲精品在线看| 国产日韩一区二区三区| 欧美电影免费观看大全| 亚洲欧美在线一区| 一本在线高清不卡dvd| 欧美天天在线| 老司机成人在线视频| 免费久久99精品国产自在现线| 久久午夜精品| 久久天堂av综合合色| 午夜在线不卡| 欧美一区二区视频观看视频| 免费观看日韩| 欧美一区久久| 亚洲风情亚aⅴ在线发布| 狠狠色狠狠色综合人人| 久久经典综合| 韩国av一区二区三区四区| 久久精品国产精品亚洲精品| 国产精品看片资源| 在线免费观看成人网| 黄色亚洲网站| 久久综合色影院| 亚洲人成在线影院| 男人的天堂成人在线| 在线亚洲欧美视频| 欧美亚洲在线| 欧美色欧美亚洲另类二区| 久久久国产精品亚洲一区| 欧美a级一区二区| 小辣椒精品导航| 国产精品久久999| 国产精品久久久久久久久久尿| 欧美在线视频一区| 久久婷婷蜜乳一本欲蜜臀| 欧美成人一二三| 国产精品视频yy9299一区| 国产精品成人免费精品自在线观看| 夜夜嗨网站十八久久| 亚洲国产精品久久91精品| 亚洲欧美日韩国产综合在线| 久久亚洲精品中文字幕冲田杏梨| 亚洲国产成人精品久久久国产成人一区| 午夜精品福利视频| 国产精品夜夜夜一区二区三区尤| 久久亚洲国产精品一区二区| 国产午夜精品久久久久久久| 一区二区三区高清| 久久久精品日韩| 亚洲国产精品一区二区www在线| 欧美日韩国产在线播放| 影音先锋欧美精品| 国产精品一区视频| 香蕉国产精品偷在线观看不卡| 欧美a级片一区| 免费欧美在线视频| 免费看黄裸体一级大秀欧美| 亚洲激情女人| 国产精品久久久久影院色老大| 亚洲动漫精品| 国一区二区在线观看| 亚洲欧美成人| 国产一区亚洲| 欧美一区二区三区在线观看视频| 久久视频国产精品免费视频在线| 亚洲视频电影在线| 在线免费一区三区| 欧美影院久久久| 欧美日韩视频在线一区二区| 久久在线视频| 欧美亚洲三区| 国产主播一区二区三区四区| 欧美另类69精品久久久久9999| 欧美一区三区三区高中清蜜桃| 亚洲综合二区| 亚洲电影在线| 亚洲欧美日本伦理| 国产美女精品视频免费观看| 欧美成人亚洲成人日韩成人| 在线观看一区二区精品视频| 欧美日本国产视频| 久久综合九色综合欧美狠狠| 国产香蕉97碰碰久久人人| 久久久91精品国产一区二区精品| 亚洲人成绝费网站色www| 午夜精品久久久久99热蜜桃导演| 久久久久九九视频| 亚洲高清视频一区| 洋洋av久久久久久久一区| 欧美日韩视频不卡| 亚洲国产精品视频| 久久天天狠狠| 99在线精品视频| 亚洲一区在线看| 国产精品成人免费视频| 欧美视频一区二区三区在线观看| 99香蕉国产精品偷在线观看| 国内精品久久久久国产盗摄免费观看完整版| 伊人久久大香线蕉av超碰演员| 亚洲免费在线精品一区| 亚洲三级毛片| 欧美日韩久久不卡| 欧美亚洲免费| 欧美成人免费小视频| 欧美一区二区在线免费播放| 久久精品最新地址| 国产精品成人一区二区| 久久综合久久久久88| 亚洲精品国产无天堂网2021| 国产日韩精品久久久| 国产精品国产成人国产三级| 欧美日韩免费在线视频| 欧美日韩免费一区| 欧美午夜女人视频在线| 国产精品99久久久久久www| 亚洲网友自拍| 久久久久久夜精品精品免费| 日韩视频一区二区三区在线播放免费观看| 老司机免费视频一区二区| 亚洲日本激情| 一区二区三区欧美日韩| 国产精品第13页| 久久精品欧洲| 亚洲一区3d动漫同人无遮挡| 日韩视频永久免费观看| 国产伦精品一区二区三| 欧美日韩精品一区| 国产亚洲人成网站在线观看| 性欧美暴力猛交另类hd| 欧美国产综合| 久久久不卡网国产精品一区| 久久久亚洲欧洲日产国码αv| 性欧美办公室18xxxxhd| 欧美国产三级| 久热国产精品视频| 91久久精品久久国产性色也91| 国产精品日韩精品欧美精品| 欧美日韩中文在线| 久久久久久香蕉网| 国产日韩一区二区三区在线播放| 午夜精品视频在线观看一区二区| 久久国产夜色精品鲁鲁99| 国产精品v片在线观看不卡| 久久露脸国产精品| 老色鬼久久亚洲一区二区| 欧美大片va欧美在线播放| 久久综合一区二区| 一区二区在线视频| 久久爱91午夜羞羞| 欧美a一区二区| 免费久久99精品国产| 一区二区免费在线播放| 久久婷婷影院| 国产精品v欧美精品∨日韩| 一色屋精品视频在线看| 久久精品国内一区二区三区| 国产精品视频1区| 亚洲激情成人网| 欧美激情一区二区久久久| 欧美日韩精品一区二区三区| 亚洲曰本av电影| 亚洲毛片在线免费观看| 久久综合九色综合网站| 女女同性女同一区二区三区91| 国产一区二区久久精品| 欧美一区中文字幕| 韩日精品视频| 国产午夜精品理论片a级大结局| 欧美激情综合五月色丁香| 欧美午夜视频一区二区| 久久久久久久999| 亚洲欧美激情视频在线观看一区二区三区| 亚洲综合色激情五月| 国产精品日韩久久久| 日韩天天综合| 欧美日韩视频专区在线播放| 亚洲国产视频一区| 久久av红桃一区二区小说| 合欧美一区二区三区| 亚洲福利视频一区二区| 欧美午夜国产| 亚洲一区自拍| 欧美日韩午夜视频在线观看| 能在线观看的日韩av| 在线观看国产一区二区| 欧美精品国产一区二区|