Develop an algorithm and implement Multilevel Queuing
scheduling using C++.and using bubble sorting.
Consider a set of user and system processes and determine (i)
turnaround time (ii) waiting time of each process (iii) Average
Waiting Time (AWT) and (iv) Average Turnaround Time (ATAT) of all
processes.
please write comment
1-Describe the differences between genome assemblers that
utilise a greedy algorithm versus de Bruijn graphs.
2-Describe the different approaches that are undertaken when
reconstructing a phylogenetic species supertree. In your answer,
discuss why it is beneficial to have a robust tree of life.
Please answer these 2 questions, Thank you
An operating system uses the
First-Come, First-Served (FCFS)
CPU scheduling algorithm.
Consider the following set of processes in this OS, with the
length of the CPU burst time given in milliseconds, and the shown
priority. A larger priority number implies a
higher priority. There is no
pre-emption.
The processes are assumed to have arrived in the order P1, P2,
P3, P4, P5, all at time 0.
Process
Burst Time
Priority
P1
2
2
P2
1
5
P3
4
1
P4...
A Mystery Algorithm
Input: An integer n ≥ 1
Output: ??
Find P such that 2^p is the largest power of two less
than or equal to n.
Create a 1-dimensional table with P +1 columns. The leftmost
entry is the Pth column
and the rightmost entry is the 0th column.
Repeat until P < 0
If 2^p≤n then
put 1 into column P
set n := n - 2^p
Else
put 0 into column P
End if
Subtract 1...
1. Consider the group Zp for a prime p with multiplication
multiplication mod p). Show that (p − 1)2 = 1 (mod p)
2. Is the above true for any number (not necessarily prime)?
3. Show that the equation a 2 − 1 = 0, has only two solutions
mod p.
4. Consider (p − 1)!. Show that (p − 1)! = −1 (mod p) Remark:
Think about what are the values of inverses of 1, 2, . . ....
A Mystery Algorithm
Input: An integer n ≥ 1
Output: ??
Find P such that 2 P is the largest power of two less than or
equal to n.
Create a 1-dimensional table with P +1 columns. The leftmost
entry is the Pth column and the rightmost entry is the 0th
column.
Repeat until P < 0
If 2 P ≤ n then
put 1 into column P
set n := n − 2 P
Else
put 0 into column...