Algorithms
1. This question has 4 part(s).
1.1.
The numbers listed above are to be sorted into descending order.
(i) Perform one pass of a bubble sort, starting at the left-hand end of the list. You must write down the list that results at the end of this first pass.
(ii) Write down the number of comparisons and the number of swaps performed during this first pass.
1.2. After a second pass using this bubble sort, the updated list is
Use a quick sort on this updated list to obtain the fully sorted list. You should show the result of each pass and identify your pivots clearly.
1.3. Apply the first-fit decreasing bin packing algorithm to the fully sorted list to pack the numbers into bins of size 11.5
1.4. Determine whether your answer to part (c) uses the minimum number of bins. You must justify your answer.
Ai এর মাধ্যমে
১০ লক্ষ+ প্রশ্ন ডাটাবেজ
প্র্যাকটিস এর মাধ্যমে নিজেকে তৈরি করে ফেলো
উত্তর দিবে তোমার বই থেকে ও তোমার মত করে।
সারা দেশের শিক্ষার্থীদের মধ্যে নিজের অবস্থান যাচাই
No related questions found