SA’s Largest Online Retailer Takealot.com Revenues Defy Pandemic

South Africa’s largest online retailer, Takealot.com, reported on Monday a 41% jump in revenue to $238 million (R3.7 billion) in the six-months to end 30...

Latest Posts

A Laptop And A Sea View. What’s Behind The Semigration Trend?

By Andrea Tucker South Africans are increasingly looking to greener pastures within our country’s borders in search of a better quality of life away from...

Stay Connected With Vodacom’s Plug-And-Play Home Internet

This year has been unlike any we have experienced before, as we have had to adapt our routines and habits, and adjust to a...

Ethos Private Equity Sells 1.4% Stake In FinTech Player Channel VAS for R77 Million

South Africa’s private equity firm Ethos announced on Wednesday that it has sold its 1.4% stake in FinTech player Channel VAS. The company said it...

If You’re Travelling Over The Festive Season, Make Sure Your Financial Affairs Are In Order

2020 marks the end of the UN Decade for Road Safety. South Africa joined other nations a decade ago as a part of the...

What Is An Algorithm? How Computers Know What To Do With Data

by Jory Denny

The world of computing is full of buzzwords: AI, supercomputers, machine learning, the cloud, quantum computing and more. One word in particular is used throughout computing – algorithm.

In the most general sense, an algorithm is a series of instructions telling a computer how to transform a set of facts about the world into useful information. The facts are data, and the useful information is knowledge for people, instructions for machines or input for yet another algorithm. There are many common examples of algorithms, from sorting sets of numbers to finding routes through maps to displaying information on a screen.

To get a feel for the concept of algorithms, think about getting dressed in the morning. Few people give it a second thought. But how would you write down your process or tell a 5-year-old your approach? Answering these questions in a detailed way yields an algorithm.

Input

Close-up of shirts of different colors hanging in a closet
There are many variables to consider when choosing what to wear.
Chris/Flickr, CC BY-NC

To a computer, input is the information needed to make decisions.

When you get dressed in the morning, what information do you need? First and foremost, you need to know what clothes are available to you in your closet. Then you might consider what the temperature is, what the weather forecast is for the day, what season it is and maybe some personal preferences.

All of this can be represented in data, which is essentially simple collections of numbers or words. For example, temperature is a number, and a weather forecast might be “rainy” or “sunshine.”

Transformation

Next comes the heart of an algorithm – computation. Computations involve arithmetic, decision-making and repetition.

So, how does this apply to getting dressed? You make decisions by doing some math on those input quantities. Whether you put on a jacket might depend on the temperature, and which jacket you choose might depend on the forecast. To a computer, part of our getting-dressed algorithm would look like “if it is below 50 degrees and it is raining, then pick the rain jacket and a long-sleeved shirt to wear underneath it.”

After picking your clothes, you then need to put them on. This is a key part of our algorithm. To a computer a repetition can be expressed like “for each piece of clothing, put it on.”

Output

Young woman with pink hair taking a selfie
The last step of an algorithm is presenting the output.
Eternity in an Instant/Stone via Getty Images

Finally, the last step of an algorithm is output – expressing the answer. To a computer, output is usually more data, just like input. It allows computers to string algorithms together in complex fashions to produce more algorithms. However, output can also involve presenting information, for example putting words on a screen, producing auditory cues or some other form of communication.

So after getting dressed you step out into the world, ready for the elements and the gazes of the people around you. Maybe you even take a selfie and put it on Instagram to strut your stuff.

Machine learning

Sometimes it’s too complicated to spell out a decision-making process. A special category of algorithms, machine learning algorithms, try to “learn” based on a set of past decision-making examples. Machine learning is commonplace for things like recommendations, predictions and looking up information.

[Deep knowledge, daily. Sign up for The Conversation’s newsletter.]

For our getting-dressed example, a machine learning algorithm would be the equivalent of your remembering past decisions about what to wear, knowing how comfortable you feel wearing each item, and maybe which selfies got the most likes, and using that information to make better choices.

So, an algorithm is the process a computer uses to transform input data into output data. A simple concept, and yet every piece of technology that you touch involves many algorithms. Maybe the next time you grab your phone, see a Hollywood movie or check your email, you can ponder what sort of complex set of algorithms is behind the scenes.The Conversation

Jory Denny, Assistant Professor of Computer Science, University of Richmond

This article is republished from The Conversation under a Creative Commons license. Read the original article.

Latest Posts

A Laptop And A Sea View. What’s Behind The Semigration Trend?

By Andrea Tucker South Africans are increasingly looking to greener pastures within our country’s borders in search of a better quality of life away from...

Stay Connected With Vodacom’s Plug-And-Play Home Internet

This year has been unlike any we have experienced before, as we have had to adapt our routines and habits, and adjust to a...

Ethos Private Equity Sells 1.4% Stake In FinTech Player Channel VAS for R77 Million

South Africa’s private equity firm Ethos announced on Wednesday that it has sold its 1.4% stake in FinTech player Channel VAS. The company said it...

If You’re Travelling Over The Festive Season, Make Sure Your Financial Affairs Are In Order

2020 marks the end of the UN Decade for Road Safety. South Africa joined other nations a decade ago as a part of the...

Don't Miss

MTN Increases Stake in Mobile Micro-Insurance Firm aYo

MTN, Africa’s largest mobile phone group, has increased its shareholding in mobile-micro-insurance firm aYo through acquisition of additional shares. In 2017, South Africa’s third-biggest insurer Momentum...

SA Taxi Teases the Idea of Creating a Minibus Taxi Bank

Transaction Capital, the owners of SA Taxi, on Tuesday gave us an idea about how the JSE-listed group wants to bring banking to the...

SA-Born 4IR-Tech Disruptor Revolutionises Traditional Lay-By System

The traditional lay-by system has long represented an enormous headache for merchants and retailers, marked by high administrative costs and high non-completion rates. But...

Making Wi-Fi 6 Smarter With Huawei 5G-Powered Smart Antenna Technology

Wireless communications and signal processing expert Dr Doron Ezri, the Wi-Fi CTO of Data Communications Product Line at Huawei, told an audience of industry...

Prosus’ PayU Spend R15.8 Billion in FinTech Acquisition Trail

PayU, the payments and FinTech business of Prosus, has invested a staggering $1 billion (R15.8 billion) on FinTech and mergers & acquisitions (M&A) globally...
[tdn_block_newsletter_subscribe title_text=”Stay in touch” description=”VG8gYmUgdXBkYXRlZCB3aXRoIGFsbCB0aGUgbGF0ZXN0IG5ld3MsIG9mZmVycyBhbmQgc3BlY2lhbCBhbm5vdW5jZW1lbnRzLg==” input_placeholder=”Email address” tds_newsletter2-image=”5″ tds_newsletter2-image_bg_color=”#c3ecff” tds_newsletter3-input_bar_display=”row” tds_newsletter4-image=”6″ tds_newsletter4-image_bg_color=”#fffbcf” tds_newsletter4-btn_bg_color=”#f3b700″ tds_newsletter4-check_accent=”#f3b700″ tds_newsletter5-tdicon=”tdc-font-fa tdc-font-fa-envelope-o” tds_newsletter5-btn_bg_color=”#000000″ tds_newsletter5-btn_bg_color_hover=”#4db2ec” tds_newsletter5-check_accent=”#000000″ tds_newsletter6-input_bar_display=”row” tds_newsletter6-btn_bg_color=”#da1414″ tds_newsletter6-check_accent=”#da1414″ tds_newsletter7-image=”7″ tds_newsletter7-btn_bg_color=”#1c69ad” tds_newsletter7-check_accent=”#1c69ad” tds_newsletter7-f_title_font_size=”20″ tds_newsletter7-f_title_font_line_height=”28px” tds_newsletter8-input_bar_display=”row” tds_newsletter8-btn_bg_color=”#00649e” tds_newsletter8-btn_bg_color_hover=”#21709e” tds_newsletter8-check_accent=”#00649e” embedded_form_code=”JTNDIS0tJTIwQmVnaW4lMjBNYWlsQ2hpbXAlMjBTaWdudXAlMjBGb3JtJTIwLS0lM0UlMEElMEElM0Nmb3JtJTIwYWN0aW9uJTNEJTIyaHR0cHMlM0ElMkYlMkZ0YWdkaXYudXMxNi5saXN0LW1hbmFnZS5jb20lMkZzdWJzY3JpYmUlMkZwb3N0JTNGdSUzRDZlYmQzMWU5NGNjYzVhZGRkYmZhZGFhNTUlMjZhbXAlM0JpZCUzRGVkODQwMzZmNGMlMjIlMjBtZXRob2QlM0QlMjJwb3N0JTIyJTIwaWQlM0QlMjJtYy1lbWJlZGRlZC1zdWJzY3JpYmUtZm9ybSUyMiUyMG5hbWUlM0QlMjJtYy1lbWJlZGRlZC1zdWJzY3JpYmUtZm9ybSUyMiUyMGNsYXNzJTNEJTIydmFsaWRhdGUlMjIlMjB0YXJnZXQlM0QlMjJfYmxhbmslMjIlMjBub3ZhbGlkYXRlJTNFJTNDJTJGZm9ybSUzRSUwQSUwQSUzQyEtLUVuZCUyMG1jX2VtYmVkX3NpZ251cC0tJTNF” descr_space=”eyJhbGwiOiIxNSIsImxhbmRzY2FwZSI6IjE1In0=” tds_newsletter=”tds_newsletter3″ tds_newsletter3-all_border_width=”0″ btn_text=”Sign up” tds_newsletter3-btn_bg_color=”#ea1717″ tds_newsletter3-btn_bg_color_hover=”#000000″ tds_newsletter3-btn_border_size=”0″ tdc_css=”eyJhbGwiOnsibWFyZ2luLWJvdHRvbSI6IjAiLCJiYWNrZ3JvdW5kLWNvbG9yIjoiI2E3ZTBlNSIsImRpc3BsYXkiOiIifSwicG9ydHJhaXQiOnsiZGlzcGxheSI6IiJ9LCJwb3J0cmFpdF9tYXhfd2lkdGgiOjEwMTgsInBvcnRyYWl0X21pbl93aWR0aCI6NzY4fQ==” tds_newsletter3-input_border_size=”0″ tds_newsletter3-f_title_font_family=”445″ tds_newsletter3-f_title_font_transform=”uppercase” tds_newsletter3-f_descr_font_family=”394″ tds_newsletter3-f_descr_font_size=”eyJhbGwiOiIxMiIsInBvcnRyYWl0IjoiMTEifQ==” tds_newsletter3-f_descr_font_line_height=”eyJhbGwiOiIxLjYiLCJwb3J0cmFpdCI6IjEuNCJ9″ tds_newsletter3-title_color=”#000000″ tds_newsletter3-description_color=”#000000″ tds_newsletter3-f_title_font_weight=”600″ tds_newsletter3-f_title_font_size=”eyJhbGwiOiIyMCIsImxhbmRzY2FwZSI6IjE4IiwicG9ydHJhaXQiOiIxNiJ9″ tds_newsletter3-f_input_font_family=”394″ tds_newsletter3-f_btn_font_family=”” tds_newsletter3-f_btn_font_transform=”uppercase” tds_newsletter3-f_title_font_line_height=”1″ title_space=”eyJsYW5kc2NhcGUiOiIxMCJ9″]