Question: We have two mass storage devices, A and B with the same specs. Each canstore N bits, but read / write operations are slow. We

We have two mass storage devices, A and B with the same specs. Each canstore N bits, but read/write operations are slow. We mitigate this problemby turning the two devices into a storage array: data is alternatinglywritten to A and B. The array can now store 2N bits, and read andwrite at almost twice the speed of the individual devices, assuming thatthe time it takes to send data to A and B is negligible, compared to thetime it takes each device to write the data.There is however a flaw in this plan. Since data is distributed over twodevices, the total chance of failure has now doubled. The failure of justone device causes the failure of the array.We could eliminate this problem by copying all of As data redundantlyto an additional devices C, and all of Bs data to an additional deviceD. This insures against single and double drive failure, but at the cost ofdoubling the required amount of storage devices.We decide that simultaneous drive failure is sufficiently unlikely to ignorethat possibility, and we will guard against data loss from single drivefailure only. This requires only one extra device C, as follows:cR. Boerner, ASU School of Mathematical and Statistical SciencesMAT 243 Week 1/7 Written HomeworkWe abstract each device as a list of bits, A = a1, a2,..., aN , B = b1, b2,..., bNand C = c1, c2,..., cN .At the time the data is written to drive A and B, a checksum is alsowritten to drive C, according to:ck = ak XOR bkfor each k =1,2,..., N . Here, XOR is the bitwise exclusive or operation.For example, all this means that if the original file is 01100110, thenA stores 0101 and B stores 1010, and C stores 1111. Make sure youunderstand this example. If not, you are not understanding this question,and cannot answer it correctly.(a)(2 points) Assume that after the data has been written to drives A,B and C as explained above, drive A is destroyed. Only drives Band C are left. Explain how each bit ak can be reconstructed fromthe knowledge of bk and ck. Your explanation must be specific anddetailed. It is insufficient to declare that A can be reconstructedfrom B and C or such.Hint: consider the four cases for (bk, ck) : (1,0),(1,1),(0,0) and (0,1).Explain in each case how ak can be reconstructed.(b)(2 points) Would the same reconstruction property still hold if thedata on drive C had been written according to: ck = ak AND bk foreach k =1,..., N ? You must fully explain your answer.(c)(2 points) Would the same reconstruction property still hold if thedata on drive C had been written according to: ck = ak OR bk foreach k =1,..., N ? You must fully explain your answer.

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!