1) Using the MapReduce model, obtain the matrix multiplication of A and B. Both matrices are given below. You should use at least two mappers and two reducers. The number of mappers and reducers is not needed to be equal. You may use any number of mappers (two or more) and any number of reducers (two or more). Also, write a program using any programming language to implement the MapReduce matrix multiplication.
A B
6 9 8 1 20 7
15 4 10 3 18 13
2 11
12 5
Write a report showing all the steps of MapReduce model including the following sections:
1. How the data (i.e., values of both matrices) is partitioned and stored in memory.
2. Number of mappers and reducers used for your MapReduce.
3. The algorithm used for Mapper.
4. The algorithm used for Reducer.
5. A diagram showing how different key-value pairs are shuffled and sorted from mappers to reducers.
6. The complete source code and the programming language used.
7. The result (i.e., matrix C=A*B) obtained from multiplying matrices A and B. Also include a figure showing the output of the program.
8. Finally, compare the result obtained from MapReduce and the matrix multiplication of A*B.
Important notes:
i. You cannot use any libraries for the MapReduce model.
ii. Your source codes should have enough comments for readability. It is your responsibility to make sure that your codes are understandable for evaluation.
—————————————————————————————————–
Q2) Write a program (with any programming language) to train and build a decision tree model using the following labeled dataset so that the model can predict whether in the future the tennis court will be occupied or not.
Day Outlook Temperature Humidity Wind Occupied
D1 Sunny Hot High Weak No
D2 Sunny Hot High Strong No
D3 Overcast Hot High Weak Yes
D4 Rain Mild High Weak Yes
D5 Rain Cool Normal Weak Yes
D6 Rain Cool Normal Strong No
D7 Overcast Cool Normal Strong Yes
D8 Sunny Mild High Weak No
D9 Sunny Cool Normal Weak Yes
D10 Rain Mild Normal Weak Yes
D11 Sunny Mild Normal Strong Yes
D12 Overcast Mild High Strong Yes
D13 Overcast Hot Normal Weak Yes
D14 Rain Mild High Strong No
Then, write a program to build only the first level of the decision tree (that is to find the first branch of the tree) using MapReduce. You must use multiple mappers and reducers assuming your dataset is stored in chunks at multiple nodes as follows:
Node 1
Day Outlook Temperature Humidity Wind Occupied
D1 Sunny Hot High Weak No
D2 Sunny Hot High Strong No
D3 Overcast Hot High Weak Yes
D4 Rain Mild High Weak Yes
D5 Rain Cool Normal Weak Yes
Node 2
Day Outlook Temperature Humidity Wind Occupied
D6 Rain Cool Normal Strong No
D7 Overcast Cool Normal Strong Yes
D8 Sunny Mild High Weak No
D9 Sunny Cool Normal Weak Yes
D10 Rain Mild Normal Weak Yes
Node 3
Day Outlook Temperature Humidity Wind Occupied
D11 Sunny Mild Normal Strong Yes
D12 Overcast Mild High Strong Yes
D13 Overcast Hot Normal Weak Yes
D14 Rain Mild High Strong No
Write a report showing all the steps of the Decision tree and MapReduce Models including the following sections:
1. Structure of the complete decision tree.
2. The source codes of the decision tree model.
3. A figure showing the output of the decision tree program.
4. Steps to build the first level (branch) of the decision tree using MapReduce
5. The algorithm used for Mapper.
6. The algorithm used for Reducer.
7. A diagram showing how different key-value pairs are shuffled and sorted from mappers to reducers.
8. The complete source code for building the first branch of the decision tree using MapReduce model.
9. A figure showing the output of the MapReduce program.
Important notes:
i. You cannot use any libraries for building the Decision Tree and MapReduce models.
ii. Your source codes should have enough comments for readability. It is your responsibility to make sure that your codes are understandable for evaluation.
Why Work with Us
Top Quality and Well-Researched Papers
We always make sure that writers follow all your instructions precisely. You can choose your academic level: high school, college/university or professional, and we will assign a writer who has a respective degree.
Professional and Experienced Academic Writers
We have a team of professional writers with experience in academic and business writing. Many are native speakers and able to perform any task for which you need help.
Free Unlimited Revisions
If you think we missed something, send your order for a free revision. You have 10 days to submit the order for review after you have received the final document. You can do this yourself after logging into your personal account or by contacting our support.
Prompt Delivery and 100% Money-Back-Guarantee
All papers are always delivered on time. In case we need more time to master your paper, we may contact you regarding the deadline extension. In case you cannot provide us with more time, a 100% refund is guaranteed.
Original & Confidential
We use several writing tools checks to ensure that all documents you receive are free from plagiarism. Our editors carefully review all quotations in the text. We also promise maximum confidentiality in all of our services.
24/7 Customer Support
Our support agents are available 24 hours a day 7 days a week and committed to providing you with the best customer experience. Get in touch whenever you need any assistance.
Try it now!
How it works?
Follow these simple steps to get your paper done
Place your order
Fill in the order form and provide all details of your assignment.
Proceed with the payment
Choose the payment system that suits you most.
Receive the final file
Once your paper is ready, we will email it to you.
Our Services
No need to work on your paper at night. Sleep tight, we will cover your back. We offer all kinds of writing services.
Essays
No matter what kind of academic paper you need and how urgent you need it, you are welcome to choose your academic level and the type of your paper at an affordable price. We take care of all your paper needs and give a 24/7 customer care support system.
Admissions
Admission Essays & Business Writing Help
An admission essay is an essay or other written statement by a candidate, often a potential student enrolling in a college, university, or graduate school. You can be rest assurred that through our service we will write the best admission essay for you.
Reviews
Editing Support
Our academic writers and editors make the necessary changes to your paper so that it is polished. We also format your document by correctly quoting the sources and creating reference lists in the formats APA, Harvard, MLA, Chicago / Turabian.
Reviews
Revision Support
If you think your paper could be improved, you can request a review. In this case, your paper will be checked by the writer or assigned to an editor. You can use this option as many times as you see fit. This is free because we want you to be completely satisfied with the service offered.