OBJECTIVES

  • Define computational thinking.
  • Show how it can be used in different fields.
  • Explain the current limitations of computational thinking.

WHAT IS COMPUTATIONAL THINKING?

Answering this question is actually quite challenging. Proponents of computational thinking (CT) have until very recently spent a lot of time debating over how to define it.

As recently as 2011, a workshop was organised where numerous individuals came together to explore what the nature of CT should be. Some at this workshop argued in favour of a rigorous and consistent definition (Committee for the Workshops on Computational Thinking, 2011). Conversely, others have argued that trying to strictly define CT is unnecessary (Voogt et al., 2015).

In the latter’s view, understanding CT should not be done by coming up with a definition in the usual sense (in other words, creating a list of conditions that something must meet before being considered a match). Voogt et al. argue that defining CT shares similar difficulties with defining what a ‘game’ is. (Must every game pit at least one player against another? Does every game have the concept of winning? Should every game include some element of luck or randomness?) Like our understanding of a game, they say, the approach to defining CT should be fuzzier and considered as a series of similarities and relationships that criss-cross and overlap.

Other reasons exist to make defining CT a challenging endeavour. First, computational thinking is strongly related to computer science (CS), which itself can be problematic to define satisfactorily. Like CS, CT includes a range of both abstract and concrete ideas. They both share a universal applicability, and this broadness, while making it powerful, also makes CT hard to define concisely.

CT is also an idea that’s both new and old. It’s new in the sense that the subject suddenly became a hotly debated topic in 2006 after Wing’s talk (Wing, 2006). However, many of its core ideas have already been discussed for several decades, and along the way people have packaged them up in different ways. For example, as far back as 1980, Seymour Papert of the Massachusetts Institute of Technology pioneered a technique he called ‘procedural thinking’ (Papert, 1980). It shared many ideas with what we now think of as CT. Using procedural thinking, Papert aimed to give students a method for solving problems using computers as tools. The idea was that students would learn how to create algorithmic solutions that a computer could then carry out; for this he used the Logo programming language. 4 Papert’s writings have inspired much in CT, although CT has diverged from this original idea in some respects.

Nevertheless, during the 10 years following Wing’s talk, a number of succinct definitions were attempted. A small sample of them features in Table 1.1 . While they hint at similar ideas, there appears to be some diversity in what these people say. Perhaps Voogt et al. were right, and our best hope of understanding CT is to build up those overlapping, criss-crossing concepts. As luck would have it, this work was already done by Cynthia Selby (Selby, 2013), when she scoured the CT literature for concepts and divided them into two categories: concepts core to CT, and concepts that are somehow peripheral and so should be excluded from a definition.

Table 1.1 A list of definitions of computational thinking

Definition

Source

‘Computational thinking is the thought processes involved in formulating a problem and expressing its solution(s) in such a way that a computer—human or machine—can effectively carry out.’

(Wing, 2014)

‘The mental activity for abstracting problems and formulating solutions that can be automated.’

(Yadav et al., 2014)

‘The process of recognising aspects of computation in the world that surrounds us, and applying tools and techniques from Computer Science to understand and reason about both natural and artificial systems and processes.’

(Furber, 2012)

‘A mental orientation to formulating problems as conversions of some input to an output and looking for algorithms to perform the conversions. Today the term has been expanded to include thinking with many levels of abstractions, use of mathematics to develop algorithms, and examining how well a solution scales across different sizes of problems.’

(Denning, 2009)

‘[Teaching CT is teaching] how to think like an economist, a physicist, an artist, and to understand how to use computation to solve their problems, to create, and to discover new questions that can fruitfully be explored.’

(Hemmendinger, 2010)

In this book, I will follow a very similar approach to Selby. Certain concepts are considered as ‘core’ to CT and are covered in great detail. Others are included, but treated as peripheral and covered in much less detail.

This book considers the core concepts of CT to be: 5

  • logical thinking;
  • algorithmic thinking;
  • decomposition;
  • generalisation and pattern recognition;
  • modelling;
  • abstraction;
  • evaluation.

Other peripheral concepts will be mentioned, but not treated as essential to the topic of CT. They include:

  • data representation;
  • critical thinking;
  • computer science;
  • automation;
  • simulation/visualisation.

I will define individual concepts as they are introduced over the course of the book.

HOW IS COMPUTATIONAL THINKING USED?

CT can be applied by anyone who is attempting to solve a problem and have a computer play a role in the solution. To give us some idea of how CT is used, not just in computer science but in a range of subject areas, we can look at examples (sourced from Barr and Stephenson (2011)) of the core computational thinking concepts just listed.

For example, what could algorithmic thinking mean in different situations? To a computer scientist, it means the study of algorithms and their application to different problems. To a mathematician, it might mean carrying out long division factoring or doing carries in addition or subtraction. A scientist might think of it as the process of doing an experimental procedure.

Similarly, abstraction has application beyond the computer scientist’s view of it. When a linguist uses simile and metaphor, or writes a story with branches, they’re using abstraction, as are social scientists who summarise facts and use them to draw conclusions. When a scientist builds a model or a mathematician uses algebra, they too have introduced abstraction into their work.

The following are examples from other sources discussing specific examples of CT in action.

Example: Pipelining a graduation ceremony

Dean Randy Bryant was pondering how to make the diploma ceremony at commencement go faster. By careful placement of where individuals stood, he designed an efficient pipeline so that upon the reading of each graduate’s name and honors by Assistant Dean Mark Stehlik, each person could receive his or her diploma, then get a handshake or hug from Mark, and then get his or her picture taken. This pipeline allowed a steady stream of students to march across the stage (though a pipeline stall occurred whenever the graduate’s cap would topple while getting hug from Mark).

(Wing, 2011)

Example: Predicting climate change

Predicting global climate change is only possible because of advanced computer models. According to the UK Met Office, ‘The only way to predict the day-to-day weather and changes to the climate over longer timescales is to use computer models.’

(Furber, 2012)

Example: Sorting music charts

I showed up to a big band gig, and the band leader passed out books with maybe 200 unordered charts and a set list with about 40 titles we were supposed to get out and place in order, ready to play. Everyone else started searching through the stack, pulling out charts one-at-a-time. I decided to sort the 200 charts alphabetically O(N log N) 6 and then pull the charts O(M log(N)). I was still sorting when other band members were halfway through their charts, and I started to get some funny looks, but in the end, I finished first. That’s computational thinking.

(Roger Dannenberg in Wing, 2011)

Example: Assisting police, lawyers and judges

Computational Thinking has a long tradition in influencing the law, especially in the dream of providing a set of logical rules that can automate the process of reaching a verdict, [underpinning] its desire to minimise human discretion and maximise predictability of outcome… legal reasoning systems have been making inroads where they merely try to assist those making legal decisions. For instance, researchers at the Joseph Bell Centre have built a system that constructs a space of hypotheses to explain the evidence in a crime scene. This has been used to remind detectives of hypotheses they might otherwise have missed.

(Bundy, 2007)

DISCLAIMERS

This section discusses common misunderstandings about CT, as well as its current shortcomings.

What is computational thinking not?

There is bound to be some confusion over what CT is and is not. For one thing, it’s closely related to other subjects, like computer science and programming, and distinguishing between them may present difficulties. For another, its definition is broad and has been subject to debate for several years. This section will discuss something that some people might have been led to believe about CT which isn’t necessarily the case. In the process, more details about CT’s nature will be revealed.

First, teaching computational thinking is not the same as teaching computer science. The main aim of teaching the latter is to educate students in the study and application of the principles of mathematical computation. Perhaps to counter this impression, some, including Jeannette Wing, have said that computational thinking is ‘thinking like a computer scientist’. However, others have criticised this phrase (for example, Denning, 2009; Hemmendinger, 2010) because it leaves in place a strong association with computer science, which runs the risk of people seeing it not as an everyday skill, but merely as a repackaging of CS.

Teaching programming (a subfield of CS) is mainly done to educate students in how best to write programs, and it focuses on the production of high-quality software. CT, while sharing some aspects with these other subjects, is better described as an approach to problem-solving. What makes it distinct from other problem-solving approaches is that CT assumes a computer will execute the eventual solution.

images

CT teaches an approach to problem-solving where the ultimate aim is to provide a solution whose form means it is ready to be programmed into a computer.

CT takes a relatively small subset of concepts – which just happen to be important to CS – and uses them to construct a widely applicable, problem-solving approach.

These distinctions are important. Teaching computing skills as a mandatory part of the school syllabus has already been attempted in many places around the world. While these endeavours are noble and worthwhile, evidence is inconclusive about whether or not they succeed in their aim of teaching transferable skills (Voogt et al., 2015); that is to say, skills that students can intuitively take with them into various domains. CT attempts to perform better in this regard. By distilling some of the core aspects of CS that are relevant in many other fields, CT can be a course in the core school syllabus that is relevant to everyone. In the UK computing curriculum for example, CT already plays a big role (Department for Education, 2013). It can even be part of a CS or programming course that focuses exclusively on computer-based problem-solving.

In stressing the differences between computer science and computational thinking, it’s worth pointing out that CT concepts are hardly exclusive to CS. As David Hemmendinger (2010) points out, ‘Constructing models, finding and correcting errors, drawing diagrams, analyzing – these are all parts of scientific (and other) activities.’ Natural scientists, for example, have long been advocating that computation is a ‘third leg’ of the scientific process (alongside theory and experimentation) and that computational thinking is essential to their work (Denning, 2009).

[The] ultimate goal should not be to teach everyone to think like a computer scientist, but rather to teach them to apply these common elements to solve problems and discover new questions that can be explored within and across all disciplines.

(Barr and Stephenson, 2011)

Current shortcomings

We’ll very soon proceed to consider the details of computational thinking. Before that happens, however, an honest discussion of the subject in its current form should be up front with any shortcomings. Keep in mind that these may disappear as CT matures.

Maturity

Although it has influences and predecessors dating back several decades, CT as a formal concept is still relatively immature. Workshops were organised to explore the meaning of CT only five years prior to this book being written. As little as three years ago, Cynthia Selby wrote an important paper proposing a definition for CT (Selby, 2013), because definitions at the time were still vague. Most other disciplines have long since stopped organising gatherings to decide what exactly it is they do. Nevertheless, a consensus is now emerging on what to include in a definition, largely in line with Selby’s proposal of CT as ‘a focused approach to problem solving, incorporating thought processes that utilize abstraction, decomposition, algorithms, evaluation, and generalizations’ (2013). (‘What is computational thinking?’ on p. 7.)

Efficacy

A further consequence of CT’s youth is the relative paucity of evidence for how effective teaching CT actually is. It has so far not been taught widely for an extended time. Nevertheless, the body of evidence will grow as studies into its efficacy are conducted. Experience reports and testimonials provide a more immediate form of evidence.

Perceived imperialism

Other commentators have cautioned that proponents of CT risk being imperialistic and off-putting. Their claims like ‘you should think like a computer scientist’ or ‘computational thinking is X’ (where X is something they approve of) appear territorial. As David Hemmendinger (2010) said, proponents should be careful that CT doesn’t get into the habit of saying, ‘If it’s a good way of thinking, then it’s ours.’ It should be noted that many practices in CT are not original to the subject. In fact, they’re not all original to computer science; many of them have been used in other fields as well as everyday life for a long time. They do not simply become computational by virtue of finding application in computing.

However, it does somewhat mitigate CT’s immaturity when you realise that its constituent parts (such as logic, algorithms and decomposition) are individually tried, tested and mature.

SUMMARY

Computational thinking is an approach to problem-solving that involves using a set of practices and principles from computer science to formulate a solution that’s executable by a computer. It’s not just for programmers. In fact, it’s applicable in a diverse array of fields.

EXERCISES

EXERCISE 1

List the core concepts of CT.

EXERCISE 2

Give an example of how you think people in each of the following occupations think computationally:

  1. mathematician;
  2. scientist;
  3. engineer;
  4. linguist.

EXERCISE 3

Think of everyday activities in which you participate that involve computational thinking.