Question: 1 4 . 2 8 LAB: Library book sorting Two sorted lists have been created, one implemented using a linked list ( LinkedListLibrary class )
LAB: Library book sorting
Two sorted lists have been created, one implemented using a linked list LinkedListLibrary class and the other implemented using the
buitin Vector class VectorLibrary class Each list contains books title ISBN number, author sorted in ascending order by ISBN
number.
Complete main by inserting a new book into each list using the respective LinkedListLibrary and VectorLibrary InsertSorted functions
and outputting the number of book copy operations the computer must perform to insert the new book. Each InsertSorted retums the
number of book copy operations the computer performs.
Ex If the input is:
the output is:
Nunber of linked list book copy operations:
Nunber of vector book copy operations:
Which list do you think will requive the most operations? Why? c LAB: Library book sorting
Two sorted lists have been created, one implemented using a linked list LinkedListLibrary class and the other implemented using the
buitin Vector class VectorLibrary class Each list contains books title ISBN number, author sorted in ascending order by ISBN
number.
Complete main by inserting a new book into each list using the respective LinkedListLibrary and VectorLibrary InsertSorted functions
and outputting the number of book copy operations the computer must perform to insert the new book. Each InsertSorted retums the
number of book copy operations the computer performs.
Ex If the input is:
the output is:
Nunber of linked list book copy operations:
Nunber of vector book copy operations:
Which list do you think will requive the most operations? Why? c
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
