NAME

Algorithms - Provide bunch of famous algorithms for Sorting and Searching.

SYNOPSIS

use Algorithms;

my @list=(1, "hello", 123, "abc");
  
BubbleSort(\@list);
print "@list\n"; #will print the sorted list.

or

use Algorithms;

my @list=(1, "hello", 123, "abc");
my $key="abc";

#it will return index of the key if found, else -1
my $index=SequentialSearch(\@list, $key);

#it will return 1 if found, else -1
my $return=BinarySearch(\@list, $key); 

DESCRIPTION

In this module, there are many very general sorting algorithms written for Perl. Those are

Bubble Sort
Shaker Sort
Selection Sort
Insertion Sort
Shell Sort
Quick Sort
And, there are two very general searching algorithms(Sequential Search & Binary Search) written for Perl.

SEE ALSO

Algorithms::Sorting and Algorithms::Searching

AUTHOR

Vipin Singh, <vipinsingh211@gmail.com>

COPYRIGHT AND LICENSE

Copyright (C) 2013 by Vipin Singh

This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself, either Perl version 5.14.3 or, at your option, any later version of Perl 5 you may have available.