Question

In: Other

Assume there is a file which consists of 20 blocks. Consider that the file-control block is...

Assume there is a file which consists of 20 blocks. Consider that the file-control block is already stored in the memory. Calculate the number of disk I/O operations are required for contiguous and linked allocation strategies, if, for one block, the following conditions hold. Also assume that the block information to be added is stored in memory.

a. The block is added at the beginning.

b. The block is added in the middle.

c. The block is added at the end.

Note: Make suitable diagrams to illustrate the complete process rather than writing the direct results or answers.

Solutions

Expert Solution

Answer : For evaluating the 5^532 mod 36 by using the method of repeated squaring the approach to do this is repeatedly observing the results of 5^532 mod 36 and as the result becomes continuous.

So, 5^532 mod 36 = (5^5 + 5^3 +5^2)^36 mod 0 = (3125 + 125 + 25) ^36 mod 0 = (3125^4 + 123^2 + 25^1) mod 36 = (71452)^x where x is almost reaching infinity. So as per the calculations and algorithm the answer would not be definite as per the laws of repeated squaring method.


Related Solutions

Consider a file currently consisting of 100 blocks. Assume that the File Control Block (or, the...
Consider a file currently consisting of 100 blocks. Assume that the File Control Block (or, the index block, in case of indexed allocation) is already in the RAM. Calculate how many disk I/O operations (“read block” or “write block”) are required for contiguous, linked, and indexed (single-level) allocation strategies, if the following conditions hold (In the contiguous allocation case, assume that there is no room to grow in the beginning, but there is a room to grow in the end....
Consider a file currently consisting of 200 blocks. Assume that the file control block (and the...
Consider a file currently consisting of 200 blocks. Assume that the file control block (and the index block, in the case of indexed allocation) is already in memory. Calculate how many disk I/O operations are required for contiguous, linked, and indexed (single-level) allocation strategies, if the following conditions hold. In the contiguous allocation case, assume that there is no room to grow in the beginning, but there is room to grow in the end. Assume that the block information to...
Consider the following four blocks, all of which are attached to identical springs: block A: mass...
Consider the following four blocks, all of which are attached to identical springs: block A: mass = 200·g, spring stretched 10·cm block B: mass = 800·g, spring stretched 20·cm block C: mass = 400·g, spring stretched 20·cm block D: mass = 400·g, spring stretched 20·cm. (a) All the blocks are placed on a level surface that has no significant friction. For each of the following ranking tasks use the symbols > and = to indicate your ranking (ties are possible),...
Of the following items, which are stored in the thread control block, which are stored in the process control block, and which in neither?
Of the following items, which are stored in the thread control block, which are stored in the process control block, and which in neither? a. Page table pointer b. Page table c. Stack pointer d. Segment table e. Ready list f CPU registers Program counter
Assume that the class consists of 40 percent freshmen, 20 percent sophomores, 20 percent juniors, and...
Assume that the class consists of 40 percent freshmen, 20 percent sophomores, 20 percent juniors, and 20 percent seniors. Assume further that 40 percent of the freshmen, 45 percent of the sophomores, 40 percent of the juniors, and 20 percent of the seniors plan to go to medical school. One student is selected at random from the class. (1) What is the probability that the student plans to go to medical school? equation editorEquation Editor (2) If the student plans...
For this question (Determine the velocity of the 60 kg block A if the two blocks...
For this question (Determine the velocity of the 60 kg block A if the two blocks are released from rest and the 40 kg block B moves 0.6 m up the in cline. The coefficient of kinetic friction between both blocks and the inclined planes is = 0.05.), how is T(2) = 110 V(a)^2 instead of T(2) = -50V(a)^2
Suppose that two blocks are positioned on an Atwood machine so that the block on the...
Suppose that two blocks are positioned on an Atwood machine so that the block on the right of mass m1 hangs at a lower elevation than the block on the left of mass m2. Both blocks are at rest. Based on this observation, what can you conclude? A) m1>m2 B) m1<m2 C) m1=m2 D) You cannot conclude anything with the given information.
Assume that a typical consumer's basket consists of 10 lbs of beef and 20 lbs of...
Assume that a typical consumer's basket consists of 10 lbs of beef and 20 lbs of chicken. also assume that 2011 is used as the base year in the CPI calculation. Use the data below to answer the following two questions.        a. Calculate the CPI in years 2010, 2011, and 2012        b. Calculate the inflation rate between 2010 and 2011 and between 2011 and 2012. Year Beef price/lb Chicken price/lb 2010 $4 $4 2011 $5 $5 2012 $9 $6
Four blocks are connected by a weightless cord. Block A hangs from a table on the...
Four blocks are connected by a weightless cord. Block A hangs from a table on the left. Block B and C rest upon the table. Block D hangs from the table on the right. Block A and D are over pulleys. Block B has a weight of 1N, Block C=4N and Block D=7N. a. Find the weight of Block A such that the accelartion of Block B is (g/7) b. Find the coefficient of friction for the table, if the...
Given the mass of two blocks that collide, and the velocities of each block before and...
Given the mass of two blocks that collide, and the velocities of each block before and after the collision, be able to determine whether the collision was elastic, partially or completely inelastic, or not possible since an unnamed external force would be necessary to change the momentum, and/or kinetic energy of the system. Please explain in simplest terms and give an example using units given.
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT