What is an algorithm? How computers know what to do with data – The Conversation US
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.
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.
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.
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.
Sometimes its 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 Conversations 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.
Read more here:
What is an algorithm? How computers know what to do with data - The Conversation US
- D-Wave and Rigetti: Cantor Chooses the Best Quantum Computing Stocks to Buy - Yahoo Finance - July 6th, 2025 [July 6th, 2025]
- Quantum Computing's Surge: Navigating Tariffs and Tech Tailwinds for Profitable Growth - AInvest - July 6th, 2025 [July 6th, 2025]
- 2 Top Quantum Computing Stocks to Buy in July - The Motley Fool - July 6th, 2025 [July 6th, 2025]
- D-Wave and Rigetti: Cantor Chooses the Best Quantum Computing Stocks to Buy - TipRanks - July 4th, 2025 [July 4th, 2025]
- QEDMA Raises $26 Million With Participation From IBM to Tackle Quantum Computing Errors - The Quantum Insider - July 4th, 2025 [July 4th, 2025]
- Quantum Computing Stocks QBTS and IONQ Rally as Cantor Assigns Buy Rating - TipRanks - July 4th, 2025 [July 4th, 2025]
- Meet the Monster Quantum Computing Stock That Continues to Crush IonQ, Rigetti Computing, and Nvidia - The Motley Fool - July 4th, 2025 [July 4th, 2025]
- Meet the Monster Quantum Computing Stock That Continues to Crush IonQ, Rigetti Computing, and Nvidia - Nasdaq - July 4th, 2025 [July 4th, 2025]
- Rigetti Computing Is Skyrocketing Today -- Is the Quantum Computing Stock a Buy? - Yahoo Finance - July 4th, 2025 [July 4th, 2025]
- Why Quantum Computing Stock Skyrocketed Today - The Motley Fool - July 4th, 2025 [July 4th, 2025]
- The European Commission wants Europe to become the world leader in quantum computing within the next five years - PC Gamer - July 4th, 2025 [July 4th, 2025]
- Cracking the quantum code: light and glass are set to transform computing - research-and-innovation.ec.europa.eu - July 4th, 2025 [July 4th, 2025]
- Rigetti Computing Is Skyrocketing Today -- Is the Quantum Computing Stock a Buy? - The Motley Fool - July 4th, 2025 [July 4th, 2025]
- Quantum Computing Investments: A Once-in-a-Lifetime Opportunity? - Yahoo - July 4th, 2025 [July 4th, 2025]
- BlackRock Warns Quantum Computing Threatens Bitcoin Security - IoT World Today - July 4th, 2025 [July 4th, 2025]
- Rigetti Computing Is Skyrocketing Today -- Is the Quantum Computing Stock a Buy? - Nasdaq - July 4th, 2025 [July 4th, 2025]
- MegazoneCloud & Classiq Boost Quantum Computing In Korea - Quantum Zeitgeist - July 4th, 2025 [July 4th, 2025]
- Rigetti vs. D-Wave: Which Quantum Computing Stock Has Better Prospects? - Zacks Investment Research - July 2nd, 2025 [July 2nd, 2025]
- IonQ: The Next Disruptive Opportunity In Quantum Computing (NYSE:IONQ) - Seeking Alpha - July 2nd, 2025 [July 2nd, 2025]
- Rigetti vs. D-Wave: Which Quantum Computing Stock Has Better Prospects? - Yahoo Finance - July 2nd, 2025 [July 2nd, 2025]
- Terror-Linked Qataris Could Gain Quantum Computing Technology via Billion-Dollar Deal - Middle East Forum - July 2nd, 2025 [July 2nd, 2025]
- Quantum Computing Progress: Scaling Fidelity And Algorithms For Practical Advantage - Quantum Zeitgeist - July 2nd, 2025 [July 2nd, 2025]
- The Best Quantum Computing Stocks to Buy Right Now - The Motley Fool - July 2nd, 2025 [July 2nd, 2025]
- Quantum Computing Threat Drives New Encryption Standards and Mathematical Challenges. - Quantum Zeitgeist - July 2nd, 2025 [July 2nd, 2025]
- IBM's Quantum Leap: Can AI and Quantum Computing Drive a New Era of Growth? - AInvest - July 2nd, 2025 [July 2nd, 2025]
- Why IonQ Could Be the Quantum Computing Leader to Multiply Your Investment by 2035 - AInvest - July 2nd, 2025 [July 2nd, 2025]
- European Investment Fund Invests 30M ($35.1M USD) in Quantonation II for Quantum Technologies and Deep Physics - Quantum Computing Report - July 2nd, 2025 [July 2nd, 2025]
- 3 Quantum Computing Stocks That Could Deliver Decades of Explosive Growth - The Motley Fool - June 29th, 2025 [June 29th, 2025]
- QUANTUM COMPUTING INVESTIGATION INITIATED by Former Louisiana Attorney General: Kahn Swick & Foti, LLC Investigates the Officers and Directors of... - June 29th, 2025 [June 29th, 2025]
- KT and HEQA Security Partner to Deploy Quantum Key Distribution for Telecom Infrastructure - Quantum Computing Report - June 29th, 2025 [June 29th, 2025]
- Quantum computing on the horizon: What leaders need to know. - McKinsey & Company - June 28th, 2025 [June 28th, 2025]
- 1 Quantum Computing Stock That Is a Glaring Buy, According to Wall Street - Yahoo Finance - June 28th, 2025 [June 28th, 2025]
- 3 Quantum Computing Stocks on Verge of a Breakout: QBTS, IONQ, QUBT - Yahoo Finance - June 28th, 2025 [June 28th, 2025]
- Quantum Computing Achieves First Real-World Milestone in Image Recognition - ScienceBlog.com - June 28th, 2025 [June 28th, 2025]
- IonQ vs IBM: Which Quantum Computing Stock Is the Better Buy Today? - Yahoo Finance - June 28th, 2025 [June 28th, 2025]
- Want to Invest in Quantum Computing? 2 Stocks That Are Great Buys Right Now. - MSN - June 28th, 2025 [June 28th, 2025]
- 1 Quantum Computing Stock That Is a Glaring Buy, According to Wall Street - MSN - June 28th, 2025 [June 28th, 2025]
- 1 Quantum Computing Stock That Is a Glaring Buy, According to Wall Street - The Motley Fool - June 28th, 2025 [June 28th, 2025]
- Are Quantum Computing Stocks Becoming the Next AI? - The Motley Fool - June 28th, 2025 [June 28th, 2025]
- F.D. Flam: Quantum computing could be the future of drug development - Pioneer Press - June 28th, 2025 [June 28th, 2025]
- Quantum Computing Completes $200 Million Private Placement. Why the Stock Is Falling. - Barron's - June 28th, 2025 [June 28th, 2025]
- Want to Invest in Quantum Computing? 2 Stocks That Are Great Buys Right Now. - Yahoo Finance - June 28th, 2025 [June 28th, 2025]
- The Smartest Way to Play Quantum Computing May Already Be in Your Portfolio - The Motley Fool - June 24th, 2025 [June 24th, 2025]
- Quantum Computing News: New Roadmaps, Real Timelines, and Rising Stocks - TipRanks - June 24th, 2025 [June 24th, 2025]
- Will Quantum Computing Stocks Soar in the Second Half? - The Motley Fool - June 24th, 2025 [June 24th, 2025]
- 2 Quantum Computing Stocks That Could Become Monsters - The Motley Fool - June 24th, 2025 [June 24th, 2025]
- UK Government Commits 670 Million ($908.6 Million USD) Over 10 Years to Advance Quantum Computing Capabilities - Quantum Computing Report - June 24th, 2025 [June 24th, 2025]
- Is Quantum Computing (QUBT) Stock a Buy on This Bold Technological Breakthrough? - Yahoo Finance - June 24th, 2025 [June 24th, 2025]
- 2 Top Quantum Computing Stocks to Buy in 2025 - Yahoo Finance - June 24th, 2025 [June 24th, 2025]
- UK Commits 500 Million to Quantum Computing Amid Sovereignty And Security Concerns - The Quantum Insider - June 24th, 2025 [June 24th, 2025]
- Can Investing $10,000 in Quantum Computing (QUBT) Stock Turn Into $1 Million by 2035? - The Motley Fool - June 24th, 2025 [June 24th, 2025]
- SEALSQ, ColibriTD, and Xdigit Announce Plan to Develop a Breakthrough Quantum Computing Based Solution Set to Revolutionize Semiconductor Wafer Yields... - June 24th, 2025 [June 24th, 2025]
- Why Quantum Computing Stock Is Plummeting Today - The Globe and Mail - June 24th, 2025 [June 24th, 2025]
- AdvanThink and Quandela Partner to Explore Quantum AI for Payment Fraud Detection - Quantum Computing Report - June 22nd, 2025 [June 22nd, 2025]
- Fleet Space Advances Quantum-Enhanced Mineral Exploration with New Partnerships - Quantum Computing Report - June 22nd, 2025 [June 22nd, 2025]
- How Will Bitcoin Defend Against Quantum Computing? This Project Just Raised $6M - Decrypt - June 20th, 2025 [June 20th, 2025]
- Why IBM Is the Best Quantum Computing Stock to Buy Right Now - Yahoo Finance - June 20th, 2025 [June 20th, 2025]
- QUBT Stock Is Up 80% In A Month. Whats Happening With Quantum Computing? - Forbes - June 20th, 2025 [June 20th, 2025]
- Microsofts 4D Quantum Codes Promise Reduction in Error Rates, Boost in Prospects of Fault-Tolerant Computing - The Quantum Insider - June 20th, 2025 [June 20th, 2025]
- Escaping dead zones in the "barren plateau" of quantum computing - Earth.com - June 20th, 2025 [June 20th, 2025]
- Quantum Computing (NASDAQ:QUBT) Trading Down 3.5% - Here's What Happened - MarketBeat - June 20th, 2025 [June 20th, 2025]
- Tracking IBM Progress in Quantum Computing and Error Correction - oodaloop.com - June 20th, 2025 [June 20th, 2025]
- Quantum Computing Looks Overvalued And Needs To Deliver Before I Rate It A Buy (QUBT) - Seeking Alpha - June 20th, 2025 [June 20th, 2025]
- Buy the Dip on This Quantum Computing Stock - Schaeffer's Investment Research - June 20th, 2025 [June 20th, 2025]
- Want Exposure to AI, Quantum Computing, and Robotics? This Vanguard ETF Has It All. - The Motley Fool - June 18th, 2025 [June 18th, 2025]
- Want to Invest in Quantum Computing? 3 Stocks That Are Great Buys Right Now - Yahoo Finance - June 18th, 2025 [June 18th, 2025]
- D-Wave Puts Down Roots in South Korea in Push for Global Adoption of Quantum Computing - Barron's - June 18th, 2025 [June 18th, 2025]
- Useful quantum computing is already here - The Times - June 18th, 2025 [June 18th, 2025]
- D-Wave, Yonsei University, and Incheon City join forces to expand quantum computing in South Korea - EdTech Innovation Hub - June 18th, 2025 [June 18th, 2025]
- Quantum Computing: All The Right Moves For Takeoff - Seeking Alpha - June 18th, 2025 [June 18th, 2025]
- 3 Top Quantum Computing Stocks to Buy in 2025 - The Motley Fool - June 18th, 2025 [June 18th, 2025]
- D-Wave Signs MOU with Yonsei University and Incheon for Onsite Advantage2 System and Quantum Collaboration - Quantum Computing Report - June 18th, 2025 [June 18th, 2025]
- Best Quantum Computing Stocks To Add to Your Watchlist - June 17th - MarketBeat - June 18th, 2025 [June 18th, 2025]
- Infleqtion Ships Large Neutral Atom System with Up to 500 Qubits to the Institute for Molecular Science in Japan - Quantum Computing Report - June 18th, 2025 [June 18th, 2025]
- Prediction: This Quantum Computing Stock Will Surge in 2025 - Yahoo Finance - June 14th, 2025 [June 14th, 2025]
- How to capitalize on the red-hot quantum computing space, according to a veteran investor - CNBC - June 14th, 2025 [June 14th, 2025]
- Quantum Computing Stock Jumped 25% on WednesdayThese Are the Key Price Levels to Watch - Investopedia - June 14th, 2025 [June 14th, 2025]
- Prediction: This Quantum Computing Stock Will Surge in 2025 - The Motley Fool - June 14th, 2025 [June 14th, 2025]
- Why Quantum Computing Stock Is Skyrocketing This Week - The Motley Fool - June 14th, 2025 [June 14th, 2025]
- eleQtron and FMD Partner to Advance Scalable Quantum Chip Production in Europe - Quantum Computing Report - June 14th, 2025 [June 14th, 2025]