Week 3 activity q 3.3

105 views
Skip to first unread message

Ajay Kumar

unread,
Oct 26, 2020, 1:18:16 AM10/26/20
to Discussion forum for Computational Thinking
We plan to have a three way classification for both frequency and length. There is now a medium frequency in addition to high and low; also, there is a medium length in addition to long and short. Given this setup, how many variables would we need to maintain to keep track of the word-counts for the different combinations that would come up?
 4
 6
 8
 9
I didnt undertand the question. Please explain?
THanks

Anand Iyer

unread,
Oct 26, 2020, 2:11:33 AM10/26/20
to Discussion forum for Computational Thinking, kumar.a...@gmail.com
See the attached picture, and see if you can understand.

The top table represents the 4 variables used to represent high-low frequency, and long-short length

The bottom table represents 9 variables used to represent high-medium-low frequency and long-medium-short length.  '

Essentially, these are the cross product of the two sets of values.

NOTE: I've renamed medium frequency and medium length to medum-f and medium-l to distinguish them.



variables.png

Computational Thinking Support 2

unread,
Oct 26, 2020, 6:33:26 AM10/26/20
to Discussion forum for Computational Thinking, anandd...@gmail.com, kumar.a...@gmail.com
This is the correct answer. Thanks for your explanation, Anand.
Reply all
Reply to author
Forward
0 new messages