Ask your own question, for FREE!
MIT 6.00 Intro Computer Science (OCW) 30 Online
OpenStudy (anonymous):

In unit 2 problem set 5, what is the not trigger supposed to do? I don't get what the problem is asking.

OpenStudy (e.mccormick):

From the PDF: Part II: Triggers Given a set of news stories, your program will generate alerts for a subset of those stories. Stories with alerts will be displayed to the user, and the other stories will be silently discarded. We will represent alerting rules as triggers. A trigger is a rule that is evaluated over a single news story and may fire to generate an alert. For example, a simple trigger could fire for every news story whose title contained the word “Microsoft”. Another trigger may be set up to fire for all news stories where the summary contained the word “Boston”. inally, a more specific trigger could be set up to fire only when a news story contained both the words “Microsoft” and “Boston” in the summary. So let me add to this. While I have not looked at the code, I can guess right from that. What if you had triggers for "Microsoft" and NOT "Boston" in the summary? How would that change thing vs. what they said above?

Can't find your answer? Make a FREE account and ask your own questions, OR help others and earn volunteer hours!

Join our real-time social learning platform and learn together with your friends!
Can't find your answer? Make a FREE account and ask your own questions, OR help others and earn volunteer hours!

Join our real-time social learning platform and learn together with your friends!