- Arduino for Kids
- Priya Kuber Rishi Gaurav Bhatnagar Vijay Varada
- 256字
- 2021-07-09 19:02:52
What is an algorithm?
A logical set by step process, guided by the boundaries (or constraints) defined by a problem, followed to find a solution is called an algorithm. In a better and more pictorial form, it can be represented as follows:

What does that even mean? Look at the following example to understand the process.
Let's understand what an algorithm means with the help of an example.
It's your friend's birthday and you have been invited for the party (Isn't this exciting already?). You decide to gift her something. Since it's a gift, let's wrap it. What would you do to wrap the gift? How would you do it?
- Look at the size of the gift
- Fetch the gift wrapping paper
- Fetch the scissors
- Fetch the tape
- Then you would proceed to place the gift inside the wrapping paper.
- You will start start folding the corners in a way that it efficiently covers the Gift.
- In the meanwhile, to make sure that your wrapping is tight, you would use a scotch tape.
- You keep working on the wrapper till the whole gift is covered (and mind you, neatly! you don't want mommy scolding you, right?).
What did you just do? You used a logical step by step process to solve a simple task given to you.
Again coming back to the sentence: Logic + Control = Algorithm
Logic here, is the set of instructions given to a computer to solve the problem. 'Control' are the words making sure that the computer understands all your boundaries.
- 集成架構(gòu)中型系統(tǒng)
- ArchiCAD 19:The Definitive Guide
- Google Cloud Platform Cookbook
- 輕松學Java Web開發(fā)
- 基于LabWindows/CVI的虛擬儀器設計與應用
- ETL with Azure Cookbook
- 機器人智能運動規(guī)劃技術(shù)
- AutoCAD 2012中文版繪圖設計高手速成
- Apache Superset Quick Start Guide
- 大數(shù)據(jù)驅(qū)動的機械裝備智能運維理論及應用
- 網(wǎng)中之我:何明升網(wǎng)絡社會論稿
- 實用網(wǎng)絡流量分析技術(shù)
- 格蠹匯編
- Windows安全指南
- 筆記本電腦電路分析與故障診斷