Mathematical induction

 

 

ECS122A Problem Set #1 Due: 11:59pm, Thursday, April 8, 2021
1. Use mathematical induction to show that when n is a power of 2, T(n) = n lg n is the
solution of the recurrence relation
T(n) = (
2 if n = 2
2 · T(
n
2
) + n if n = 2k
for k > 1.
2. Suppose we are comparing implementations of Insert-sort and Merge-sort on
the same machine. For input of size n = 2k
for k ≥ 1, Insert-sort runs in 8n
2
comparisons, while Merge-sort runs in 64n lg n comparisons. For which value of n
does Insert-sort beat Merge-sort?
3. We can express Insert-sort as a recursive procedure as follows. In order to sort
A[1…n], we recursively sort A[1…n−1] and then insert A[n] into sorted array A[1…n−
1].
(a) Write the pseudocode for this recursive version of Insert-sort, name it Insertsort-recur.
(b) Write a recurrence for the running time of of Insert-sort-recur.
(c) Find the solution of the recurrence relation in (b).
(d) Is Insert-sort-recur more expensive than Insert-sort?
4. Given an array s = hs[1], s[2], . . . , s[n]i, and n = 2d
for some d ≥ 1. We want to find
the minimum and maximum values in s. We do this by comparing elements of s.
(a) The “obvious” algorithm makes 2n − 2 comparisons. Explain.
(b) Can we do it better? Specify a divide-and-conquer algorithm.
(c) Let T(n) = the number of comparisons your divide-and-conquer algorithm makes.
Write a recurrence relation for T(n).
(d) Show that your recurrence relation has as its solution T(n) = 3
2
n − 2.
5. Let S be an array of n integers such that S[1] < S[2] < · · · < S[n]. (1) Specify
an O(lg n) algorithm which either finds an i ∈ {1, 2, . . . n} such that S[i] = i or else
determine that there is no such i. (2) Justify the correctness and running time of your
algorithm.

 

Sample Solution

Indonesia (22%).
Diagnosis
Prompt and accurate diagnosis is critical to the effective management of malaria. Malaria diagnosis involves identifying malaria parasites or antigens/products in patient blood. Various diagnostic methods for malaria parasite identification includes clinical diagnosis, microscopy, QBC method, rapid diagnostic test kits, serological test, molecular methods like PCR, flow cytometry, LAMP, microarray, mass spectrometry.
Treatments
AS+SP, is recommended for all uncomplicated Pf case in the county except North eastern (NE) states. In NE states, the combination of Artemether-lumefantrine (AL) is recommended).
Drug resistance
According to WHO, resistance to antimalarial drugs can be defined as ‘the ability of a parasite strain to survive and/or to multiply despite the administration and absorption of a drug given in doses equal to, or higher than, those usually recommended, but within the limits of tolerance of the subject’ (WHO).
Chloroquine
CQ resistance is associated with a decrease accumulation of CQ concentration in the food vacuole of parasites, which is the site of action for C (Fidock et al., 2000.). The substitution of lysine to threonine (K76T) at codon 76 of the pfcrt gene is associated with in vivo and in vitro CQ resistance in Africa, South America, and Southeast Asia (Anvikar et al., 2012; Garcia et al., 2004; Ojurongbe. et al., 2007).
Sulphadoxine-pyrimethamine(SP)
SDX and PYR is inhibiting to the DHPS and DHFR enzymes, respectively, specific point mutations in Pfdhps & Pfdhfr gene encoding these enzymes lead to a lower binding affinity for sulphadoxin

This question has been answered.

Get Answer
WeCreativez WhatsApp Support
Our customer support team is here to answer your questions. Ask us anything!
👋 Hi, Welcome to Compliant Papers.