arnabsen1729 / Algorithms-Lab-01

Alogirthms Lab 1 3rd Semester by Arnab Sen. Rajdeep Ghosh and Krishnendu Bera

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

AlgoLab-1

Assignment-1 of Algorithm Lab

  1. A: Construct large data sets taking random numbers from uniform distribution (UD)

  2. B: Construct large data sets taking random numbers from normal distribution (ND)

  3. A: Implement Merge Sort (MS) and check for correctness

  4. B: Implement Quick Sort (QS) and check for correctness

  5. Count the operations performed, like comparisons and swaps with problem size increasing in powers of 2, for both MS and QS with both UD and ND as input data.

  6. Experiment with randomized QS (RQS) with both UD and ND as input data to arrive at the average complexity (count of operations performed) with both input datasets.

  7. Now normalize both the datasets in the range from 0 to 1 and implement bucket sort (BS) algorithm and check for correctness.

  8. Experiment with BS to arrive at its average complexity for both UD and ND data sets and infer.

  9. Implement the worst case linear median selection algorithm by taking the median of medians (MoM) as the pivotal element and check for correctness.

  10. Take different sizes for each trivial partition (3/5/7 ...) and see how the time taken is changing.

  11. Perform experiments by rearranging the elements of the datasets (both UD and ND) and comment on the partition or split obtained using the pivotal element chosen as MoM.

Slides

img-1 img-2 img-3 img-4 img-5 img-6 img-7 img-8 img-9 img-10 img-11 img-12 img-13 img-14 img-15 img-16 img-17 img-18 img-19 img-20 img-21 img-22 img-23 img-24 img-25 img-26 img-27 img-28 img-29 img-30 img-31 img-32 img-33 img-34 img-35 img-36 img-37 img-38 img-39 img-40 img-41 img-42 img-43 img-44 img-45 img-46 img-47 img-48 img-49 img-50 img-51 img-52 img-53 img-54 img-55 img-56 img-57 img-58 img-59 img-60 img-61 img-62 img-63

About

Alogirthms Lab 1 3rd Semester by Arnab Sen. Rajdeep Ghosh and Krishnendu Bera


Languages

Language:C 80.2%Language:Python 16.3%Language:C++ 3.5%