The same professor writes a program to analyze the chat logs from the various lectures as a partial measure of class participation. Each chat log consists of multiple lines, each of form TIME, NAME,...


The same professor writes a program to analyze the chat logs from the various lectures as a partial measure of class<br>participation. Each chat log consists of multiple lines, each of form TIME, NAME, COMMENT, in the order in which they were<br>posted to the chat . The algorithm then sorts all that data - across all the chat logs - in order of student names, and scores<br>each set using a metric based on the number of contributions and their length.<br>[a] What are the various input sizes to consider when analyzing the algorithmic approaches? (One is the number of students<br>in the class, but that is not the only factor.)<br>[b] Which sorting algorithm do you think is best suited for the sorting portion of this algorithm and why?<br>[c] What is the time complexity of the sorting algorithm chosen in step [b] as a function of the various input sizes identified in<br>step [a]?<br>[d] What is the overall time complexity of the chat analysis program as described above?<br>

Extracted text: The same professor writes a program to analyze the chat logs from the various lectures as a partial measure of class participation. Each chat log consists of multiple lines, each of form TIME, NAME, COMMENT, in the order in which they were posted to the chat . The algorithm then sorts all that data - across all the chat logs - in order of student names, and scores each set using a metric based on the number of contributions and their length. [a] What are the various input sizes to consider when analyzing the algorithmic approaches? (One is the number of students in the class, but that is not the only factor.) [b] Which sorting algorithm do you think is best suited for the sorting portion of this algorithm and why? [c] What is the time complexity of the sorting algorithm chosen in step [b] as a function of the various input sizes identified in step [a]? [d] What is the overall time complexity of the chat analysis program as described above?

Jun 09, 2022
SOLUTION.PDF

Get Answer To This Question

Related Questions & Answers

More Questions »

Submit New Assignment

Copy and Paste Your Assignment Here