in CO and Architecture edited by
690 views
0 votes
0 votes

what is 10x and 5x ?

in CO and Architecture edited by
690 views

2 Comments

10x and 5x means 10 times and 5 times respectively.

Is the answer b(i.e E2 provides more improvement than E1)
0
0
Yeah Vivek u r correct can you please explain it
0
0

2 Answers

3 votes
3 votes
Best answer
Let the original program be of x steps, and total time taken be t. Time per step = t/x

Now, E1 : 5% of x has been enchanced by 10x(time per step reduced 10 times)    (x/20) *(t/10x) + (19x/20)*t/x = 0.955t

Similarly, for E2 : (x/10)*t/5x + 9x/10*t/x = 0.92t

As, overall time taken by E2 is less than E1 so E2 is better enhancement than E1.
selected by

1 comment

@vivekk nice explaination thnxx
0
0
0 votes
0 votes
E2 has better enhancement then E1

Because program size can be anything let program size is large in which 10%will be greater than 5% of code in which if you will speed up 10% by 5x and 5% by 10x then obeisuly 10% by 5x will take less time because you are enhancing the large part of code so E-2 is better than E-1