Showing posts with label DS. Show all posts
Showing posts with label DS. Show all posts

Friday, 18 November 2011

Classify the Hashing Functions based on the various methods by which the key value is found.


  • Direct method,

  • Subtraction method,

  • Modulo-Division method,

  • Digit-Extraction method,

  • Mid-Square method,

  • Folding method,

  • Pseudo-random method.

Sort the given values using Quick Sort :

Sorting takes place from the pivot value, which is the first value of the given elements, this is marked bold. The values at the left pointer and right pointer are indicated using L and R respectively.

Since pivot is not yet changed the same process is continued after