Week 1 Assignment - Computational Thinking - Question 7 - Wrong Answer

63 views
Skip to first unread message

Rashi Singhal

unread,
Oct 21, 2020, 8:48:14 AM10/21/20
to Discussion forum for Mathematics for Data Science I

In my understanding, the answer to question number 7 of Computational Thinking ought to be “Total number of sentences with at least one verb in it”. The reason for such understanding is as follows:

The only aspect which can be surely said about the word when A is incremented to 1 is that the sentence has one verb which is coming to the end of the sentence that is verb is the last word in that sentence. It follows from this that there can be even more than one verb in that sentence, since it has not been clarified to us that these will not be complex sentences in which there cannot be more than one verb in a sentence. Accordingly, the answer to the mention question ought to be “Total number of sentences with at least one verb in it”.

Kindly confirm this understanding of mine. If there is an issue in understanding, kindly provide a reason thereto.

Additionally, just to clarify, the solution provided on the portal doesn't cover this aspect.


Mohit Chakraborty

unread,
Oct 21, 2020, 9:35:41 AM10/21/20
to Discussion forum for Mathematics for Data Science I, Rashi Singhal
The verb need not be at the end of the sentence. B gets increased whenever the program encounters a verb, regardless of whether or not there is a full stop at the end of it.  For eg;
"It was Monday morning. Swaminathan was reluctant to open his eyes."
In the first sentence, B gets incremented on the 2nd word. A also gets incremented to 1 on the 4th word as there is a full stop and B is equal to 1.
In the second sentence, B gets incremented twice, first on the 6th word and then on the 9th word. However, A will not get incremented at the end of this sentence as B is not equal to 1. 

Moreover, "Total number of sentences with at least one verb in it" will be equal to the total number of sentences in the paragraph as all sentences have at least one verb in them.

Rashi Singhal

unread,
Oct 22, 2020, 1:58:19 AM10/22/20
to Discussion forum for Mathematics for Data Science I, Mohit Chakraborty, Rashi Singhal
But for the question, are we not using the individual cards provided for in the "Paragraph words" dataset. 

The question mentions in the first step "Arrange all cards in a single pile called Pile 1"

If we are using the individual cards, we'll be looking at those individual words, and not the full sentences. So, wouldn't it stand to reason that the only words which has both "verb" as a part of speech and ends with a full stop, will be at the end of the sentence? 
And since we'll only be incrementing A when there is a verb at the end of the sentence, we will ignore the other verbs, if any, in the whole sentence (since, we have no idea what the full sentence is, given that we're only using the individual cards as provided).

Mathematics 1 Support 2

unread,
Oct 22, 2020, 7:44:34 AM10/22/20
to Discussion forum for Mathematics for Data Science I, Rashi Singhal, Mohit Chakraborty
Dear learner,
Kindly discuss in the computational thinking discussion forum.
Thanks and regards 
Vicky Kumar Sharma 
Maths_1 instructor
IITM Online Degree
Reply all
Reply to author
Forward
0 new messages