Question: please use python and spark Use the first 1000 digits of pi. In each case, develop program implemented using Spark (either on AWS or Databricks),

please use python and spark Use the first 1000 digits of pi.

In each case, develop program implemented using Spark (either on AWS or Databricks), to:

Find the 5 most frequent and 5 least frequent (but present)tbi-grams for your dataset (only digits, not the decimal point A bi-gram is 2 successive digits/letters/etc.For example, the string 938193 has 5 (93, 38, 81,19, 93).The distribution would include:93 - 2, and 81 - 1 . Assume that the data set is large enough so that bi-grams at the boundaries of nodes are not significant (most likely you will have only 1 mapper in any case since this is a very small data set, so it won't be an issue.

Your submission should be copied into MSWord or pdf, and should include (in one file):

1) Your Spark Program

2) Minimum (5 least occurring bi-gram)

3) Maximum (5 most commonly occurring bi-gram)

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!