An illustration of Abu Ja'far Muhammad Ibn Musa Al Khwarizmi, one of the greatest minds of the Islamic Golden Age. Fred Matamoros for The National
An illustration of Abu Ja'far Muhammad Ibn Musa Al Khwarizmi, one of the greatest minds of the Islamic Golden Age. Fred Matamoros for The National
An illustration of Abu Ja'far Muhammad Ibn Musa Al Khwarizmi, one of the greatest minds of the Islamic Golden Age. Fred Matamoros for The National
An illustration of Abu Ja'far Muhammad Ibn Musa Al Khwarizmi, one of the greatest minds of the Islamic Golden Age. Fred Matamoros for The National

The science of algorithms


  • English
  • Arabic

As the author of a celebrated business text, Abu Ja’far Muhammad Ibn Musa Al Khwarizmi enjoys an impressive reputation. He is credited with making a host of powerful techniques available to non-specialists in a clear yet precise style.

But you won’t find this Baghdad-based writer’s magnum opus in bookshops. That is because The Compendious Book on Calculation by Completion and Balancing has been out of circulation for a while now, having been written about 1,200 years ago.

Al Khwarizmi was one of the greatest minds of the Islamic Golden Age. He kept alive mathematical traditions dating back to the Greeks, and added many of his insights.

Ironically, he is best known today as the person who gave his name to one of the hottest ideas in 21st-century business: algorithms.

These mathematical recipes take their name from the Latinised version of Al Khwarizmi’s name, which, when typed into Google, pops up in a host of headlines.

In the last few days alone, attributions have been made to algorithms for everything from weeding out spoof Twitter postings to seeking out ethnically diverse job applicants. Finnish software engineer Atanas Boev even claims to have found an algorithm for the perfect spouse.

But the term crops up most often in coverage of a major controversy shaking the financial world. It centres on the use of algorithms to make fortunes from stock markets.

This month marks the fourth anniversary of the so-called Flash Crash, when the Dow Jones Industrial Average plunged almost 1,000 points – about 9 per cent – in a matter of minutes.

According to the United States Securities and Exchange Commission (SEC), the principal cause was computer algorithms reacting to a big order placed in an already jittery market.

The appearance of US$4 billion worth of contracts on an exchange set off a feeding frenzy among so-called high-frequency trading (HFT) algorithms, which mindlessly tried to buy and sell the contracts, causing the market to go haywire.

While no permanent damage was done to share prices, the same cannot be said of confidence in the stability of financial markets.

CNBC markets commentator Jim Cramer this month called attention to the strange behaviour of certain stocks, which he blamed on the action of algorithms.

Cramer’s suspicions were roused by the stock price of Yelp, an online business reviews site. The company has never turned a profit, but recently announced quarterly results that narrowly beat analysts’ expectations.

That would normally cause the stock price to improve briefly before falling back – often prompting similar stocks to fall as well.

This time, however, the market took a different view of Yelp’s prospects, and its price did not experience the initial jump.

Then something weird happened: the stock price of similar companies started to rise. Cramer thought this was the result of trading algorithms, which had been designed to expect an initial jump in Yelp’s share price, to be followed by a decline that dragged similar stocks down with it.

When this failed to happen, the algorithms became confused – and started driving up the price of the other stocks.

Cramer’s suspicions might not be well-founded, but he was certainly right about one thing: trading algorithms can do things that baffle even their human creators.

This would not be such an issue were it not for the astonishing speed at which the algorithms operate. Carrying their instructions as electronic pulses, they can affect markets in millionths of a second.

Such speed is believed to have exacerbated the Flash Crash in May 2010. Technical glitches on the New York Stock Exchange led to incorrect time-stamps on the price of stocks. In the resulting confusion, human traders pulled out, but high-frequency algorithms swooped in, trading with inaccurate prices and intensifying the market turmoil.

Such high-frequency trading algorithms are under intense scrutiny following the publication of Flash Boys by the financial writer Michael Lewis. He claims traders are using algorithms that act so fast that they can “front run” orders from others, buying shares ahead of the order, jacking up the price and ensuring a profit – to the detriment of other investors, including pension funds.

While some commentators have dismissed Lewis’s claims as scaremongering, the SEC is taking them seriously. It has already begun creating software systems to detect market manipulation.

But the regulators are also turning their attention to another aspect of algorithmic trading, which is almost spooky in its implications.

In their endless quest for profit, finance firms began trading “off exchange” in the 1990s, where they could execute buy-and-sell orders without affecting share prices on the stock market.

Known as “dark pools”, these private all-electronic marketplaces soon began to spawn their own special trading algorithms, triggering a Darwinian struggle for the survival of the fittest.

By the early 2000s, the algorithms were no longer just mindless lists of instructions such as “If the price of commodity X rises, then buy company Z”. The fitter, smarter algorithms had been equipped with artificial intelligence code, which allowed them to spot the actions of less sophisticated algorithms and learn to outwit them.

Their success in squeezing profit out of trades has led to about 10 per cent of all stock trades in the US occurring in these dark pools now.

That means trillions of dollars worth of stocks are being traded by these incredibly smart algorithms.

Regulators are understandably concerned that some of these algorithms are more than just smart. They may also be capable of actions that constitute illegal behaviour, such as insider trading.

But there is another concern. Not even the designers of the algorithms can predict what their progenies will do in every circumstance.

The methods used to create the algorithms produce code which is often beyond analysis. Worse, as the algorithms evolve they can acquire traits never intended by their creators.

Four years on from the Flash Crash, it is far from clear that we have really got to grips with the digital beasts named after a long-dead Islamic genius.

Robert Matthews is a visiting reader in science at Aston University, Birmingham

How to wear a kandura

Dos

  • Wear the right fabric for the right season and occasion 
  • Always ask for the dress code if you don’t know
  • Wear a white kandura, white ghutra / shemagh (headwear) and black shoes for work 
  • Wear 100 per cent cotton under the kandura as most fabrics are polyester

Don’ts 

  • Wear hamdania for work, always wear a ghutra and agal 
  • Buy a kandura only based on how it feels; ask questions about the fabric and understand what you are buying
FA%20Cup%20semi-final%20draw
%3Cp%3ECoventry%20City%20v%20Manchester%20United%C2%A0%3C%2Fp%3E%0A%3Cp%3EManchester%20City%20v%20Chelsea%3C%2Fp%3E%0A%3Cp%3E-%20Games%20to%20be%20played%20at%20Wembley%20Stadium%20on%20weekend%20of%20April%2020%2F21.%C2%A0%3C%2Fp%3E%0A
MISSION: IMPOSSIBLE – FINAL RECKONING

Director: Christopher McQuarrie

Starring: Tom Cruise, Hayley Atwell, Simon Pegg

Rating: 4/5

%3Cp%3EMATA%0D%3Cbr%3EArtist%3A%20M.I.A%0D%3Cbr%3ELabel%3A%20Island%0D%3Cbr%3ERating%3A%203.5%2F5%3C%2Fp%3E%0A
Match info

Uefa Nations League Group B:

England v Spain, Saturday, 11.45pm (UAE)

COMPANY%20PROFILE
%3Cp%3ECompany%20name%3A%20CarbonSifr%3Cbr%3EStarted%3A%202022%3Cbr%3EBased%3A%20Dubai%3Cbr%3EFounders%3A%20Onur%20Elgun%2C%20Mustafa%20Bosca%20and%20Muhammed%20Yildirim%3Cbr%3ESector%3A%20Climate%20tech%3Cbr%3EInvestment%20stage%3A%20%241%20million%20raised%20in%20seed%20funding%3Cbr%3E%3C%2Fp%3E%0A
The%20specs
%3Cp%3E%3Cstrong%3EEngine%3A%20%3C%2Fstrong%3E3.0-litre%20twin-turbo%20V6%0D%3Cbr%3E%3Cstrong%3ETransmission%3A%20%3C%2Fstrong%3E10-speed%20auto%0D%3Cbr%3E%3Cstrong%3EPower%3A%20%3C%2Fstrong%3E400bhp%0D%3Cbr%3E%3Cstrong%3ETorque%3A%20%3C%2Fstrong%3E563Nm%0D%3Cbr%3E%3Cstrong%3EPrice%3A%20%3C%2Fstrong%3EDh320%2C000%0D%3Cbr%3E%3Cstrong%3EOn%20sale%3A%3C%2Fstrong%3E%20Now%3C%2Fp%3E%0A
The rules on fostering in the UAE

A foster couple or family must:

  • be Muslim, Emirati and be residing in the UAE
  • not be younger than 25 years old
  • not have been convicted of offences or crimes involving moral turpitude
  • be free of infectious diseases or psychological and mental disorders
  • have the ability to support its members and the foster child financially
  • undertake to treat and raise the child in a proper manner and take care of his or her health and well-being
  • A single, divorced or widowed Muslim Emirati female, residing in the UAE may apply to foster a child if she is at least 30 years old and able to support the child financially
Day 2, stumps

Pakistan 482

Australia 30/0 (13 ov)

Australia trail by 452 runs with 10 wickets remaining in the innings

What vitamins do we know are beneficial for living in the UAE

Vitamin D: Highly relevant in the UAE due to limited sun exposure; supports bone health, immunity and mood.Vitamin B12: Important for nerve health and energy production, especially for vegetarians, vegans and individuals with absorption issues.Iron: Useful only when deficiency or anaemia is confirmed; helps reduce fatigue and support immunity.Omega-3 (EPA/DHA): Supports heart health and reduces inflammation, especially for those who consume little fish.

Recycle Reuse Repurpose

New central waste facility on site at expo Dubai South area to  handle estimated 173 tonne of waste generated daily by millions of visitors

Recyclables such as plastic, paper, glass will be collected from bins on the expo site and taken to the new expo Central Waste Facility on site

Organic waste will be processed at the new onsite Central Waste Facility, treated and converted into compost to be re-used to green the expo area

Of 173 tonnes of waste daily, an estimated 39 per cent will be recyclables, 48 per cent  organic waste  and 13 per cent  general waste.

About 147 tonnes will be recycled and converted to new products at another existing facility in Ras Al Khor

Recycling at Ras Al Khor unit:

Plastic items to be converted to plastic bags and recycled

Paper pulp moulded products such as cup carriers, egg trays, seed pots, and food packaging trays

Glass waste into bowls, lights, candle holders, serving trays and coasters

Aim is for 85 per cent of waste from the site to be diverted from landfill 

UK’s AI plan
  • AI ambassadors such as MIT economist Simon Johnson, Monzo cofounder Tom Blomfield and Google DeepMind’s Raia Hadsell
  • £10bn AI growth zone in South Wales to create 5,000 jobs
  • £100m of government support for startups building AI hardware products
  • £250m to train new AI models
Dust and sand storms compared

Sand storm

  • Particle size: Larger, heavier sand grains
  • Visibility: Often dramatic with thick "walls" of sand
  • Duration: Short-lived, typically localised
  • Travel distance: Limited 
  • Source: Open desert areas with strong winds

Dust storm

  • Particle size: Much finer, lightweight particles
  • Visibility: Hazy skies but less intense
  • Duration: Can linger for days
  • Travel distance: Long-range, up to thousands of kilometres
  • Source: Can be carried from distant regions
SPEC%20SHEET
%3Cp%3E%3Cstrong%3EProcessor%3A%3C%2Fstrong%3E%20Apple%20M2%2C%208-core%20GPU%2C%2010-core%20CPU%2C%2016-core%20Neural%20Engine%3C%2Fp%3E%0A%3Cp%3E%3Cstrong%3EDisplay%3A%3C%2Fstrong%3E%2013.3-inch%20Retina%2C%202560%20x%201600%2C%20227ppi%2C%20500%20nits%2C%20True%20Tone%2C%20wide%20colour%3C%2Fp%3E%0A%3Cp%3E%3Cstrong%3EMemory%3A%3C%2Fstrong%3E%208%2F16%2F24GB%3C%2Fp%3E%0A%3Cp%3E%3Cstrong%3EStorage%3A%3C%2Fstrong%3E%20256%2F512GB%20%2F%201%2F2TB%3C%2Fp%3E%0A%3Cp%3E%3Cstrong%3EI%2FO%3A%3C%2Fstrong%3E%20Thunderbolt%203%20(2)%2C%203.5mm%20audio%3B%20Touch%20Bar%20with%20Touch%20ID%3C%2Fp%3E%0A%3Cp%3E%3Cstrong%3EConnectivity%3A%3C%2Fstrong%3E%20Wi-Fi%206%2C%20Bluetooth%205.0%3C%2Fp%3E%0A%3Cp%3E%3Cstrong%3EBattery%3A%3C%2Fstrong%3E%2058.2Wh%20lithium-polymer%2C%20up%20to%2020%20hours%3C%2Fp%3E%0A%3Cp%3E%3Cstrong%3ECamera%3A%3C%2Fstrong%3E%20720p%20FaceTime%20HD%3C%2Fp%3E%0A%3Cp%3E%3Cstrong%3EVideo%3A%3C%2Fstrong%3E%20Support%20for%20HDR%20with%20Dolby%20Vision%2C%20HDR10%2C%20ProRes%3C%2Fp%3E%0A%3Cp%3E%3Cstrong%3EAudio%3A%3C%2Fstrong%3E%20Stereo%20speakers%20with%20HDR%2C%20wide%20stereo%2C%20Spatial%20Audio%20support%2C%20Dolby%20support%3C%2Fp%3E%0A%3Cp%3E%3Cstrong%3EIn%20the%20box%3A%3C%2Fstrong%3E%20MacBook%20Pro%2C%2067W%20power%20adapter%2C%20USB-C%20cable%3C%2Fp%3E%0A%3Cp%3E%3Cstrong%3EPrice%3A%3C%2Fstrong%3E%20From%20Dh5%2C499%3C%2Fp%3E%0A
Married Malala

Malala Yousafzai is enjoying married life, her father said.

The 24-year-old married Pakistan cricket executive Asser Malik last year in a small ceremony in the UK.

Ziauddin Yousafzai told The National his daughter was ‘very happy’ with her husband.

The burning issue

The internal combustion engine is facing a watershed moment – major manufacturer Volvo is to stop producing petroleum-powered vehicles by 2021 and countries in Europe, including the UK, have vowed to ban their sale before 2040. The National takes a look at the story of one of the most successful technologies of the last 100 years and how it has impacted life in the UAE. 

Read part four: an affection for classic cars lives on

Read part three: the age of the electric vehicle begins

Read part two: how climate change drove the race for an alternative 

COMPANY PROFILE

Name: Rain Management

Year started: 2017

Based: Bahrain

Employees: 100-120

Amount raised: $2.5m from BitMex Ventures and Blockwater. Another $6m raised from MEVP, Coinbase, Vision Ventures, CMT, Jimco and DIFC Fintech Fund

ESSENTIALS

The flights

Emirates flies direct from Dubai to Rio de Janeiro from Dh7,000 return including taxes. Avianca fliles from Rio to Cusco via Lima from $399 (Dhxx) return including taxes. 

The trip

From US$1,830 per deluxe cabin, twin share, for the one-night Spirit of the Water itinerary and US$4,630 per deluxe cabin for the Peruvian Highlands itinerary, inclusive of meals, and beverages. Surcharges apply for some excursions.

Gulf Under 19s final

Dubai College A 50-12 Dubai College B

On the menu

First course

▶ Emirati sea bass tartare Yuzu and labneh mayo, avocado, green herbs, fermented tomato water  

▶ The Tale of the Oyster Oyster tartare, Bahraini gum berry pickle

Second course

▶ Local mackerel Sourdough crouton, baharat oil, red radish, zaatar mayo

▶ One Flew Over the Cuckoo’s Nest Quail, smoked freekeh, cinnamon cocoa

Third course

▶ Bahraini bouillabaisse Venus clams, local prawns, fishfarm seabream, farro

▶ Lamb 2 ways Braised lamb, crispy lamb chop, bulgur, physalis

Dessert

▶ Lumi Black lemon ice cream, pistachio, pomegranate

▶ Black chocolate bar Dark chocolate, dates, caramel, camel milk ice cream
 

In%20the%20Land%20of%20Saints%20and%20Sinners
%3Cp%3E%3Cstrong%3EDirector%3A%20%3C%2Fstrong%3ERobert%20Lorenz%3C%2Fp%3E%0A%3Cp%3E%3Cstrong%3EStarring%3A%3C%2Fstrong%3E%20Liam%20Neeson%2C%20Kerry%20Condon%2C%20Jack%20Gleeson%2C%20Ciaran%20Hinds%3C%2Fp%3E%0A%3Cp%3E%3Cstrong%3ERating%3A%20%3C%2Fstrong%3E2%2F5%3C%2Fp%3E%0A
Three tips from La Perle's performers

1 The kind of water athletes drink is important. Gwilym Hooson, a 28-year-old British performer who is currently recovering from knee surgery, found that out when the company was still in Studio City, training for 12 hours a day. “The physio team was like: ‘Why is everyone getting cramps?’ And then they realised we had to add salt and sugar to the water,” he says.

2 A little chocolate is a good thing. “It’s emergency energy,” says Craig Paul Smith, La Perle’s head coach and former Cirque du Soleil performer, gesturing to an almost-empty open box of mini chocolate bars on his desk backstage.

3 Take chances, says Young, who has worked all over the world, including most recently at Dragone’s show in China. “Every time we go out of our comfort zone, we learn a lot about ourselves,” she says.

In-demand jobs and monthly salaries
  • Technology expert in robotics and automation: Dh20,000 to Dh40,000 
  • Energy engineer: Dh25,000 to Dh30,000 
  • Production engineer: Dh30,000 to Dh40,000 
  • Data-driven supply chain management professional: Dh30,000 to Dh50,000 
  • HR leader: Dh40,000 to Dh60,000 
  • Engineering leader: Dh30,000 to Dh55,000 
  • Project manager: Dh55,000 to Dh65,000 
  • Senior reservoir engineer: Dh40,000 to Dh55,000 
  • Senior drilling engineer: Dh38,000 to Dh46,000 
  • Senior process engineer: Dh28,000 to Dh38,000 
  • Senior maintenance engineer: Dh22,000 to Dh34,000 
  • Field engineer: Dh6,500 to Dh7,500
  • Field supervisor: Dh9,000 to Dh12,000
  • Field operator: Dh5,000 to Dh7,000
Living in...

This article is part of a guide on where to live in the UAE. Our reporters will profile some of the country’s most desirable districts, provide an estimate of rental prices and introduce you to some of the residents who call each area home.

Keep it fun and engaging

Stuart Ritchie, director of wealth advice at AES International, says children cannot learn something overnight, so it helps to have a fun routine that keeps them engaged and interested.

“I explain to my daughter that the money I draw from an ATM or the money on my bank card doesn’t just magically appear – it’s money I have earned from my job. I show her how this works by giving her little chores around the house so she can earn pocket money,” says Mr Ritchie.

His daughter is allowed to spend half of her pocket money, while the other half goes into a bank account. When this money hits a certain milestone, Mr Ritchie rewards his daughter with a small lump sum.

He also recommends books that teach the importance of money management for children, such as The Squirrel Manifesto by Ric Edelman and Jean Edelman.