Assume that a device can execute 3 million instructions for the same amount of energy (3J) used to transmit or receive 1 Kbit of data 100m by radio. The device has the option of sending a 100KByte binary program to a compute server 100m away, which when run will execute 60 billion instructions and exchange 10000 1Kbit messages with the device. If energy is the only consideration, should the device offload the computation or execute it itself? Assume computation on the device is negligible in the offloaded case.

What will be an ideal response?


Cost of executing the program on the device = 3J * (60 billion/3 million) = 60,000J
Cost of executing the program remotely = 3J * (800 /* program */ + 10000 /* messages */ ) = 32,400J Device should offload the computation.

Computer Science & Information Technology

You might also like to view...

Which of the following is not a key component of the Standard Library?

a. Containers. b. Iterators. c. Algorithms. d. Pointers.

Computer Science & Information Technology

With each element of the list defining both a key exchange algorithm and a CipherSpec, the list that contains the combination of cryptographic algorithms supported by the client in decreasing order of preference is the __________ .

A) ?CipherSuite ? B) ?Random ? C) ?Session ID ? D) ?Version

Computer Science & Information Technology

Write a complete program that prompts the user for the radius of a sphere, and calculates and prints the volume of that sphere. Use an inline function sphereVolume that returns the result of the following expression: (4.0 / 3.0 * 3.14159 * pow(radius, 3)).

What will be an ideal response?

Computer Science & Information Technology

Attributes can also be included in a location path using the XPath expression: _____@attribute.

A. ?node B. ?match C. ?path D. ?uri

Computer Science & Information Technology