in GATE retagged by
1,371 views
4 votes
4 votes
Consider two machines, machine $A$ and machine $B$. Machine $B$ runs floating-point instructions $n$ times faster than machine $A$.
Consider a program that takes $100$ $seconds$ to run on machine $A$, and spends half  of its time in floating-point instructions. If speedup of performance is $1.714$ (speed up is calculated by dividing  the performance of  Machine $B$  by performance of machine $A$) then the value of $n$ is _________ (In case of fractional value of $n$ give nearest higher positive integer).
in GATE retagged by
by
1.4k views

3 Comments

Speed Up of any system is calculated by the formula = {Time required by slower machine} / {Time required by faster machine}.

But here the definition of speed up given in question is just the reverse of that. Here Machine B is faster and machine A is slower.

If we took the actual formula then only we are getting 6 as answer. Otherwise the answer written by Amit is correct.

@Bikram sir

1
1

Sir, in question the definition of speed up is not given in reverse. I mean they have used the term performance and which is inverse of time.

so, answer should be according to the formula and it is nearly 6 as you said.

2
2
sir i just assumed program contain 100 inst solved i got 5.66 so 6

is this a valid approach to do fast calculation?
0
0

3 Answers

7 votes
7 votes
Best answer

here is the solution

selected by

1 comment

how  50 for other operations on Machine B
0
0
5 votes
5 votes
Bikram sir please provide the solution ,

Here it is saying that machine A is taking half of the time in floating point instruction . so if machine A spend t time in floating point instrcution then it complete the whole program in 2t time .

machine B is n time faster in processing floating point instructions as compared to A .
so as A takes t time in floating point instructions then B will take t/n time .

for rest of work both A and B will take t time

so speed up = total time taken by B/ total time taken by A

= [ t/n +t ] / [2t] =1.714

by solving n = 0.41186

correct me where i did mistake .

4 Comments

Can anyone please explain how you are getting 6. If possible please provide the solution.
1
1
can you once give the solution for this?
1
1
@neeraj

read my above comments, and just you need to calculate..
0
0
0 votes
0 votes

speed up is calculated by dividing  the performance of Machine B by performance of machine A

We know the more time a process takes, the worse is it's performance. So, $\frac{P_B}{P_A}=\frac{T_A}{T_B}$

Where P stands for performance, and T stands for time taken.

 

Machine B runs floating-point instructions n times faster than machine A.

A spends 50 seconds in FP operations. 50 seconds in other operations.

B will spend $\frac{50}{n}$ seconds in FP operations, and 50 seconds in other operations (assuming equal time taken).

 

As per the question

$\frac{T_A}{T_B}=1.714$

=> $\frac{100}{(50/n)+50}=1.714$

After simplifying

$0.286n=1.714$

=> $n=5.99$

=> $n=6$

2 Comments

are u shashin ?
0
0
Uhm, no. Close enough, lol. I'm Jashan.
0
0
Answer:

Related questions

Quick search syntax
tags tag:apple
author user:martin
title title:apple
content content:apple
exclude -tag:apple
force match +apple
views views:100
score score:10
answers answers:2
is accepted isaccepted:true
is closed isclosed:true

64.3k questions

77.9k answers

244k comments

80.0k users