comp-think / 2023-2024

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. 2023/2024).
13 stars 0 forks source link

Lecture "Algorithms", exercise 1 #4

Open essepuntato opened 1 year ago

essepuntato commented 1 year ago

What is the result of the execution of the algorithm in Figure 4 of the chapter "Algorithms" 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?

vattelalberto commented 1 year ago

The output would be 2 with these inputs

FranciscoWu commented 1 year ago

2, since both appeared

katyakrsn commented 1 year ago

2, because both of these input values are in the bibliographic entry

qwindici commented 1 year ago

2

elena2notti commented 1 year ago

2

ThIheb commented 1 year ago

The output would be 2 since the two words can be found in the bibliographic entry

saramadonia commented 1 year ago

the output would be 2 because the result value initialised to 0 adds up to 1 each time the input values appear in the bibliographic entry, that is two times.

AnnaNicoletti commented 1 year ago

2

valentinabertelli commented 1 year ago

the output is 2

rufferbaraldi commented 1 year ago

2

annapasetto0 commented 1 year ago

2, both words are in the bibliographic entry

CarlaMenegat commented 1 year ago

it's 2 because Captura de Tela 2023-10-15 às 11 20 31

matildepassafaro commented 1 year ago

Since both words are in the bibliographic entry, the output is 2.

simocasaz commented 1 year ago

The output is 2

Liber-R commented 1 year ago

2

BeatriceBucci commented 1 year ago

I think the output is 2 since both words are contained in the bibliographic entry!

Chiaramartina commented 1 year ago

2 because both are in the bibliographic entry

alicepiazzi commented 1 year ago

The result of the execution of the algorithm using the input values:

word 1= "Peroni"; word 2= "HTML" and bibliographical entry = "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"

We start from 0, then we sum 1 to the result because the word 1= "Peroni" is in the be and then we sum 1 to the previous result because the word 2 ="HTML" is in the be too. The final result is 2

MariaFrancesca6 commented 1 year ago

The result is 2 since both words appear into the b.e.

Sergpoipoip commented 1 year ago

2

enricabruno commented 1 year ago

The result is 2: Lecture__Algorithms-_ex1

VirginiaDa00 commented 1 year ago

2

Theengwar commented 1 year ago

Based on Figure 4 and the fact that both words are included in the bibliographic entry, the result is 2.

Alice-Ant commented 1 year ago

The output will be "2", because both values are present in the entry

ahmdrznzr commented 1 year ago

2, because both of them are in the bibliographic entry.

addonico commented 11 months ago

2, because both words "Peroni" and "HTML" are in the bibliographic entry.