Showing posts with label Computers. Show all posts
Showing posts with label Computers. Show all posts

Monday, July 15, 2019

Algorithm: Origins of Artificial Intelligence in Islamic Golden Age

When Gmail completes your sentences or Netflix offers you recommendations for movies to watch, do you wonder where it all came from? Do you know how airplanes fly or autonomous vehicles drive on auto-pilot? What algorithms are used to make it happen? Who made these possible? Where did the word "algorithm" come from? Have you heard of Mohammad ibn Musa al-Khwarizmi?

Al-Khwarizmi:

The word algorithm comes from Muhammad al-Khwarizmi, the name of a Muslim mathematician and scientist who developed the concept of algorithms. He was appointed the head of the House of Wisdom (Darul Hikma) in Baghdad in 820 AD. He is also credited with the invention of Algebra (hisab al-jabr). Darul Hikma, also known as the Grand Library of Baghdad, was a major public academy and intellectual center in Baghdad during the Abbasid rule.


The House of Wisdom was founded by Caliph Haroon al-Rashid in the late 8th century that later turned into a public academy during the reign of Al-Ma'moon. It was destroyed by the Mongols in the Siege of Baghdad in 1258, leaving very little archaeological evidence.

AI Algorithms:

An algorithm is a step-by-step procedure developed for accomplishing specific tasks. In artificial intelligence (AI), algorithms help  accomplish tasks that used to require human judgment —such as flying airplanes, driving vehicles, composing emails and making recommendations for books and movies. High-powered computers help execute these algorithms at high speeds.

Social media platforms like Facebook and Google have long used AI algorithms relying on user profile data to help advertisers target potential customers.  Now, under tremendous pressure from governments and civil society, the companies operating social media platforms are attempting to use AI algorithms for censoring hate speech.

Such algorithms are designed to be self-learning. They are trained by feeding lots data and examples selected by humans to help their ability to make judgements. Success rate of these algorithms improves with more data over time.


Artificial Intelligence Applications

Muslim Contributions to Math and Science:

A recent Twitter poll by Texas-based American journalist Wes Trueblood III asked the question: “Should schools in America be forced to teach Arabic numerals as a part of their curriculum?” He was shocked to see that 90% of respondents said "No".  It was obvious that they did not know the fact that Arabic numerals are already taught in American schools because all mathematics today is based on Arabic numerals. And without mathematics, there can be no STEM (Science, Technology, Engineering and Mathematics).

Most people today are unaware of how much the Islamic civilization has contributed to mathematics, science and technology.  Dick Teresi, author of 'Lost Discoveries', says it is partly attributable to the reluctance of the western scientists to acknowledge the work of Muslim scientists. The claim of Muslims as being mere "conduits" of knowledge has been rejected by Dick Teresi. Says Teresi, "Clearly, the Arabs served as a conduit, but the math laid on the doorstep of Renaissance Europe cannot be attributed solely to ancient Greece. It incorporates the accomplishments of Sumer, Babylonia, Egypt, India, China and the far reaches of the Medieval Islamic world.

Teresi describes the work done by Copernicus. Nasir al-Din al-Tusi, a Persian Muslim astronomer and mathematician, developed at least one of Copernicus's theorems, now called The Tusi Couple, three hundred years before Copernicus. Copernicus used the theorem without offering any proof or giving credit to al-Tusi. This was pointed out by Kepler, who looked at Copernicus's work before he developed his own elliptical orbits idea.

A second theorem found in Copernican system, called Urdi lemma, was developed by another Muslim scientist Mu'ayyad al-Din al-Urdi, in 1250. Again, Copernicus neither offered proof nor gave credit to al-Urdi. Columbia University's George Saliba believes Copernicus didn't credit him because Muslims were not popular in 16th century Europe, not unlike the situation today.

Tipler completely ignores the great contribution of another giant of science from the Islamic world, Ibn Haitham (Alhazen), who developed the "Scientific Method". Alhazen is also considered the father of modern optics. The ancient Greeks thought our eyes emitted rays, like a laser, which enabled us to see. The first person to explain that light enters the eye, rather than leaving it, was Ibn al-Haitham. He invented the first pin-hole camera after noticing the way light came through a hole in window shutters. The smaller the hole, the better the picture, he worked out, and set up the first Camera Obscura (from the Arab word qamara for a dark or private room). He is also credited with being the first man to shift physics from a philosophical activity to an experimental one.

The fountain pen was invented for the Sultan of Egypt in 953 after he demanded a pen which would not stain his hands or clothes. It held ink in a reservoir and, as with modern pens, fed ink to the nib by a combination of gravity and capillary action.

The algebra as we know today came from the Muslim world. Al Khwarizmi wrote the first book on algebra. The term "algebra" was first used by him. Al Khwarizmi was born about 790 in Baghdad, Iraq, and died about 850.

The word for "Algebra" comes from the Arabic word for "al-jabr" which means "restoration of balance" in both sides of an equation. Algebra was based on previous work from Greeks, Alexandrians in Egypt, and Hindus who had preserved the work from ancient Egyptians and Babylonians.

In the ninth century, al-Khwarizmi wrote one of the first Arabic algebras with both proofs and examples. Because of his work, he is called "the Father of Algebra." Al-Khwarizmi was a Persian born in the eighth century. He converted (changed) Babylonian and Hindu numerals into a workable system that almost anyone could use. He gave the name to his math as "al-jabr" which we know as "algebra".

A Latin translation of al-Khwarizmi's book on algebra appeared in Europe in the 12th century. In the early 13th century the new algebra appeared in the writings of the famous Italian mathematician, Leonardo Fibonacci. So, algebra was brought into Europe from ancient Babylon, Egypt and India by the Arabs and then into Italy.

In his 1864 book "The History of the Intellectual Development of Europe", English-born American scientist J.W. Draper wrote that “I have to deplore the systematic manner in which the literature of Europe has contrived to put out of sight our scientific obligations to the Mohammedans. Surely they can not be much longer hidden. Injustice founded on religious rancor and national conceit cannot be perpetuated forever".

University of Al Quaraouiyine:

University of Al Quaraouiyine (also spelled al karaouine) was founded by Fatima Al Fihri in 859 CE in Fez, Morocco. It is believed to be the world's oldest continuously operating university.

Al-Fihri, born in Kairouan (Qayrawan) in what is now Tunisia, was a well-educated daughter of a wealthy merchant. Her family migrated to Fez where she started the world's oldest continuously operating university named after her place of birth.

The University started as a madrassa affiliated with a mosque. It had the basic infrastructure and systems associated with modern universities. It had a formal curriculum, administered examinations and awarded degrees. It became part of the foundation of the glory days of the Islamic Civilization.

The University currently has staff and faculty of over 1000 and it has over 8000 students enrolled. The list of its most distinguished alumni includes Ibn Khaldun, widely regarded as the forerunner of the modern disciplines of historiography, sociology, economics, and demography. Other notable alumni are Jewish philosopher Maimonides,  Muslim philosopher Ibn Rushd (Averroes) and Muslim geographer Mohammad Al-Idrisi.

The world's second oldest continuously operating university is Al Azhar in Cairo, Egypt established in 970 CE.

Universities in Europe:

University of Bologna, the oldest university in Europe, was established in 1088 CE, more than two centuries after  University of Al Quaraouiyine was founded by Fatima Al-Fihri in Fez, Morocco.

Then came Oxford University in 1096, Salamanca University in 1134, Paris University in 1160 and Cambridge University in 1209.

Brigham Young University (BYU) history professor Glenn Cooper has traced the concept of receiving a degree to Islam and is associated with completing a set curriculum. The ceremonial cap and gown used in graduation ceremonies is also a legacy of Islamic tradition.

Rise and Fall of Islamic Civilization:

Where did star names like Ain ( عين),  Betelgeuse (إبط الجوزاء ) and Cursa ( الكرسي) come from? Who named Californium and Berkelium elements of the periodic table?  Famous American scientist Dr.Neil deGrasse Tyson answered these and other questions in some recent video presentations.

Neil deGrasse Tyson is an American astrophysicist, cosmologist, author, and science communicator, according to Wikipedia. Since 1996, he has been the Frederick P. Rose Director of the Hayden Planetarium at the Rose Center for Earth and Space in New York City.

What Dr. Tyson describes as "naming rights" simply means that those who discover new things get to name them. Californians got the naming rights to some of the elements of the periodic table  while the Arabs got to name vast majority of the stars in the Cosmos. In modern western astronomy, most of the accepted star names are Arabic, a few are Greek and some are of unknown origin.

Continuing on the naming rights theme, Dr. Tyson also describes the Islamic origins of Arabic numerals, Algebra, Algorithm, Alchemy and Alcohol as products of the Islamic Golden Age of Science in 800 to 1100 AD.

The lesson Dr. Tyson draws from the rise and fall of Muslims is as follows: Islamic civilization remained dominant in sciences and mathematics as long as Muslims practiced Ijtihad to ask questions and find answers to questions. What led to their decline was Taqlid, the unquestioning faith in Revelation.

Dr. Tyson credits the great Muslim philosopher Alhazen (Abū ʿAlī al-Ḥasan ibn al-Ḥasan ibn al-Haytham 965-1040 AD) with inventing the modern scientific method. Alhazen questioned everything, especially the things everyone took for granted, says Dr. Tyson. Alhazen's work was lavishly funded by the Muslim Caliphs. All of it changed when Imam Al Ghazali, or Algazel, a highly influential Islamic scholar of his time, succeeded in persuading Muslims to accept Taqlid that triggered rapid decline of the Islamic world.

Dr. Tyson has used the example of the great Islamic Civilization's decline to warn Americans against repeating it. He has particularly targeted those in America who denounce Darwin's theory of evolution or reject the validity of climate science.

World Changing Inventions/Discoveries:

While the concept of universities has had the biggest impact on the world, there are several other innovations and-or discoveries by Muslims that have changed the world. A short list includes coffee, Algebra, marching band and camera. Here is a video about the top 5 Muslim inventions that changed the world:

https://youtu.be/CC6CkdsuN-k




Related Links:

Haq's Musings

South Asia Investor Review

Rise and Fall of the Islamic Civilization

Artificial Intelligence in Pakistan

Pakistani Woman Leads Global Gender Parity Campaign

Muslims Have Few Nobel Prizes

Ibn Khaldun: The Father of Modern Social Sciences

Obama Speaks to the Muslim World

Lost Discoveries by Dick Teresi

Physics of Christianity by Frank Tipler

What is Not Taught in School

How Islamic Inventors Changed the World

Jinnah's Pakistan Booms Amidst Doom and Gloom

Thursday, February 9, 2012

Pakistan Starts Tablet PC & Notebook Production

Military-run Pakistan Aeronautical Complex (PAC) at Kamra has launched manufacturing of Android tablets, Android eBook readers and Windows/Linux notebook computers.



All three products are being offered by Commercial Products Manufacturing Cell (CPMC), a join venture of Pakistan Aeronautical Complex Kamra (PAC) and Hong Kong-based INNAVTEK. Initial prices range from Rs. 8,000 for PAC eBook reader tablet, to Rs. 15,000 for PAC PAD 1 tablet computer and Rs. 23,500 for PAC nBook notebook.

PAC PAD is the first to be manufactured in Pakistan, but not the first tablet offered for sale in Pakistan. Last year, PTCL also launched an Android based thin 7 inch tablet computer with EVO 3G and WiFi connectivity built-in. 3G EVO Tab is a 7 inch touch screen tablet with built-in EVO service to offer wireless broadband internet on the go in more than 100 cities and towns across Pakistan. Powered by Google Android Froyo 2.2 Operating system, 3G EVO Tab offers support for both 3G and Wi-Fi for an un-interrupted on-the-go connectivity. With a 5 MegaPixel Camera, a variety of built-in applications, 3G EVO Tab lets users browse, snap, share, communicate, navigate, play games and do a lot more on-the go, thereby making it an ideal connectivity solution for users looking for high speed on-the-go 3G connectivity on an Android platform. PTCL 3G EVO Tab offers convenience and speed with three diverse economy packages to suit individual needs and pockets. Its 12-month bundle offer has been very successful with majority sales in this bracket.Customers can get EVO Tab for as low as Rs 7,999 plus 12-month unlimited EVO service, all at Rs 31,999. In addition to the 12-month contract, EVO Tab offers bundled packages based on 3 and 6 month contracts at Rs 27,999 and Rs 29,999, respectively with 3 and 6 month of unlimited EVO service.



PAC's PAD is being built at Kamra complex that has set up advanced electronics manufacturing facilities used for building avionics for Pakistan's JF-17 fighter. A PAC press release issued at the launch of the project said that “for the joint production of JF-17, PAF [Pakistan Air Force] had established sufficient facilities which are appropriate for the production of both defence and commercial products.” CPMC website explains that “Innavtek jointly developed two products with (PAC's) Avionics Production Factory which are successfully flying on fleet of our JF-17 aircraft and three more products are under co development phase.”



History tells us that the Chinese People's Liberation Army (PLA) has played a huge role in China's phenomenal industrial progress and its emergence as the factory of the world in the last few decades. Even in the free-market capitalist system of the United States, great inventions like semiconductor chips, computers the Internet have their origins in the defense establishment. The US military has played a key role in funding research, development and manufacturing industries to support America's military-industrial complex and its space program. In spite of some of the well-deserved criticisms of the the world's biggest military-industrial and space complex in America, no one can deny that a lot of innovation, jobs growth and economic expansion has flowed from it to benefit the American society at large.

The latest PAC-Kamra venture is a good example of how military projects can help spawn commercial industries in Pakistan, essentially replicating the American and the Chinese industrial experience.

With experience and economies of scale, PAC computer products are likely to follow the traditional cost curve of electronics products and become more powerful and affordable for larger numbers of Pakistani customers. Growing domestic market for computers should also attract private investment in the sector and stimulate the national economy by creating more skilled jobs, and help boost human development and productivity.

PAC computer products have the potential to enable huge opportunities for education, communication, business and entertainment. Take distance learning as an example. The quickest and the most cost-effective way to broaden access to education at all levels is through online schools, colleges and universities. Sitting at home in Pakistan, self-motivated learners can watch classroom lectures at world's top universities including UC Berkeley, MIT and Stanford. More Pakistanis can pursue advanced degrees by enrolling and attending the country's Virtual University that offers instructions to thousands of enrolled students via its website, video streaming and Youtube and television channels.

PAC products can be expected to contribute to the ongoing information revolution in Pakistan by making information and education more accessible to a larger cross-section of Pakistani society. Such a revolution is essential for Pakistan to rapidly move into the 21st century, and reap full demographic dividend of its youthful population which is naturally attracted to modern gadgetry of computing and communications.

I applaud Pakistan's military for taking a page from the Chinese PLA playbook. As the only robust and well-functioning institution of Pakistani state, the military should do whatever is necessary to strengthen the nation's industry, economy, human capital and national security, regardless of any critics, including Ayesha Siddiqa Agha and her myriad fans. This is the best way forward to a well-educated, industrialized, prosperous and democratic Pakistan in the future.

Related Links:

Haq's Musings

Military's Role in Pakistan's Industrialization

Pakistan's Demographic Dividend

Pakistan's Defense Industry Goes High-Tech

Pakistan Launches UAV Production Line at Kamra

Pakistan Going Mainstream in IT Products

Pakistan Launches 100 Mbps FTTH Access

Pakistan's $2.8 Billion IT Industry

Pakistan's Software Prodigy

Tuesday, January 17, 2012

Pak Software Prodigy's Inspirational Legacy

Arfa Karim Randhawa passed away at the tender age of just 16. Inna Lillah Wa Inna Elaih Rajeon!

Born in 1995, she achieved celebrity status after becoming the world's youngest computer expert at the age of 9, passing a tough series of Microsoft tests designed for software professionals. Her success brought her an invitation to Microsoft headquarters in Seattle, where she met its chairman, Bill Gates, and discussed her idea for a self-navigating car in 2005.



She spent the last month of her short life in a Lahore hospital after reportedly suffering an epileptic seizure and cardiac arrest. Two weeks ago her prognosis appeared to improve. In recent weeks, Microsoft stepped in to help provide expert medical care.

Todd Bishop, a Seattle-based newspaper reporter covering her Redmond visit, wrote about her as follows: "She made an impression through a combination of charm, flattery and boldness uncommon for someone her age. For example, during Arfa’s meeting with Gates, she presented him with a poem she wrote that celebrated his life story. But she also questioned him about what she perceived to be the relatively small proportion of women on the campus."

When a younger 9-year-old Indian girl M. Lavinashree broke her record a few years ago by becoming the youngest Microsoft Software professional, Bishop told Arfa about it and got the following response from her:

“This is the first time I’ve seen this story. But I must say that I’m really happy to have read it. This is exactly what I had been wishing for ever since I got to bring laurels for my country. I am very glad to see that people are following what I did and have succeeded in beating me. I don’t know whether you’ve heard or not but a boy, named Bilal, from Gujranwala in Pakistan also became a Microsoft Certified Professional at the age of nine. I would say that the other youngsters should follow suit, thereby convincing the people to take us kids seriously. Our generation is very talented and so should be promoted.”

Arfa's untimely death at such a young age is a tragic loss for her family and for Pakistan. Her legacy, however, will live on. I hope and expect that many more Lavinashrees and Bilals will be inspired by her memory to accomplish whatever they set their mind to, including but not limited to achieving celebrity as Microsoft professionals.

Here's a video clip of Arfa Karim's Interview:



Related Links:

Haq's Musings

Pakistan's Demographic Dividend

Pakistani Software Expert Helps Fight Terror

Pakistan IT Industry

Pakistan Leads Asia in Biometric IT Services

Pakistanis Studying Abroad

Pakistan Working Women

Quality of Higher Education in India and Pakistan

Developing Pakistan's Intellectual Capital

Intellectual Wealth of Nations