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 1 #4

Open essepuntato opened 4 years ago

essepuntato commented 4 years ago

What is the result of the execution of the algorithm in Figure 4 using "Peroni", "HTML", and "Peroni, S., Osborne, F., Di Iorio, A., Nuzzolese, A. G., Poggi, F., Vitali, F., Motta, E. (2017). Research Articles in Simplified HTML: a Web-first format for HTML-based scholarly articles. PeerJ Computer Science 3: e132. e2513. DOI: https://doi.org/10.7717/peerj-cs.132" as input values?

arcangelo7 commented 4 years ago

The result is 2.

noreanystrom commented 4 years ago

Result = 2

FrancescoFernicola commented 4 years ago

The result is 2

ghost commented 4 years ago

2!

ariannamorettj commented 4 years ago

Result = 2 flow1

virginiaciambriello commented 4 years ago

The result is 2

sntcristian commented 4 years ago

Result is 2

essepuntato commented 4 years ago

@ariannamorettj

Your approach works, but it is unclear the use you have done of the diagram since in the input widget you actually specified the actual input used for the particular execution of the algorithm. Now, of course, you can use a flowchart to mimic the execution of the algorithm, but in this case, I would strongly suggest drawing only the widgets that are really used. For instance, I would avoid drawing the line "no" between the first decision widget and the second, as well as the line "no" of the second decision widget. In this way, you have a linear execution of all the passages, that avoid possible confusion.

I hope it may help.

morinigiu commented 4 years ago

@essepuntato I tried to take Arianna's flowchart and add your corrections, could it be the right representation?

Schermata 2019-10-29 alle 21 02 25
ariannamorettj commented 4 years ago

Thank you very much, it helps a lot. So, just to be sure, the point is that it is advisable to:

Does it sound right? Thank you again.


Da: Silvio Peroni notifications@github.com Inviato: lunedì 21 ottobre 2019 09:17 A: comp-think/2019-2020 2019-2020@noreply.github.com Cc: Arianna Moretti - arianna.moretti2@studio.unibo.it arianna.moretti2@studio.unibo.it; Mention mention@noreply.github.com Oggetto: Re: [comp-think/2019-2020] Lecture "Algorithms", exercise 1 (#4)

@ariannamorettjhttps://github.com/ariannamorettj

Your approach works, but it is unclear the use you have done of the diagram since in the input widget you actually specified the actual input used for the particular execution of the algorithm. Now, of course, you can use a flowchart to mimic the execution of the algorithm, but in this case, I would strongly suggest drawing only the widgets that are really used. For instance, I would avoid drawing the line "no" between the first decision widget and the second, as well as the line "no" of the second decision widget. In this way, you have a linear execution of all the passages, that avoid possible confusion.

I hope it may help.

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHubhttps://github.com/comp-think/2019-2020/issues/4?email_source=notifications&email_token=ANOTDJ24GQ2QEKJNTSJVVOLQPVJQLA5CNFSM4JBGGBUKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEBZJ2XA#issuecomment-544382300, or unsubscribehttps://github.com/notifications/unsubscribe-auth/ANOTDJ7CKFFFCGQB3XZIAHTQPVJQLANCNFSM4JBGGBUA.