Question: Please use Python code. 1. The result MUST be creating a text file that list each word in order of most frequent to least and

 Please use Python code. 1. The result MUST be creating a

Please use Python code.

1. The result MUST be creating a text file that list each word in order of most frequent to least and have the frequency count next to them.

Ex: "the cat adn the dog are fighting". The result: { 'the' : 2. 'cat' : 1, 'and': 1, 'dog' :1, 'are' : 1, 'fighting' : 1}

2. The word-count running time using multiple threads from 1-8.

1 thread meaning: read file, count words, result, running time. 2 thread meaning: Divide the file into 2 parts, count words, result, combine running time.

3 threads meaning: Divide the file into 3 parts count words, result, combine running time. etc.

Thank you for your help!!

1: word count load a large txt file(1000000): example "Free eBooks | Project Gutenberg" report word frequent analysis in a txt file report the word-count time using multiple threads from 1 - 8

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 Databases Questions!