亚洲十八**毛片_亚洲综合影院_五月天精品一区二区三区_久久久噜噜噜久久中文字幕色伊伊 _欧美岛国在线观看_久久国产精品毛片_欧美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

    国产成人av一区二区三区在线观看| 日韩欧美成人精品| 亚洲高清久久| 欧美午夜精品| 欧美搞黄网站| a91a精品视频在线观看| 色先锋久久av资源部| 97超碰人人在线| 一本免费视频| av毛片精品| 国产亚洲女人久久久久毛片| xx欧美xxx| 色婷婷激情久久| 99久久精品费精品国产风间由美| 午夜a成v人精品| avtt久久| 国产一区三区三区| 欧美午夜精品一区二区蜜桃 | 蜜桃视频在线网站| 久久精品青草| 亚洲欧美日韩国产中文在线| 色视频在线播放| 日本桃色视频| 久久久久国产精品嫩草影院| 3p视频在线观看| 欧洲黄色一区| 久久激情av| 亚洲欧洲韩国日本视频| a天堂中文在线官网| 91国内在线| 国产麻豆视频一区| 99免费视频| 精品伊人久久| 成人一二三区视频| 一级二级在线观看| 亚洲国产91视频| 夜久久久久久| 欧美午夜精品久久久久久超碰| 日韩av免费观影| 99在线精品免费视频九九视| 91精品91| 国产精品入口| 亚洲精品国产精华液| 精品区一区二区| 浪潮av一区| 国产精品a级| 色成人在线视频| 91精品韩国| 国产成人精品亚洲午夜麻豆| 麻豆视频在线| 久久久久久久电影| 亚洲视频国产精品| 黄色仓库视频网站| 97精品久久久久中文字幕| 美女国产精品久久久| 婷婷国产v国产偷v亚洲高清| 成人mm视频在线观看| 蜜桃精品在线观看| 二人午夜免费观看在线视频| 日韩午夜电影| 五月婷婷开心综合| 快she精品国产999| 99视频高清| 黄色网页在线观看| 国产日产精品一区二区三区四区的观看方式 | 日韩av不卡一区| 精品久久久久久久久中文字幕| 日p在线观看| 国产jizzjizz一区二区| 在线观看h片| 91免费精品国自产拍在线不卡| 蜜桃av.网站在线观看| 红桃av永久久久| 亚洲精品无播放器在线播放| 99久久精品免费| 国产激情在线视频| 久久久午夜电影| 色在线视频观看| 亚洲成人av电影| 国产原创在线观看| 久久99久久久欧美国产| 人人九九精品| 色伊人久久综合中文字幕| 九九久久精品| 成全视频全集| 国产乱码精品一区二区三区av| 日本片在线看| 欧美男同视频网| 日本视频在线播放| 中文字幕一区在线观看视频| 91精品国产自产在线观看永久∴ | 色呦呦在线看| 啪啪av大全导航福利网址| 欧美1级日本1级| 亚洲精品一区视频| 国产在线不卡视频| julia一区二区三区中文字幕| 在线视频中文字幕一区二区| 国产精品多人| 网友自拍视频在线| 国产盗摄精品一区二区三区在线| 天堂91在线| 久久九九全国免费| 国产精品草草| 天堂成人av| 日韩午夜小视频| 成人精品亚洲人成在线| 婷婷综合国产| 日本福利在线观看| 亚洲午夜av在线| 美国十次了思思久久精品导航| 欧美成人三级在线| 国产精品美女久久久| 超碰在线图片| 国产麻豆成人传媒免费观看| 国产精品日韩精品在线播放| 欧美撒尿777hd撒尿| 欧美精品日日操| 国产v综合v亚洲欧| 小视频免费在线观看| 91精品国产综合久久久蜜臀图片| 久久婷婷色综合| 国产精品一区二区三区网站| 成人18夜夜网深夜福利网| 制服.丝袜.亚洲.另类.中文| 亚洲尤物精选| 午夜日韩影院| 18网站在线观看| 久久国内精品自在自线400部| 欧美日韩卡一| 999福利在线视频| 欧美一区二区三区白人 | 欧美一区在线观看视频| 黄色免费在线看| 91九色美女在线视频| 成人激情久久| 动漫一区二区三区| 在线观看欧美| 最新日韩一区| 国产原厂视频在线观看| 免费毛片aaaaaa| 无码av免费一区二区三区试看| 国产精品无遮挡| 人人精品人人爱| 999久久久精品国产| 精品国产三级| 四虎在线观看| 91麻豆精品国产91久久久使用方法| 国产在线乱码一区二区三区| 一区精品久久| 九九九久久久精品| 不卡av免费在线观看| 台湾色综合娱乐中文网| 欧美舌奴丨vk视频| 96av在线| www.久久| 自由的xxxx在线视频| 色婷婷av一区二区三区大白胸 | 国产91亚洲精品久久久| 国产精品一区二区三区av麻 | 欧美极品视频| 日韩成人在线电影| 看全色黄大色大片免费久久久| 性xxxx欧美老肥妇牲乱| 91精品国产乱码久久久久久| 亚洲激情网址| 亚洲欧美tv| 日韩电影不卡一区| 成人亚洲精品| 性欧美video另类hd尤物| 精品国产一二三| 韩国av电影免费观看| 午夜男人视频在线观看| 日韩一区二区三区在线观看| 全部av―极品视觉盛宴亚洲| 在线一区欧美| 麻豆成人在线| 蜜臀av国产精品久久久久| 国产精品久久久久久一区二区三区 | 亚洲影院免费| 国产一区啦啦啦在线观看| 国产精品久久777777毛茸茸| 91大神在线观看线路一区| 国产精品对白久久久久粗| 国产一区国产二区国产三区| 亚洲a级精品| 精品一区二区三区久久久| 欧美日韩国产首页在线观看| 免费看a在线观看| 北条麻妃一区二区三区在线观看| 老司机一区二区| 欧美亚洲综合色| 毛片大全在线观看| 久久密一区二区三区| 蜜桃久久精品一区二区| 国产精品人成在线观看免费| 欧美一卡二卡三卡四卡| 制服丝袜中文字幕在线| 国产蜜臀在线| 日韩欧美一区二区三区在线视频|