Let us worry about your assignment instead!

We Helped With This Python Programming Assignment: Have A Similar One?

SOLVED
CategoryProgramming
SubjectPython
DifficultyGraduate
StatusSolved
More InfoPython Assignment
177111

Assignment Description

Assignment

 

This coursework requires you to write a number of MapReduce programs. These programs should be written using the Python mrjob library. Each solution should distribute computation across multiple map and/or reducer tasks.

 

Part 1

 

Given a CSV file where each line contains a set of numbers, write a MapReduce program which determines the minimum of all numbers in the file. For example, consider the following sample CSV file:

2,2,3

4,3

 

Given this CSV file, the minimum is 2.

 

Entitle the python program in question part1.py. That is, entering the following command at

the terminal should result in your MapReduce program being applied to fileName.txt and

the result being printed in the terminal.

python part1.py fileName.txt

 

Part 2

 

Given a CSV file where each line contains a set of numbers, write a MapReduce program which determines the standard deviation of all numbers in the file. For example, consider the following sample CSV file:

2,2,3

4,3

 

Given this CSV file, the standard deviation is 0.84.

 

Entitle the python program in question part2.py. That is, entering the following command at

the terminal should result in your MapReduce program being applied to fileName.txt and

the result being printed in the terminal.

python part2.py fileName.txt

 

Part 3

Uniform Resource Locator (URL) links describe the structure of the web. Consider a CSV file

where each line contains two URLs which specify a single link. That is, the first and second

values on each line specify the source and destination of the link in question. For example,

consider the following sample CSV file:

url1,url2

url1,url3

url2,url3

url4,url5

url2,url4

 

Given such a CSV file, write a MapReduce program which finds all paths of length two in the corresponding URL links. That is, it finds the triples of URLs (u, v, w) such that there is a link from u to v and a link from v to w.

 

For example, the sample CSV file above contains the following paths of length two:

url2, url4, url5

url1, url2, url3

url1, url2, url4

 

 

Entitle the python program in question part3.py. That is, entering the following command at

the terminal should result in your MapReduce program being applied to fileName.txt and

the result being printed in the terminal.

python part3.py fileName.txt

 

Part 4

Write a mapReduce program which takes as input a file where each line contains a comma

separated set of words and outputs for each word the lines that the word appears in. This is

an inverted index. For example, consider a file containing the following text:

goat,chicken,horse

cat,horse

dog,cat,sheep

buffalo,dolphin,cat

sheep

 

The corresponding inverted index will be the following:

"buffalo"          ["buffalo,dolphin,cat"]

"cat"                 ["buffalo,dolphin,cat", "cat,horse", "dog,cat,sheep"]

"chicken"         ["goat,chicken,horse"]

"dog"                ["dog,cat,sheep"]

"dolphin"         ["buffalo,dolphin,cat"]

"goat"               ["goat,chicken,horse"]

"horse"            ["cat,horse", "goat,chicken,horse"]

"sheep"            ["dog,cat,sheep", "sheep"]

 

Entitle the python program in question part4.py. That is, entering the following command at

the terminal should result in your MapReduce program being applied to fileName.txt and

the result being printed in the terminal.

python part4.py fileName.txt

Frequently Asked Questions

Is it free to get my assignment evaluated?

Yes. No hidden fees. You pay for the solution only, and all the explanations about how to run it are included in the price. It takes up to 24 hours to get a quote from an expert. In some cases, we can help you faster if an expert is available, but you should always order in advance to avoid the risks. You can place a new order here.

How much does it cost?

The cost depends on many factors: how far away the deadline is, how hard/big the task is, if it is code only or a report, etc. We try to give rough estimates here, but it is just for orientation (in USD):

Regular homework$20 - $150
Advanced homework$100 - $300
Group project or a report$200 - $500
Mid-term or final project$200 - $800
Live exam help$100 - $300
Full thesis$1000 - $3000

How do I pay?

Credit card or PayPal. You don't need to create/have a Payal account in order to pay by a credit card. Paypal offers you "buyer's protection" in case of any issues.

Why do I need to pay in advance?

We have no way to request money after we send you the solution. PayPal works as a middleman, which protects you in case of any disputes, so you should feel safe paying using PayPal.

Do you do essays?

No, unless it is a data analysis essay or report. This is because essays are very personal and it is easy to see when they are written by another person. This is not the case with math and programming.

Why there are no discounts?

It is because we don't want to lie - in such services no discount can be set in advance because we set the price knowing that there is a discount. For example, if we wanted to ask for $100, we could tell that the price is $200 and because you are special, we can do a 50% discount. It is the way all scam websites operate. We set honest prices instead, so there is no need for fake discounts.

Do you do live tutoring?

No, it is simply not how we operate. How often do you meet a great programmer who is also a great speaker? Rarely. It is why we encourage our experts to write down explanations instead of having a live call. It is often enough to get you started - analyzing and running the solutions is a big part of learning.

What happens if I am not satisfied with the solution?

Another expert will review the task, and if your claim is reasonable - we refund the payment and often block the freelancer from our platform. Because we are so harsh with our experts - the ones working with us are very trustworthy to deliver high-quality assignment solutions on time.

Customer Feedback

"Thanks for explanations after the assignment was already completed... Emily is such a nice tutor! "

Order #13073

Find Us On

soc fb soc insta


Paypal supported