久久久久久精品无码人妻_青春草无码精品视频在线观_无码精品国产VA在线观看_国产色无码专区在线观看

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

    久久久久久精品无码人妻_青春草无码精品视频在线观_无码精品国产VA在线观看_国产色无码专区在线观看

    www.com久久久| 波多野结衣50连登视频| a级网站在线观看| 成人免费毛片在线观看| 中文字幕久久av| 免费看日本毛片| 久久人人爽人人片| 成人小视频在线看| www.在线观看av| 日日干夜夜操s8| 人妻精品无码一区二区三区| 成年人三级视频| 美女在线视频一区二区| 精品少妇一区二区三区在线| 国产xxxxhd| 牛夜精品久久久久久久| 午夜精品久久久久久久无码| 男女激烈动态图| 午夜剧场高清版免费观看| 男人天堂网视频| 国产美女在线一区| 男女h黄动漫啪啪无遮挡软件| 熟女少妇精品一区二区| 97国产在线播放| av无码久久久久久不卡网站| 偷拍盗摄高潮叫床对白清晰| 亚洲天堂国产视频| 91看片在线免费观看| wwwxxx黄色片| 波多野结衣之无限发射| 欧美日韩中文在线视频| 日韩欧美不卡在线| 欧美做暖暖视频| 经典三级在线视频| 国内精品国产三级国产aⅴ久| 超碰在线97免费| caoporn超碰97| 50路60路老熟妇啪啪| 国模无码视频一区二区三区| 日韩xxxx视频| www精品久久| 免费在线观看视频a| 青青草国产免费| 男女激情免费视频| 日韩视频在线视频| 拔插拔插海外华人免费| 国产二区视频在线| 成人性免费视频| 欧美 日韩 国产 高清| 秋霞无码一区二区| 日本少妇高潮喷水视频| 欧美精品99久久| 99精品视频在线看| 久久久国产欧美| 天天干天天草天天| 亚洲欧美手机在线| 五月天男人天堂| 超碰10000| 一二三级黄色片| 国产3p在线播放| 日本在线观看视频一区| 性欧美18一19内谢| 日韩人妻一区二区三区蜜桃视频| 国产激情在线看| av日韩一区二区三区| 欧美三级一级片| 99视频在线免费| gai在线观看免费高清| 国产精品中文久久久久久| 永久免费看av| 三上悠亚久久精品| 国产一级不卡毛片| 久久6免费视频| 中文字幕人妻熟女人妻洋洋| 激情五月宗合网| 麻豆一区二区三区视频| 青娱乐国产精品视频| www.欧美黄色| 日韩手机在线观看视频| 亚洲黄色av片| 一本大道东京热无码aⅴ| 黄色av网址在线播放| 深夜黄色小视频| 国产日韩第一页| 久久美女福利视频| 911av视频| 国产婷婷一区二区三区| xx欧美撒尿嘘撒尿xx| 九九久久九九久久| 玩弄japan白嫩少妇hd| 毛片毛片毛片毛| 日韩一级片免费视频| 国产视频一区二区视频| 中国老女人av| 无码无遮挡又大又爽又黄的视频| www.se五月| 欧日韩免费视频| 99国产精品久久久久久| 日韩一级免费看| 一区二区三区 日韩| www.亚洲视频.com| 日本久久久久久久久久久久| 日本免费成人网| wwww.国产| 妞干网视频在线观看| 男女男精品视频站| 农民人伦一区二区三区| 911福利视频| 日韩av黄色网址| 色一情一乱一乱一区91| 午夜免费福利在线| 97在线国产视频| 午夜在线视频免费观看| 少妇人妻互换不带套| 亚洲色欲久久久综合网东京热| 黄色aaa级片| 欧美成人免费在线观看视频| 久久人人爽人人片| www.日本xxxx| 99在线免费视频观看| 91精品国产三级| 日韩精品手机在线观看| 三上悠亚在线一区| www.四虎成人| 少妇人妻无码专区视频| 一本—道久久a久久精品蜜桃| 性生交免费视频| 色综合久久久久无码专区| 免费看污污视频| www.久久久久久久久久久| 欧美私人情侣网站| 久久久亚洲国产精品| 日本高清视频免费在线观看| 亚洲天堂伊人网| 亚洲老女人av| 熟妇人妻va精品中文字幕| 久久综合九色综合88i| 大片在线观看网站免费收看| 一级 黄 色 片一| 国产三级三级看三级| 北条麻妃视频在线| 国产三区在线视频| 色欲av无码一区二区人妻| 精品国产av无码一区二区三区| 91成人在线视频观看| 亚洲AV无码成人精品一区| 久久精品国产露脸对白| 亚洲欧美偷拍另类| www.夜夜爽| 99re精彩视频| 亚洲欧美日韩精品一区| 在线观看免费视频高清游戏推荐| 国产成人手机视频| 成人免费xxxxx在线视频| 天天操天天干天天玩| 丰满女人性猛交| 三级网在线观看| 日韩精品第1页| 亚洲精品少妇一区二区| 粉嫩av一区二区三区天美传媒 | 中文精品无码中文字幕无码专区| 操人视频免费看| 91制片厂免费观看| 看全色黄大色大片| 国产传媒久久久| 青春草国产视频| 欧美大片在线播放| 国产精品亚洲αv天堂无码| 漂亮人妻被中出中文字幕| 999精品网站| 狠狠躁狠狠躁视频专区| 国内av一区二区| 日本道在线视频| 久久这里只有精品18| 97成人在线免费视频| 久久精品午夜福利| 中文字幕国内自拍| 国产欧美精品一二三| 91免费版看片| 久久黄色片视频| 欧美黄色性生活| 亚洲天堂网站在线| 免费人成在线观看视频播放| av动漫在线看| 日韩一级片播放| 久国产精品视频| 波多野结衣网页| 日本一级淫片演员| 国产深夜男女无套内射| 男女啪啪网站视频| 中文字幕在线视频一区二区| 久久亚洲国产成人精品无码区| 精品少妇在线视频| 精品久久久噜噜噜噜久久图片| 中文字幕国产高清| 欧日韩免费视频| 少妇一级淫免费播放| 激情六月天婷婷| 国产又黄又猛视频| 男女h黄动漫啪啪无遮挡软件|