You are on page 1of 1

Given 5 different algos, each is developed into a program.

Those programs combine with codes, make


up Power Tutor, an application used to measure the energy consumption of each sorting algorithm

These are 2 screenshots of the app. The 1st one is the condition of the device, the 2nd one is the chart
view after the process finished.

So how the app works? To find the most accurate result, a datum will be run for 10 times in each
algorithm, after that, the average consumption output will be recorded.

In this experiment, we ‘ll use 2 devices: samsung j5 prime and gt-18262. Since the same trends are
obtained from running the app on both devices, in this case, we’ll only discuss the outcome from j5
prime.

Please take a look at this picture, this explains how we setup for the experiment. Firstly, we create 10
difference datasets of random numbers. Then we input the data into devices. Sorting apps take the
numbers and process them, all be controlled by Power Tutor. Lastly, the result will be on the screen for
a brief moment.

This is the result table about the energy consumption in Joule for different data size in the range from
10000 to 100000. But there is problem hear. This table contains too much numbers, therefore, it’s hard
to keep track on fluctuation of the consumed energy. In order to analyze the result more easily, I’ll
redraw the table into this line graph.

As you can see, each line stands for each algorithm. From the initial point, 10000, there is no significant
differences between these progresses. But as the data size increase, Bubble sort line rises dramatically
and finally be the most energy consuming algorithms, followed by selection sort. In the other side, quick
sort is the most energy efficient algorithm, with only 10 joule is used, more than 4 times faster
compared to bubble sort, which is quite impressive, right?

You might also like