C++ code for data structures and algorithms. The code should be compiled in Linux. Please do not use any STL libraries. Also, please provide examples of how to use your code in the main function.
Line 30: Generalize the Heap data structure from a binary tree to a k-ary tree for an arbitrary k^2. Study the relative efficiencies (in terms of actual running time) of the resulting data structure for various values of k, by inserting and removing a large number of randomly generated keys into each data structure, which should be included in your main function. Your main function should also include code for visualizing your heap data structures before and after the operations.