Question: * * The lab exercise is almost identical as Assignment 6 . You don't have to complete it , just submit what you have before
The lab exercise is almost identical as Assignment You don't have to complete it just submit what you have before the deadline about either options below.
Assignment s runtime was too slow a couple of minutes or so It's because of the duplicatechecking, with over billion compares.
Rewrite the duplicatechecking logic from Assignment using a technique from "Techniques For Big Data, Reading" to do fewer compares.
Doing Fewer Compares: Using an array of objects including an array: How to declare the D array for the two options below?
Option : Static Array contains Dynamic Arrays
There are less than terms terms each year years
Average sections in each term
If so average comparison will become comparisons
vs it is much LESS!!
M vs M comparison; sec vs min
Option : Static Array contains Static Arrays
There are section numbers, let's create one size of array to contain another array of term.
By using the section number as the index of the array, we can directly find the corresponding term array to see if it is a duplicated section
How many comparisons we need? Maybe just one...
The fastest runtime, but waste lots of memory space.
There are most sections in a term, but create size array. Only indexes with valid data.
The default stack memory may need to enlarge than
Discuss and work with your peer to choose one of the options above to bring down the runtime of the duplicate check from Assignment
Refer to the flowchart using option and complete the "termcheck" and "sectioncheck" blocks
Submit the source file LabExercisecpp and the screenshot of sample output.
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
