virtual-labs-archive / data-structures-iiith

This repository contains sources to Data Structures Lab IIITH.
https://cse01-iiith.vlabs.ac.in/
Other
1 stars 73 forks source link

Sorting simulation decimal values error #122

Open sumba101 opened 5 years ago

sumba101 commented 5 years ago

Issue

decimal values when given in the sorting algorithm are truncated this means 1.9 is converted into 1

Reproduction

shown below are snaps from quicksort simulation but similar failure can be seen in the simulations of all the sorting algorithms Select simulation in sorting using arrays experiment and in any of the simulations give decimal inputs like shown below screenshot from 2019-03-05 23-51-22 screenshot from 2019-03-05 23-39-00 screenshot from 2019-03-05 23-38-43

Output

this leads to error in the sorting presented by the simulation

sumba101 commented 5 years ago

working on solution for this, please do not attempt