Question: Given a set of numbers: A = { 1 , 3 , 5 , 2 , 8 , 7 , 9 , 4 } .

Given a set of numbers: A ={1,3,5,2,8,7,9,4}.
Add each digit of your N-Number (e.g. N 00322012) to each element of A separately to
get your own final array B.( e.g. B={1,3,8,4,10,7,10,6}={B1,B2,B3,B4,B5,B6,B7,B8}.)
a) Your set B =?
b) Use merge-sort to sort the array B. Show each step.
c) How many comparisons are used in the algorithm above?
2 How do you build a linked list in C++ or Java? Provide an example that holds 5 numbers.

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!