Please complete the following exercises. · XXXXXXXXXXpage 473) · XXXXXXXXXXpage 473) · XXXXXXXXXXpage 475) Develop your files in Jupiter and submit .ipynb files. Also submit any txt, csv or other...

1 answer below »

Please complete the following exercises.


· 11.17 (page 473)


· 11.19 (page 473)


· 11.21 (page 475)


Develop your files in Jupiter and submit .ipynb files. Also submit any txt, csv or other format files necessary to execute your code.



ALL EXERCISE MUST BE DONE IN PYTHIN CODING AND DEVELOP IN JUPITER!!!


WHEN ALL EXERCISES WILL BE DONE PLEASE SEND ME ALL EXERCISE SEPARATELLY WITH THE NAME OF EXERCISE FOR EXAMPLE:


11.17.ipynb


11.17.ipynb


and so on


.


.


.


Also all separately DOCUMENTS with the name of exercise txt, csv or other format files necessary to execute your code.


ALSO PLEASE MAKE SURE THAT IF YOU WILL SEND ME THIS CODES I WILL BE ABLE SEND IT RIGHT AWAY TO MY TEACHER TO NOT DO ENYTHING MORE JUST DANWLOAD AND SEND IT FORWARD TO MY TEACHER


Also please give those assignmentsto Sudipta Expert i like the work and he knows what to do



THANK YOU



DAWID

Answered Same DayNov 16, 2021

Answer To: Please complete the following exercises. · XXXXXXXXXXpage 473) · XXXXXXXXXXpage 473) ·...

Sudipta answered on Nov 21 2021
136 Votes
11.17.py
class BucketSort:
def sort(arr):
bucket = []
for i in range(len(arr
)): #creating empty buckets
bucket.append([])
for j in arr: #insert value into buckets
index_b = int(10 * j)
bucket[index_b].append(j)
for i in range(len(arr)): #sort each buckets value
bucket[i] = sorted(bucket[i])
indx = 0
for i in range(len(arr)): #getting the values after they are sorted
for j in range(len(bucket[i])):
arr[indx] = bucket[i][j]
indx += 1
return arr
A = [.21, .28, .11, .07, .33, .49, .56]
...
SOLUTION.PDF

Answer To This Question Is Available To Download

Related Questions & Answers

More Questions »

Submit New Assignment

Copy and Paste Your Assignment Here