edited by
688 views
0 votes
0 votes

what is 10x and 5x ?

edited by

2 Answers

Best answer
3 votes
3 votes
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
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

Related questions

0 votes
0 votes
1 answer
3
Prince Sindhiya asked Jan 2, 2019
728 views
A full binary tree is a tree in which every node other than the leaves has two children. If there are 600 leaves then total number of leaf nodes are?
1 votes
1 votes
2 answers
4
Prince Sindhiya asked Jan 2, 2019
604 views
The Number of Relations, Which are both Reflexive and Symmetric but not Anti-Symmetric, on aset with 6 elements, are ____________?i got 32768 plz check