comp-think / 2019-2020

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. 2019/2020).
Other
12 stars 3 forks source link

Lecture "Algorithms", exercise 2 #5

Open essepuntato opened 4 years ago

essepuntato commented 4 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".

noreanystrom commented 4 years ago

https://drive.google.com/file/d/14FnB9pqchaRwP3XFt9MwWcn6-v6Wyvo5/view?usp=sharing

arcangelo7 commented 4 years ago

esercizio2

FrancescoFernicola commented 4 years ago

Exercise 2 (1)

marcograsso commented 4 years ago

flowchart exercise

Gemmacentr commented 4 years ago

Untitled Diagram (2)

ariannamorettj commented 4 years ago

flow2

ariele-santello commented 4 years ago

Untitled Diagram.pdf

elisasilvad commented 4 years ago

Exercise 2 2 diagram

a809 commented 4 years ago

exercise 2 jpeg

virginiaciambriello commented 4 years ago

[Algorithms, ex.2 issue 5.pdf] (https://github.com/comp-think/2019-2020/files/3741075/Algorithms.ex.2.issue.5.pdf)

sntcristian commented 4 years ago

https://drive.google.com/file/d/16JYsMgIt3KFt0KuVAAJZzfTqpsTJcnR7/view?usp=drivesdk

aschimmenti commented 4 years ago

Basic sameness algorithm, Andrea Schimmenti

essepuntato commented 4 years ago

Hi all,

Thanks for the solution proposed. Looking at your diagrams, I've seen a bunch of mistakes that should be better to address as soon as possible. Following a random order:

  1. When you have to return something using the input/output widget, you have to explicitly write that you are returning (e.g. writing return "yes" instead of just "yes"). This is important since the widget can be used either for input or for output and it is impossible to disambiguate the intended usage without a text that clarifies it. In fact, even if we will specify the input only at the very beginning of the algorithm, there may exist some situation (that we do not analyse in our course) where a user is required to provide different inputs in different position of the algorithm. Thus, please specify every time if you are using the input/output widget as input or as output.

  2. Please read carefully the natural language description of the algorithm and, in particular, identify the input and output. Some of you have returned a number instead of a string. In the past years, I've seen projects failing just for having not respected the particular output that an algorithm should return.

morinigiu commented 4 years ago
Schermata 2019-10-29 alle 23 37 14