Open essepuntato opened 4 years ago
The result is 2.
Result = 2
The result is 2
2!
Result = 2
The result is 2
Result is 2
@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.
@essepuntato I tried to take Arianna's flowchart and add your corrections, could it be the right representation?
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.
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?