Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

( 1 point ) You are the head of a division of a big Silicon Valley company and have assigned one of your engineers, Jim,

(1 point) You are the head of a division of a big Silicon Valley company and have assigned one of your engineers, Jim, the job of devising an algorithm to sort through an English text of n
words and convert it into an Esperanto document. Jim comes up with an algorithm which takes 2n2+2n
bit operations to handle an input text with n words. Suppose the computers in your business can handle one bit operation every nanosecond (1
nanosecond =109
seconds).
(a) How many nanoseconds would it take Jim's algorithm to convert a text with 14
words on these computers?
(b) How many HOURS would it take Jim's algorithm to convert a text with 61
words on these computers?( Do not round your answers for WeBWorK.)
(Recall a million is 106
, a billion is 109
and a trillion is 1012
.)
For an input text of 100
words, the statement that best describes the performance of Jim's algorithm is:
A. His algorithm would take between 40
thousand and 40
million years to run.
B. His algorithm would take between 40
and 400
years to run.
C. His algorithm would take between 4000
and 40,000
years to run.
D. His algorithm would take between 4
and 40
years to run.
E. His algorithm would take more than 40
trillion years to run.
F. His algorithm would take between 40
billion and 40
trillion years to run.
G. His algorithm would take between 40
million and 40
billion years to run.

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access with AI-Powered Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Students also viewed these Databases questions