Question: plz using Python to answer this question Thank ! plz using Python to answer this question Thank ! plz using Python to answer this question
plz using Python to answer this question Thank ! plz using Python to answer this question Thank !
plz using Python to answer this question Thank ! plz using Python to answer this question Thank !
Topic : Data Structures

plz using Python to answer this question Thank ! plz using Python to answer this question Thank !
plz using Python to answer this question Thank ! plz using Python to answer this question Thank !
Embedded following code in your source code. This is to generate a set of random number tored in list according to your student number. \begin{tabular}{|l|l|} \hline \#n : student number (exclude alphabet, e.g. student ID is \\ 20563755A, then sn would be 20563755), \\ #n : no. of items to generate \\ def genNumberList ( sn : int, n: : int): \\ import random; \\ random. seed (sn); \\ return [ int (random.random ()n) for j in range (n) ]; \end{tabular} (a) By using the Bubble sort program in Notes of Lecture 04 with following interface to sort out above generated number when no. of items n=10. def bubblesort(data): (b) By using the Merge sort program in Notes of Lecture 05 with following interface to sort out above generate number when no. of items n=10. def mergesort (data) : (c) Execute your Bubble sort and Merge sort with number of items ( 1000,10000 and 100000). Keep their execution time and discuss what have you find? You are no need to provide the input and output data in part (c). - END of Assignment 1
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
