CSE 100 Lab Manual 1
CSE 100 Lab Manual 1
2. Computational Thinking:
Computational thinking is an approach to solving
problems using concepts and ideas from computer science,
and expressing solutions to those problems so that they
can be run on a computer. As computing becomes more
and more prevalent in all aspects of modern society -- not
just in software development and engineering, but in
business, the humanities, and even everyday life --
understanding how to use computational thinking to solve
real-world problems is a key skill in the 21st century.
Computational thinking involves breaking down a problem
in smaller parts, looking for patterns in those subproblems,
figuring out what information is needed, and developing a
step-by-step solution. Computational thinking is built on
four pillars: decomposition, pattern recognition,
data representation and abstraction, and algorithms. This session will introduce you to
the four pillars of computational thinking and shows how they can be applied as part of the
problem-solving process.
You and your friend are buying tickets for a movie (Parallel
Processing).
There are three independent lines
How do you get your tickets ASAP?
3.1. Decomposition:
Decomposition is the process of taking a complex problem and breaking it into more manageable
sub-problems. Although solving the complex problem as a whole may seem very difficult, the
solution to each sub-problem may be much simpler by putting together the solutions to the sub-
problems.
3.4. Algorithm:
An algorithm is a set of step-by-step instructions of how to solve a problem. It identifies what is
to be done (the instructions), and the order in which they should be done.
Example 1: A junior executive for getting out of bed and going to work. Consider the “rise-and-
shine algorithm”
This routine gets the executive to work well prepared to make critical decisions.
Suppose that the same steps are performed in a slightly different order:
In this case, our junior executive shows up for work soaking wet.
1. Think of a problem that could be solved using computational thinking, describe it, and then
apply all four pillars of computational thinking to solving that problem.
Lab exercise (submit as a report)
1. Think of a problem that could be solved using computational thinking, describe it, and then
apply all four pillars of computational thinking to solving that problem
Policy
Copying from the internet, classmates, seniors, or from any other source is strongly prohibited.
100% marks will be deducted if any such copying is detected.