Every topic starts at New. Sign in and your practice counts.
Logical thinking refers to analyzing a particular situation or problem using reason and accordingly reaching up to one or more decisions that are sensible. The situation analysis requires gathering of relevant facts and then deciding the best way based on the reasons.
For example, you enter your home and see water on the floor. What do you think has happened?
To solve such problems, you need reasoning skills that are based on evidence and facts.
Example:
Fact: Islamabad is a city
Fact: Cities have a mayor (or some equivalent)
Inferred: Islamabad has a mayor (or some equivalent)
One of the fundamental parts of computational thinking is to think logically. The computers use logic in their computation but it does not mean that they think logically. The computers themselves can't perform logical thinking unless they are programmed to do so. By developing the ability to align problem-solving with technology and focusing on the process as well as the solution
This figure is being prepared.
Algorithmic thinking is about problem-solving. Computers do nothing by magic, algorithmic thinking is a way of getting to a solution. It is a process that involves identifying the steps needed and then implementing those steps in a logical and efficient manner. It is a way of thinking that involves breaking down complex problems into smaller, manageable parts and then solving those parts one at a time.
Example: Find the largest of three unequal numbers.
Let's first draw IPO chart of the problem.
| Input | Process | Output |
|---|---|---|
| Three numbers | Find largest among the three numbers | Display largest number |
Now we write algorithm of the process part of IPO.
Step 1: Let three number be and
Step 2: Check if A is the largest?
Step 2. 1: Check if and then is the largest.
Step 3: If is largest then Stop the process, otherwise proceed to next step.
Step 4: Check if B is largest?
Step 4. 1: Check if and then B is the largest.
Step 5: If is largest then Stop the process, otherwise proceed to next step.
Step 6: C is largest.