comp-think / 2020-2021

The GitHub repository containing all the material related to the Computational Thinking and Programming course of the Digital Humanities and Digital Knowledge degree at the University of Bologna (a.a. 2020/2021).
14 stars 9 forks source link

Lecture "Algorithms", exercise 2 #5

Open essepuntato opened 3 years ago

essepuntato commented 3 years ago

Write the flowchart of an algorithm that takes in input two objects and returns the string "yes" whether the two objects are the same; otherwise, it returns the string "no".

SarahTew commented 3 years ago

Exercise 2

denizovski commented 3 years ago

Flowchart Diagram

laurentfintoni commented 3 years ago

Screen Shot 2020-10-16 at 2 45 03 PM

giorgiasampo commented 3 years ago

Diagramma non titolato

fcagnola commented 3 years ago

This is my proposal Diagram

dbrembilla commented 3 years ago

Diagram

gabrielefiorenza commented 3 years ago

FLOWCHART 1

edoardodalborgo commented 3 years ago

ex2_lez2

ChiaraCati commented 3 years ago

33680E3A-1C22-4020-BC0C-9E00C0F19A48

SusannaPinotti commented 3 years ago

image

ConstiDami commented 3 years ago

Ex2

penelopelask commented 3 years ago

exercise2

AlessandraFa commented 3 years ago

Flowchart A=B

yunglong28 commented 3 years ago

Untitled Diagram

Fran-cesca commented 3 years ago

Untitled Diagram (1)

GiuliaMenna commented 3 years ago

Untitled Diagram

valentinacozzi commented 3 years ago

DF0CDC12-98ED-4753-9702-6C2055472EF9

DeniseBas commented 3 years ago

Untitled Diagram

LuisAmmi commented 3 years ago

image

enri-ca commented 3 years ago

immagine

essepuntato commented 3 years ago

Hi all,

Thanks for your answers. A few comments about some issues I found reading your proposed solutions:

  1. remember that defining an algorithm and executing it (i.e. passing specific input values to a computer that will follow the instruction depicted in the algorithm to return something) are two different activities. When you develop an algorithm, you do not consider, usually, particular input values (e.g. the string "john" or the number 3) but just variables / parameters (i.e. the input string a and the number n).
  2. According to the convetion I've introduced, using "a" does not defined a variable but a string containing the character a.
  3. The steps of the algorithms must not contain references to variables that are not initialised before or that are not the input parameter of the algorithm.