Sunday, June 26, 2011

Tips on detect scammers and avoid scams in Maple Story

I had been playing Maple Story (MapleSEA Edition) when I am way back in Secondary Five when the Nexxon just introduced MapleSEA and oh well, it was damn addicting. But as any other MMORPG, it got its share of cheaters and scammers as well. I also got scammed quite few times when I was a noobies. I just share it out with you of the cheater inside the Maple Story. Now, Mr.ZeusWithHammer will let you guide through the prevention of scams in Maple Story

(Oh Yeah. . . , Let's get the party started!)

P.S: If there are scammers in real life, please expect that there are scammers too in virtual life


(1) Requesting for your user account and password

This is the basic of all scams, all self claimed GM just said mumbo jumbo technical stuffs claiming your account is suspicious activities and bla bla . . . 

How to avoid this scams ?
If he is GM, he just sort of report this matter to the Maple Story maintenance team and they will sort it out for you and do all the dirty work for you without you knowing it. 
For you, just ignore the fellow or be sarcastic, give him username and password with "vulgar" languages . :P
Anyway, in short, do not ever gives out your username, password and PIN number. You wouldn't give out your ATM PIN number right ?

(2) Item duplication "glitch"


A random dude appear out of wild and claims that he had found the item duplication glitch in Maple Story (Special thanks to Pokemon for letting me to believe there are item duplication glitch in every single games)
and ask you to open up your trade box with him and tried it out.

How to avoid this scam?
If he found it why he would want to share this "god-like secret" with you especially you are just a stranger.
And anyone found items with duplication glitch will probably suspended of the accounts for temporary. So as tempting as it might be to duplicate the allmighty Zeus Hammer, you might be safe with your items and also the possibilities of account being banned of not trying this out (It is possibly an elaborate scams). 

(3) Guild Entrance "Loyalty Test"

There are many guilds in Maple Story requires different entry requirements such as deposit thousands/millions of mesos into Guild Treasury, do the hard tasks such as killing high level mobs with no armour and such but there is one particular "scams" you should be aware of. There are guilds who personally want your items to be deposited into the Guild Treasury.

How to avoid this scam?
Just like job seeking, you research all the necessary infos regarding to your company right before you apply into the company, right? It is same as the guild, especially if the guild requires you to "deposit" your items. Google their guild name ("Guild name+Maple Story") to see if it is an established guild. And if some people complains and says badly about the guild you are going to join, just beware. Ok ?

(4) "Account Got Hacked" Scams

Some random dude /"scammers" begs you or anyone else to part with your mesos and some of your precious items cause his account got hacked. 

How to avoid this scam?

Simple, you tell him to PM the GM, if you know him. No matter what you do, don't give him any of your mesos and stuffs. A real GM will be able to restore his account before got hacked. 


(5) Loot Drop Games
A random guy want to play a drop loot games with you. Or sometimes, he may call you to press Alt-F4 to make the games more easy to play through.Or sometimes, the player may ask you to drop equip able armour and weapons items and suddenly someone else came from behind and steal all of your stuffs

How to avoid this scam?
Bummer . . . avoid this game at all cost.
Why ? If he wanna trade, open a trade windows but just be aware of it also.  Or if you really wanted to play, drop some nice shit loot is more than enough for these scammers/cheaters

(6) Various Trading Scams

Here it is, a guy asks you for trade but he said he is in hurry. He says he wanted to trade something for 5,555,555 mesos for your items and says he wanted it to do real quick. But, you wondered why he canceled 5 times in a row and said his PC is lagging. Finally, the trade gets thru for 8th times and you see WTF ! He only gives you 555,555 mesos. (Note the differences in the number of digits of mesos!) 

How to avoid this scam?
As in real life trading, there is contracts be bonded between buyer and seller. So take your time slowly but not so slow to see carefully the items/mesos that the other party had requested for trades. If you smell anything fishy, cancel the trade and don't chat with them.



So in my short blog post in educating you about scammers, hope you guys are wiser a bit now and go go happy mapling folks !!!

Sunday, June 19, 2011

A life of University Engineering students

This is the life of a normal university students (No matter you are from Computer Engineering in Unimap or Civil Engineering in UTP or the Microelectronics in UTM)

And since, I am mostly *fluent* in computer programming language , let me type it out for you . . .

while ( is Alive() ){


     for( int hour=0;hour<24;hour++ ){
         if(hour>10 && hour<17){
            go_to_class(6);
             }else if(hour>17&&hour<22){
               relax(2);
               study(1);
               relax(2);
             }else if(hour>22&&hour<1){
                socialize(3);
             }else{
                   sleep(8);
                  }
                 }
                }


That is ONLY for your normal university life, but however when you reach your FINAL YEAR with your FYP breathing down your neck, everything changes, just watch. 


while(isAlive())
//Time is irrelevant
    try{
        work_your_FYP();
       }catch(BrainNotResponding e){
        sleep(3);
       }
        }



It is too pity, I can't even photograph my own 316 pages thesis, since my best friend help me settle the thesis collections and helped pass it to the PPKP Office. Thanks Mimi.Wish you are safe and sound now in Sabah ^_^ 

Tuesday, June 14, 2011

KFC's Secret Receipe

This is the closely guarded secret receipe of the crunchy chickens . . . ~_~  

Yum yum . . . 


But are you sure that it consists purely of chickens ?

And since Kuala Perlis got so many cute kittens . . . maybe . . . 


Proudest moment in my casual gaming skills


Seriously . . .

Monday, June 13, 2011

Do you believe in Ghost ?

After seeing this pictures, sometimes, I feel some of the pics found in Internet although not photoshopped are fakes and created as mesh wire ghosts =_= . . .

Sunday, June 12, 2011

Lalalalala ..... 


^_^

Done with viva
Done with hardcover 
Done with burning DVD
Done with outstanding settlement fees
And I am FREEMAN !!!!


As Chow Yun Fatt would do . . . 


Remember the NTV7 theme song? I feel good songs
I feel good ! lalalalala

Saturday, June 11, 2011

world.dat

#
# $Id: world.dat,v 1.2 2006/06/02 06:01:44 sfeam Exp $
#
#This data files consists of plotting the coast line of the planet Earth
#If you want to improve this files data points by adding more accurate points,
#by all means, go ahead. Put your improved versions in the comment below


 50.45  80.14

 61.79  80.18
 61.79  80.18

 65.08  80.69
 64.27  80.59
 65.13  80.68

 -5.13  35.66
  4.06  36.63
 10.40  37.12
 11.36  33.61
 20.10  30.10
 23.49  32.17
 31.65  30.80
 35.76  23.74
 39.75  14.82
 42.93  11.34
 51.52  11.45
 49.82   6.99
 43.13  -0.62
 39.15  -7.58
 40.37 -13.20
 37.74 -18.17
 35.33 -22.71
 32.84 -28.15
 26.50 -34.39
 19.55 -35.51
 17.50 -30.88
 12.24 -18.75
 13.89 -12.81
 12.05  -5.55
  9.67   0.14
  7.19   3.79
  1.74   5.39
 -4.77   4.59
-12.00   6.75
-15.54  10.98
-16.33  15.50
-16.10  22.29
-12.90  27.12
 -9.52  31.09
 -5.41  35.58

 33.71   0.00
 33.48  -3.42
 33.34  -0.20
 33.71   0.00

 49.30 -12.50
 49.28 -18.79
 43.95 -25.50
 44.37 -20.08
 46.34 -16.31
 47.91 -14.08
 49.30 -12.50

178.88  69.10
181.20  68.42
183.52  67.78
188.87  66.38
186.54  64.74
182.87  65.63
180.13  65.14
179.48  64.88
178.20  64.29
177.46  62.62
170.42  60.17
164.48  59.89
162.92  57.34
161.82  54.88
156.42  51.09
156.40  57.76
163.79  61.73
159.90  60.73
156.81  61.68
153.83  59.10
148.57  59.46
140.77  58.39
137.10  54.07
140.72  52.43
138.77  47.30
129.92  42.04
128.33  38.46
126.15  35.18
125.12  39.08
121.62  40.15
117.58  38.21
121.77  36.90
120.73  32.65
121.28  30.25
118.83  24.93
112.69  21.81
108.53  21.73
107.55  16.34
107.32  10.45
104.39  10.37
100.01  13.52
100.26   8.30
103.22   1.56
 98.21   9.17
 97.66  15.36
 94.21  17.79
 90.05  21.74
 90.06  21.03
 82.06  15.95
 80.05  11.72
 76.41   8.60
 72.79  17.43
 72.02  20.00
 68.98  21.99
 64.62  24.41
 57.83  24.77
 53.11  26.20
 49.67  29.41
 50.96  25.15
 54.33  23.44
 59.03  22.57
 57.87  18.86
 52.95  15.74
 47.26  12.96
 42.75  14.68
 39.93  19.61
 36.92  25.78
 33.30  28.46
 32.60  30.63
 32.18  30.58
 36.08  35.03
 32.53  36.17
 27.77  36.94
 26.51  39.18
 31.54  40.82
 38.53  40.48
 40.35  43.17
 39.88  46.45
 35.18  44.99
 33.50  44.96
 30.24  45.14
 28.70  41.48
 26.55  39.84
 23.62  39.67
 23.80  37.34
 21.90  36.92
 18.79  42.02
 14.52  44.31
 14.58  42.25
 18.32  39.57
 16.05  39.35
 11.52  42.36
  6.87  43.08
  2.80  41.09
 -1.11  37.14
 -6.24  36.70
 -8.67  39.57
 -6.51  43.13
 -0.84  45.55
 -3.93  48.40
  0.48  49.09
  4.20  51.29
  6.44  52.92
  8.42  55.94
 11.72  55.49
 11.73  53.66
 16.78  54.14
 21.40  56.32
 24.67  57.20
 28.94  59.18
 24.16  59.52
 22.07  62.66
 23.76  65.35
 18.70  62.54
 19.11  59.67
 18.40  58.54
 15.34  55.73
 11.74  58.08
  8.37  57.68
  5.80  59.20
  7.38  60.86
  7.51  61.86
  9.62  62.99
 13.37  65.46
 15.46  67.12
 18.54  68.62
 22.32  69.64
 24.77  70.17
 25.93  69.79
 28.56  70.46
 29.75  69.76
 33.83  69.11
 41.90  66.85
 35.14  66.25
 33.30  66.07
 35.46  64.15
 37.68  64.03
 41.71  64.09
 44.80  65.58
 44.87  68.16
 45.92  66.83
 51.79  67.85
 53.70  67.89
 59.68  68.09
 65.07  69.08
 68.56  69.19
 68.38  70.97
 73.03  71.62
 73.80  68.29
 69.42  66.45
 73.43  66.36
 77.51  68.36
 80.74  66.74
 75.27  68.67
 75.11  71.80
 78.62  70.56
 78.43  71.90
 82.72  71.23
 84.25  70.03
 81.40  72.76
 86.50  74.01
 87.68  74.78
 90.25  75.23
 89.68  75.57
 95.12  75.95
 99.69  76.09
104.10  77.52
106.34  76.40
112.99  75.60
107.88  73.72
110.43  73.71
113.34  73.37
123.10  73.28
128.94  73.02
126.10  72.24
130.53  70.86
135.49  71.51
139.60  72.23
146.04  72.39
146.92  72.21
150.77  71.28
159.92  70.14
167.68  69.63
170.20  69.99
178.88  69.10

 68.33  76.71
 66.03  75.62
 59.10  74.11
 54.92  73.03
 56.67  74.10
 58.56  75.09
 63.86  75.87
 68.19  76.70

 53.04  72.57
 58.29  70.39
 55.03  70.78
 53.44  72.26
 53.63  72.61

 52.22  46.50
 51.73  44.73
 52.56  41.80
 53.43  40.40
 54.22  37.86
 49.04  38.45
 48.17  42.76
 49.33  45.64
 52.22  46.50

 62.32  46.32
 60.32  43.06
 59.57  45.58
 61.94  46.33

 79.55  46.12
 74.30  44.44
 78.62  45.79
 79.66  46.07

 76.81  41.96
 76.73  41.86

 35.15  35.15
 34.61  34.84
 35.18  35.17

 23.84  35.33
 24.30  34.91
 24.09  35.39

 15.54  37.89
 13.47  37.89
 15.54  37.89

  9.56  40.95
  8.46  39.99
  9.12  40.69

  9.72  42.60
  9.54  42.35

 80.60   8.95
 79.73   5.96
 80.10   8.30

 11.04  57.44
 10.67  57.25

-77.92  24.67
-77.98  24.22

-77.61  23.62
-77.18  23.64

-75.55  24.13
-75.41  24.31

-91.40  -0.17
-91.52  -0.26

-60.25  46.68
-60.71  46.33

-63.89  49.47
-63.45  49.43

142.53 -10.60
145.62 -16.34
149.79 -22.09
153.21 -26.82
150.52 -35.19
145.60 -38.53
140.13 -37.69
137.34 -34.77
135.76 -34.56
131.50 -31.34
121.72 -33.65
115.62 -33.25
114.09 -26.01
114.88 -21.27
122.34 -18.13
125.32 -14.53
128.39 -14.90
132.35 -11.42
136.16 -12.43
138.07 -16.45
142.25 -10.78

144.72 -40.68
148.32 -42.14
145.57 -42.77
146.47 -41.19

172.86 -34.23
176.10 -37.52
177.06 -39.49
174.77 -38.03
172.83 -34.27

172.36 -40.53
172.92 -43.81
168.41 -46.13
170.26 -43.21
173.69 -40.94

150.74 -10.18
143.04  -8.26
138.48  -6.97
131.95  -2.94
130.91  -1.35
134.38  -2.64
141.24  -2.62
148.19  -8.15
150.75 -10.27

117.24   7.01
117.90   0.76
113.89  -3.50
109.44  -0.82
113.13   3.38
117.24   7.01

 95.31   5.75
102.32   1.40
106.03  -2.98
101.46  -2.81
 95.20   5.73

140.91  41.53
140.79  35.75
136.82  34.56
133.56  34.72
132.49  35.41
136.73  37.20
139.82  40.00
140.68  41.43

133.71  34.30
131.41  31.58
129.38  33.10
133.90  34.37

141.89  45.50
144.12  42.92
140.30  41.64
141.53  45.30
141.89  45.53

142.57  54.36
143.64  49.19
141.99  45.88
141.92  50.85
142.60  54.34

121.92  25.48
120.53  24.70
121.70  25.51

110.81  20.07
109.20  19.66
110.81  20.07

106.51  -6.16
114.15  -7.72
108.71  -7.89
106.51  -6.16

164.27 -20.01
164.16 -20.27

178.61 -17.04
178.61 -17.04

179.45 -16.43
179.35 -16.43

-172.55 -13.39
-172.61 -13.78

122.26  18.67
123.05  13.86
120.73  13.80
120.43  16.43
121.72  18.40

125.34   9.79
125.56   6.28
122.38   7.00
125.10   9.38

119.64  11.35
118.81  10.16
119.59  10.86
119.64  11.35

-179.87  65.14
-177.13  65.63
-173.46  64.74
-171.13  66.38
-176.48  67.78
-178.80  68.42

101.96  79.08
101.31  77.86
101.22  79.04

 94.29  79.29
 95.31  78.68
100.02  79.43
 97.26  79.62
 95.44  79.65

 95.46  80.62
 92.39  79.66
 95.07  80.54

138.54  76.05
144.93  75.45
140.30  74.99
137.27  75.44
138.29  75.98

146.08  75.29
147.75  74.73
145.85  75.06

141.44  73.88
141.48  73.84

  0.01 -71.68
  6.57 -70.57
 15.04 -70.44
 25.10 -70.75
 33.37 -69.10
 38.46 -69.77
 42.85 -68.16
 46.59 -67.23
 49.35 -66.96
 52.90 -65.97
 58.46 -67.20
 63.60 -67.58
 70.63 -68.41
 69.24 -70.36
 76.20 -69.44
 88.08 -66.64
 94.98 -66.52
101.53 -66.09
111.31 -65.91
118.64 -66.87
126.24 -66.24
133.09 -66.18
139.85 -66.72
146.86 -67.96
153.65 -68.82
159.94 -69.57
164.10 -70.67
170.19 -71.94
165.68 -74.64
163.82 -77.60
162.10 -78.95
166.72 -82.84
175.58 -83.86

-178.56 -84.37
-147.96 -85.40
-152.96 -81.12
-153.95 -79.50
-151.24 -77.48
-146.74 -76.44
-137.68 -75.16
-131.63 -74.63
-123.05 -74.41
-114.76 -73.97
-111.91 -75.41
-105.05 -74.77
-100.90 -74.21
-101.04 -73.18
-100.28 -73.06
-93.06 -73.33
-85.40 -73.18
-79.82 -73.04
-78.21 -72.52
-71.90 -73.41
-67.51 -71.10
-67.57 -68.92
-66.65 -66.83
-64.30 -65.28
-59.14 -63.74
-59.58 -64.37
-62.50 -65.94
-62.48 -66.66
-65.64 -68.02
-63.85 -69.07
-61.69 -70.87
-60.89 -72.71
-61.07 -74.30
-63.33 -75.88
-76.05 -77.06
-83.04 -77.12
-74.30 -80.83
-56.40 -82.14
-42.46 -81.65
-31.60 -80.17
-34.01 -79.20
-32.48 -77.28
-26.28 -76.18
-17.18 -73.45
-11.20 -72.01
 -8.67 -71.98
 -5.45 -71.45
 -0.82 -71.74
  0.07 -71.68

164.65 -77.89
170.95 -77.37
179.67 -78.25

-178.74 -78.24
-165.76 -78.47
-158.42 -77.73

-58.98 -64.63
-60.99 -68.62
-61.02 -71.70

-62.01 -74.94
-52.00 -77.07
-42.23 -77.80
-36.22 -78.03

-35.03 -77.81
-26.13 -75.54
-19.35 -73.04
-12.16 -71.86
 -6.15 -70.65
 -0.57 -69.14
  4.93 -70.25
 10.91 -69.99
 16.52 -69.87
 25.41 -70.22
 32.13 -69.29
 33.62 -69.58

 70.56 -68.53
 73.91 -69.51

 81.42 -67.87
 84.67 -66.41
 89.07 -66.73

-135.79 -74.67
-124.34 -73.22
-116.65 -74.08
-109.93 -74.64
-105.36 -74.56
-105.83 -74.77

-69.30 -70.06
-71.33 -72.68
-71.42 -71.85
-75.10 -71.46
-71.79 -70.55
-70.34 -69.26
-69.34 -70.13

-49.20 -77.83
-44.59 -78.79
-44.14 -80.13
-59.04 -79.95
-49.28 -77.84
-48.24 -77.81

-58.13 -80.12
-63.25 -80.20
-58.32 -80.12

-163.64 -78.74
-161.20 -79.93
-163.62 -78.74

 66.82  66.82
 66.82  66.82

Cartography in GnuPlot tutorial

Okay... Cartography maybe sounds so alien to you ... so what the heck is it ?

According to old buddy Google, arghh.. beat it. I just copy and pasta here

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
car·tog·ra·phy
noun /kärˈtägrəfē/ 

The science or practice of drawing maps
 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

Ok, so we know that roughly the cartography got something to do with my Geography or Social Studies (Kajian Tempatan) ages ago ....


Sadly, this art of map making is almost lost to nowadays secondary students.
(I can vouch for it, they never learn cartography in Form 2/Form3)
But never mind, we can do cartography of whole world map using Gnuplot. All you need to have is Linux Ubuntu, Gnuplot software (available for free thru Ubuntu Software Center) plus the extra edited data files which I am going to share in some links later.

By the way, GNUPlot is one of the  free mathematical plotting software used by scientist and engineers in Linux environment to plot out the statistical graph. Heck, even one of my friends plotted performances evaluation between TCP Reno/ TCP Vegas/TCP Tahoe using GNUPlot in his FYP and the results is coming out nice. It is not very wide known that you can plot world map in 3D using Gnuplot.

So I share with you steps by steps of the plotting cartography:

1. Install Gnuplot    
(This steps is no brainer if you uses Ubuntu. For other Distro, sorry you are on your own)
P.S: See the manual guide for more informations on how to install for other Linux distro
2.Open up your terminal and type "gnuplot"
You should seen the followings


3. Okay now import the world.cor / world.dat / srl.dat into your Linux desktop
For more explainations on what the functions of data files, refer to the link 

world.cor- Plotting the sites locations with X symbols
world.dat- Plotting the rudimentary coast line of the world
srl.dat-      Plot the name of the sites

4. Copy and paste the followings to the GNUPlot terminal

#--------------------------------------------------------------
#NOTE: Replace "user" with your created user name of Ubuntu
#--------------------------------------------------------------
#set terminal png transparent nocrop enhanced font arial 8 size 420,320
#set output '/home/user/Desktop/worldoutput.png'
#--------------------------------------------------------------
#This work is license free, you make tweak it to do what ever stuffs that you wanted to do

#set variable for latitude and longitude
set dummy u,v

set angles degrees

#set legend off
set key off

#set the default angle view and size of globe
set parametric
set view 60, 40, 1.2, 1.25

#set the meshgrids, the higher the value, the more mesh grids appears
set samples 32, 32
set isosamples 15, 15

#set the map plot
set mapping spherical
set yzeroaxis linetype 0 linewidth 1.000
set ticslevel 0
set title "World Map in 3D using GNUPlot"

#set the min/max range of the longitude and latitude
set urange [ -90.0000 : 90.0000 ] noreverse nowriteback
set vrange [ 0.00000 : 360.000 ] noreverse nowriteback

#Plotting consists of 3 parts
#Part 1:Plot the coast line from world.dat files
#Part 2:Plot the coordinate of place use symbol x from world.cor
#Part 3:Plot the name of place using specific fonts

splot cos(u)*cos(v),cos(u)*sin(v),sin(u) with lines lt 5 ,'/home/user/Desktop/world.dat' with lines lt 2 , '/home/user/Desktop/world.cor' with points lt 1 pt 2 , '/home/user/Desktop/srl.dat' using 3:2:(1):1:4 with labels notitle point pt 6 lw .1 font "Helvetica,10"  lt -1

##############################

5.If successfully plotted, you will be able to see the followings almost nicely plotted maps

6.Voila ! Success.

You sir/madam had successfully done what is previously deemed impossible.

world.cor

#-------------------------------------------------------
# $Id: world.cor,v 6.6.6 2011/21/05 6:6:6 lhecking Exp $
#
# Gnuplot world correspondences.  Feel free to check for and update
# your site; especially if it represents a new location or you
# know more precise coordinates for a site.  A (?) indicates
# the site may not be correct.  Currently coordinates are generally
# rounded to the nearest latitude and longitude.  It's fine, however,
# to give as many decimal places with each as you like.
#
#This data files is what gives the plotting the landmark with symbol x
#Reminder is Longitude comes first before latitude
#--------------------------------------------------------
#Long    Lat    Site
101.42    3.08    #Kuala Lumpur
100.30    13.45    #Bangkok
114.11    22.20    #Hong Kong
2.20    48.48    #Paris
13.12    32.57    #Tripoli
151.00    -34.00    #Sydney
121.22    31.06    #Shanghai
-73.58    40.47    #New York
37.36    55:45    #Moscow
-58.22    -34.35    #Buenos Aires
18.22    -33.55    #Cape Town
0.00    51.38    #Greenwich
88.24    22.34    #Calcutta

srl.dat

# This data file consists of longitude n latitude that u want to plot
# Note: The N/S and E/W   latitude and longitude flags are ignored,
#       so S and W require a minus sign instead
#Ignore the GeV,it is just extra data set
#You can add your own cities following the formats
#Site         Latitude    Longitude    GeV
#---------------------------------------------------

"Kuala Lumpur"    3:08N        101:42E        0
Bangkok        13:45N        100:30E        0
"Hong Kong"    22:20N        114:11E        0
Paris        48:48N      2:20E       0
Tripoli        32:57N      13:12E      0
Sydney        -34:00S      151:00E      0
Shanghai    31:06N      121:22E      0
Moscow       55:45N        37:36E          0
"New York"    40:47N        -73:58W        0
"Mexico City"    19:26N        -99:7W        0
"Buenos Aires"    -34:35S        -58:22W        0
"Cape Town"    -33:55S        18:22E        0
Greenwich    51:28N        0:00E        0
Calcutta    22.34N        88:24E        0

Wednesday, June 8, 2011

Today. I feel so happy . . .

Hari Ini, Ku Rasa GEMBIRA !!!


Lalalalalalalaalalalalalaalalalalalalalala .........

Monday, June 6, 2011

Amhdal's Law Example

Okie, this is another famous topic in Computer Architecture subject but when you search the web, you can't find any good examples/contents with it.

First is the Amhdal's Law given equation:

Amhdal's Law basically is a qualitative measures on how much the new performance improvement can bring impact towards a system and how often the improvement had to be in use. 

The Amhdal's Law can be re-written to provides definition to speedup as in the following Amhdal's Speedup Equation


So we take a few questions that are related to Amhdal's Law.

(1)
If in the 2000, computer executes a program in 200 ms, the computer made in 2010 executes the same program in 150 ms, what is the speedup the computer manufacturer had achieved in the 10 years gap?

Solution:
See the Amhdal's Speedup equation

Speedup = Execution Time  (old)/Execution Time (new)
Speedup=200ms/150ms =1.33

(2)
Supposedly a computer spends 90% of time handling a particular type of computations when running a program, and manufacturer make improvisation that improves its performances on that type of particular type of computations by factor of 10. 

If program originally took 100 secs to execute, what will be the new execution time after changes?

Solution: 
Direct application of Amhdal's Law

Execution Time(old)=100
Frac(Used)=0.9
Frac(Unused)=0.1
Speedup(Used)=10

Apply the coefficient in Amhdal's Law and it will gives Execution Time(new) ~ 19

(3)
Which improvement in following cases gives a greater reduction in execution time:
(i) One that is used 20% of the time but improves performances by factor of 2 when used 
(ii) One that is used 70% of the time but improves performances by factor of 1.3 when used

Solution:
Apply Amhdal's Law

(i) Execution Time = Execution Time(old) X [ 0.8 +0.2/2 ] ~ 94% of Execution Time(old)
(ii) Execution Time = Execution Time(old)X [0.3+0.7/1.3] ~ 84% of Execution Time(old)

Case (ii) would offer better performances

Another random post to read ? Come !

Related Posts with Thumbnails