comp-think/2022-2023

Lecture "Introduction to Computational Thinking", exercise 3

essepuntato opened this issue ยท 12 comments

Write down two objects or situations that refer to the same pattern if analysed from an abstract point of view, as introduced in Section "Abstraction is the key". What features do they have in common?

Going to the bank; Going to a bakery;
You go to each of these places because you require something; you wait in line; you ask for the desired item to the person in charge; you exchange either information or money; you receive the item that you desired.

An elevator& An autobus;
They both depart from a starting point and arrive in a destination, and the destination is a new starting point; During their movement, they transport objects inside them and stop temporarily, and they make sound for their arrival; They run on energies; They have spaces relatively separated from the outside.

Drinking a cold beer and using a bath tub
They both...

  • involve a vessel full of a liquid
  • are better with a bit of foam
  • feel really good when you're tired
  • can be more enjoyable with a good friend
  • take advantage of an extreme temperature
  • can take a long time to finish

Building a Lego set / assembling an Ikea wardrobe, involving:

  • a box of construction pieces
  • a printed book of instructions to follow precisely
  • gradually attaching the pieces with one another, constantly checking the instructions
  • sometimes understanding a mistake in the first steps and retrying the most part all over
  • a package of suspicious leftover details causing uncertainty about whether you did everything correctly

Going from a bus and a train:

  1. Both have a starting point and a destination.
  2. Stops temporarily at many points.
  3. You pay to travel.
  4. They both have passengers.
  5. Both are public transportation.

Learning a natural language/ Learning a programming language

  • You need to practice it
  • understanding an already written text/code is easier than writing it yourself
  • You need to learn the syntax
  • Both are a communication tools
  • When you use both of them, you create something
  • You need to combine the terminals of both languages in order to use it.
  • You make many mistakes before you become fluent.

First situation: inserting the password of an email account.

Second situation: digiting the pin of your credit card.

Both situations have in common:

  • The necessity of remembering a sequence of numbers/letters;
  • The action of digiting the sequence in a keypad/keyboard;
  • Waiting time for a response.

Take a university exam / Take a medical examination

  • They take place at a specific location
  • You need to book
  • You need to wait your turn
  • You can be a little anxious
  • You are examined by another person/other people
  • At the end you come out with a result

Painting / Cooking
1- Both need special materials and instruments.
2- Both need to spend a priod of time to be done!
3- You don't need to have academic knowledge necessarily to do them. They can be learnt by trial and error method.
4- The result would be pleasurable if all things are on point and measured!
5- Creativity is a very effective factor in both of them.

Speaking / Playing an instrument
1 Both involve producing a modulated sound
2 Both evoke a vast array of emotions
3 Both can involve making some chords vibe
4 Both use air as vehicle to transmit their sound
5 You can practice and get better
6 Doing it alone, in front of people you know and in front of a crowd feel different and can affect your performance
7 Both in order to "make sense" have to follow a "grammar" that can generate a lot of outcomes

Cat sleeping on the sofa. Baby sleeping in the bed. Two subjects do the same action at the same setting with the same purpose.

Man cooking pasta at the kitchen. Chef cooking pasta at the restaurant. Common features: the same action and setting, maybe a kind of same clothes, like backsplash, same dish, same result of the action, probably the same period of the day (if they are in Italy where people have strict rules for the eating time)

To study and to do sports:

  • They both require concentration
  • Both are tiring
  • For both of them you can only see results if you practice them consistently
  • Both are satisfying
  • Both require the right amount of time, which can also be different for anyone
  • Both require a stimulating environment
  • The person practicing them must be motivated
  • Both require the right tools
  • Both can be carried out either alone or in groups
  • In both cases you benefit from the guidance of an expert