C++ Program: DeleteNode vs. Erase
VerifiedAdded on 2019/09/16
|2
|485
|494
Practical Assignment
AI Summary
This practical assignment requires writing a C++ program to compare the performance of the `deleteNode` operation from a custom `NumberList` class (similar to one found in Gaddis' textbook) against the `erase` operation from the Standard Template Library (STL) `list` header file. The student must first clearly state the problem, formulate a hypothesis about which operation will be faster, design an experiment to test the hypothesis (ensuring both lists contain identical data), present the experimental results, and finally draw a conclusion, stating whether the hypothesis was correct and explaining why. The assignment provides links to STL list documentation and includes a sample `NumberList` class and its `deleteNode` function for reference.
1 out of 2