Question: Question 6 ( 3 0 . 0 marks ) Given two unsorted arrays A and B . Array A consists of numbers of integers and
Question marksGiven two unsorted arrays A and B Array A consists of numbers of integers and array B consists of numbers of integers. The integers in array B are distinct and they are in the range The problem is to output the smallest number in array for and For example, let and then the output is because the sorted array of the elements in array A is and the first st smallest element of array A is the rd smallest element of array A is and the th smallest element of array A is Write two Java, C or Python programs to implement the following algorithms:a Algorithm Sort array A and Array B and produce the required output. marksb Write a report on the analysis of your implementation for Algorithm using thetechnique we discussed in Lecture Slides How much time number ofoperations does Algorithm take? marksc Algorithm Sort array A but do not sort array B Produce the required output. marksd Write a report on the analysis of your implementation for Algorithm using thetechnique we discussed in Lecture Slides How much time number ofoperations does Algorithm take? markse Test run your program, screencapture the output, and submit together with yourreports for Part b and d marks
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
