Lecture 11 - Introduction To Computational Thinking and Problem Solving
Lecture 11 - Introduction To Computational Thinking and Problem Solving
List of Lists
[ [‘Atlanta’, [‘Boston’, 1110], [‘Chicago’, 718], [‘Los Angeles’, 2175], [‘New York’, 888],
[‘San Francisco’, 2473] ],
[‘Boston’, [‘Chicago’, 992], [‘Los Angeles’, 2991], [‘New York’, 215], [‘San Francisco’, 3106] ],
[‘Chicago’, [‘Los Angeles’, 2015], [‘New York’, 791], [‘San Francisco’, 2131] ],
[‘Los Angeles’, [‘New York’, 2790], [‘San Francisco’, 381] ],
[‘New York’, [‘San Francisco’, 2901] ] ]
Algorithm Description: The second major task in problem design is algorithm description. You
can choose either an existing algorithm or you may design a new algorithm for solving a problem.
For example, for the calendar problem, day of week algorithm already exists. For the travelling
salesman problem, many algorithms are available. Algorithms that work well in general, but are
not guaranteed to give the correct result for each specific problem are called heuristic algorithms.
11.5 Phase III : Program Implementation
The third phase in problem solving is program implementation. Once a problem is analyzed, the
data is represented and a suitable algorithm is identified, the next task is to implement the
algorithm. Choose a programming language and transform the algorithm into source code. This is
the task that is done by a developer or a programmer.
11.6 Phase IV: Program Testing
Once a program is developed, there may be errors. Programming errors are pervasive, persistent
and inevitable. Therefore, the program that is developed should be tested to ensure that it is free
from errors or program bugs. The process of testing a program or software is called as software
testing. Software testing is an essential part of software development. The program can be tested
with sample data sets.
11.7 Computational Thinking
Computational thinking is the thought process involved in formulating a problem and expressing
its solutions in such a way that a computer can effectively carry out. Computational thinking has
four elements.
• Decomposition: Breaking down data, processes, or problems into smaller, manageable
parts
• Pattern Recognition: Observing patterns, trends, and regularities in data
• Abstraction: Identifying the general principles that generate these patterns
• Algorithm Design: Developing the step by step instructions for solving this and similar
problems.
11.8 Creative Problem Solving
Creative problem solving is – looking at the same thing as everyone else and thinking something
different. The creative person uses information to form new ideas. The real key to creative problem
solving is what you do with the knowledge. Creative problem solving requires an attitude that
allows you to search for new ideas and use your knowledge and experience. Change perspective
and use knowledge to make the ordinary extraordinary and the usual commonplace. Creative
problem solving may face barriers like,
Time
Why change?
Usually don’t need to be creative
Habit
Routine
Haven’t been taught to be creative
Mental blocks are reasons or attitudes why we don’t think something different.
Mental blocks
1. The _______ answer.
2. That’s not _________.
3. __________ the rules.
4. Be ______________.
5. ________ is frivolous.
6. That’s not my _____.
7. ________ ambiguity.
8. Don’t be _________.
9. __________is wrong.
10. I’m not __________.
Mental Block 1
1. The right answer.
Mental Block 2
1. The right answer
2. That’s not logical
Mental Block 3
1. The right answer.
2. That’s not logical
3. Follow the rules
Why rules should be challenged?
1. We make rules based on reasons that make a lot of sense.
2. We follow these rules.
3. Time passes and things change.
4. The original reasons for the generation of these rules may no longer exist, but because the
rules are still in place, we continue to follow them.
Mental Block 4
1. The right answer.
2. That’s not logical.
3. Follow the rules
4. Be practical
Mental Block 5
1. The right answer
2. That’s not logical.
3. Follow the rules
4. Be practical
5. Play is frivolous.
Mental Block 6
6. That’s not my area
Mental Block 7
6. That’s not my area.
7. Avoid ambiguity
Mental Block 8
6. That’s not my area.
7. Avoid ambiguity
8. Don’t be foolish
Mental Block 9
6. That’s not my area.
7. Avoid ambiguity
8. Don’t be foolish
9. To err is wrong.
Mental Block 10
6. That’s not my area
7. Avoid ambiguity
8. Don’t be foolish
9. To err is wrong
10. I’m not creative
11.9 Creative Problem Solving Process
Step 1: State what appears to be a problem.
The real problem may not surface until facts have been gathered and analyzed. Therefore, start
with what you assume to be the problem that can later be confirmed or corrected.
Step 2: Gather facts, feelings and opinions.
Step 3: Restate the problem
Step 4: Identify alternative solutions.
Step 5: Evaluate alternatives
Step 6: Implement the decision
Step 7: Evaluate the results
1. Brainstorming:
The process of generating creative ideas and solutions through intensive and freewheeling
group discussion. Brainstorming is a technique to generate a large number of ideas in a short period
of time.
Brainstorming Guidelines
Find out ways to motivate the members who participate in brainstorming. Clarify the
understanding. Once all the ideas have been generated, review the ideas that have been offered.
Combine items that are similar and eliminate duplicates.
2. Multivoting
Multivoting is a way to vote to select the most important or popular items (alternatives)
from a list. It is used to help a group of people to make a decision with which they are comfortable.
Example
Hints
Draw over clusters of similar thoughts that are associated with the main focus point.
Have fun using a different color highlighter with each cluster of words.
How do the variety of ideas relate to one another?
Do you notice any common causes of the problem? What are the most important
causes?
You are now ready to brainstorm solutions!
11.8 Activities
1. Write an algorithm to find the area of a circle.
2. Write an algorithm to find the greatest number among three numbers
3. Write an algorithm to find the factorial of a number.
4. Represent the following data in suitable formats
a. Seasons of a year
b. Colors of a rainbow
c. A unit matrix
d. Details of a book
5. Identify the modules in Library Management System
6. Group your class students based on some similarity
7. Identify the rules to join B.Tech. course in Karunya University.
8. What is the four-digit number in which the first digit is one-third the second, the third is
the sum of the first and second, and the last is three times the second?
9. The following verse spells out a word, letter by letter. "My first" refers to the word's first
letter, and so on. What's the word that this verse describes?